Skip to content

Commit cfccb46

Browse files
committed
Change accessor level of predefined CHASM search attribute constructor
1 parent fd7f41d commit cfccb46

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

chasm/registrable_component.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (rc *RegistrableComponent) GetAlias(field string) (string, error) {
121121
alias, ok := rc.fieldToAlias[field]
122122
if !ok {
123123
return "", serviceerror.NewInvalidArgument(
124-
fmt.Sprintf("RegistrableComponent name %s has no alias defined for field name %s", rc.fqType(), field),
124+
fmt.Sprintf("registrable component name %s has no alias defined for field name %s", rc.fqType(), field),
125125
)
126126
}
127127
return alias, nil
@@ -132,7 +132,7 @@ func (rc *RegistrableComponent) GetField(alias string) (string, error) {
132132
field, ok := rc.aliasToField[alias]
133133
if !ok {
134134
return "", serviceerror.NewInvalidArgument(
135-
fmt.Sprintf("RegistrableComponent name %s has no field defined for alias name %s", rc.fqType(), alias),
135+
fmt.Sprintf("registrable component name %s has no field defined for alias name %s", rc.fqType(), alias),
136136
)
137137
}
138138
return field, nil

chasm/search_attribute.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func NewSearchAttributeBool(alias string, boolField SearchAttributeFieldBool) *S
184184
}
185185
}
186186

187-
func NewSearchAttributeBoolByField(field string) *SearchAttributeBool {
187+
func newSearchAttributeBoolByField(field string) *SearchAttributeBool {
188188
return &SearchAttributeBool{
189189
searchAttributeDefinition: searchAttributeDefinition{
190190
alias: field,
@@ -211,7 +211,7 @@ func NewSearchAttributeDateTime(alias string, datetimeField SearchAttributeField
211211
}
212212
}
213213

214-
func NewSearchAttributeDateTimeByField(field string) *SearchAttributeDateTime {
214+
func newSearchAttributeDateTimeByField(field string) *SearchAttributeDateTime {
215215
return &SearchAttributeDateTime{
216216
searchAttributeDefinition: searchAttributeDefinition{
217217
alias: field,
@@ -238,7 +238,7 @@ func NewSearchAttributeInt(alias string, intField SearchAttributeFieldInt) *Sear
238238
}
239239
}
240240

241-
func NewSearchAttributeIntByField(field string) *SearchAttributeInt {
241+
func newSearchAttributeIntByField(field string) *SearchAttributeInt {
242242
return &SearchAttributeInt{
243243
searchAttributeDefinition: searchAttributeDefinition{
244244
alias: field,
@@ -265,7 +265,7 @@ func NewSearchAttributeDouble(alias string, doubleField SearchAttributeFieldDoub
265265
}
266266
}
267267

268-
func NewSearchAttributeDoubleByField(field string) *SearchAttributeDouble {
268+
func newSearchAttributeDoubleByField(field string) *SearchAttributeDouble {
269269
return &SearchAttributeDouble{
270270
searchAttributeDefinition: searchAttributeDefinition{
271271
alias: field,
@@ -292,7 +292,7 @@ func NewSearchAttributeKeyword(alias string, keywordField SearchAttributeFieldKe
292292
}
293293
}
294294

295-
func NewSearchAttributeKeywordByField(field string) *SearchAttributeKeyword {
295+
func newSearchAttributeKeywordByField(field string) *SearchAttributeKeyword {
296296
return &SearchAttributeKeyword{
297297
searchAttributeDefinition: searchAttributeDefinition{
298298
alias: field,
@@ -319,7 +319,7 @@ func NewSearchAttributeKeywordList(alias string, keywordListField SearchAttribut
319319
}
320320
}
321321

322-
func NewSearchAttributeKeywordListByField(field string) *SearchAttributeKeywordList {
322+
func newSearchAttributeKeywordListByField(field string) *SearchAttributeKeywordList {
323323
return &SearchAttributeKeywordList{
324324
searchAttributeDefinition: searchAttributeDefinition{
325325
alias: field,

0 commit comments

Comments
 (0)