Fetch the repository succeeded.
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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。