Skip to content

Commit

Permalink
rename to type
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Jun 13, 2024
1 parent 7fd604f commit 4a00094
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion indexer/base/field.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package indexerbase

// Field represents a field in an object descriptor.
// Field represents a field in an object type.
type Field struct {
// Name is the name of the field.
Name string
Expand Down
2 changes: 1 addition & 1 deletion indexer/base/kind.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package indexerbase

// Kind represents the basic type of a field in an object descriptor.
// Kind represents the basic type of a field in an object.
// Each kind defines the types of go values which should be accepted
// by listeners and generated by decoders when providing entity updates.
type Kind int
Expand Down
4 changes: 2 additions & 2 deletions indexer/base/module_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package indexerbase
// ModuleSchema represents the logical schema of a module for purposes of indexing and querying.
type ModuleSchema struct {

// Objects is a list of objects that are part of the schema for the module.
Objects []ObjectDescriptor
// ObjectTypes describe the types of objects that are part of the module's schema.
ObjectTypes []ObjectType
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package indexerbase

// ObjectDescriptor describes an object in the schema of a module.
type ObjectDescriptor struct {
// ObjectType describes an object type a module schema.
type ObjectType struct {
// Name is the name of the object.
Name string

Expand Down
4 changes: 2 additions & 2 deletions indexer/base/object_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package indexerbase
// ObjectUpdate represents an update operation on an object in a module's state.
type ObjectUpdate struct {

// ObjectName is the name of the object type in the module's schema.
ObjectName string
// TypeName is the name of the object type in the module's schema.
TypeName string

// Key returns the value of the primary key of the object and must conform to these constraints with respect
// that the schema that is defined for the object:
Expand Down

0 comments on commit 4a00094

Please sign in to comment.