1 Star 0 Fork 0

ryancartoon/sensu-go

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
types.go 884 Bytes
Copy Edit Raw Blame History
package graphql
// Kind is an unsigned 16-bit integer used for defining kinds.
type Kind uint16
const (
// EnumKind identifies enum config
EnumKind Kind = iota
// InputKind identifies input object config
InputKind
// InterfaceKind identifies interface config
InterfaceKind
// ObjectKind identifies object config
ObjectKind
// ScalarKind identifies scalar config
ScalarKind
// SchemaKind identifies schema config
SchemaKind
// UnionKind identifies union config
UnionKind
)
// Type represents base description of GraphQL type
type Type struct {
name string
kind Kind
}
// NewType returns new instance of Type
func NewType(name string, kind Kind) Type {
return Type{
name: name,
kind: kind,
}
}
// Name of GraphQL type represented
func (t Type) Name() string {
return t.name
}
// Kind of GraphQL type represented
func (t Type) Kind() Kind {
return t.kind
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ryancartoon/sensu-go.git
git@gitee.com:ryancartoon/sensu-go.git
ryancartoon
sensu-go
sensu-go
v5.10.1

Search