Documentation ¶
Index ¶
- Variables
- type Definable
- type EnumType
- func (t *EnumType) DefinitionAST() (*ast.Definition, error)
- func (t *EnumType) GoIdent() protogen.GoIdent
- func (t *EnumType) IsList() bool
- func (t *EnumType) IsNullable() bool
- func (t *EnumType) Name() string
- func (t *EnumType) ProtoDescriptor() protoreflect.Descriptor
- func (t *EnumType) TypeAST() *ast.Type
- type InputObjectType
- func (t *InputObjectType) DefinitionAST() (*ast.Definition, error)
- func (t *InputObjectType) GoIdent() protogen.GoIdent
- func (t *InputObjectType) IsList() bool
- func (t *InputObjectType) IsNullable() bool
- func (t *InputObjectType) Name() string
- func (t *InputObjectType) ProtoDescriptor() protoreflect.Descriptor
- func (t *InputObjectType) TypeAST() *ast.Type
- type ModifiedType
- type ObjectType
- func (t *ObjectType) DefinitionAST() (*ast.Definition, error)
- func (t *ObjectType) GoIdent() protogen.GoIdent
- func (t *ObjectType) IsList() bool
- func (t *ObjectType) IsNullable() bool
- func (t *ObjectType) Name() string
- func (t *ObjectType) ProtoDescriptor() protoreflect.Descriptor
- func (t *ObjectType) TypeAST() *ast.Type
- type ProtoType
- type ScalarType
- type Schema
- type SchemaAST
- type SchemaBuilder
- type Type
- type UnionType
- func (t *UnionType) DefinitionAST() (*ast.Definition, error)
- func (t *UnionType) GoIdent() protogen.GoIdent
- func (t *UnionType) IsList() bool
- func (t *UnionType) IsNullable() bool
- func (t *UnionType) Name() string
- func (t *UnionType) ProtoDescriptor() protoreflect.Descriptor
- func (t *UnionType) TypeAST() *ast.Type
- type WrappedScalarType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FloatType = newScalarType("Float") IntType = newScalarType("Int") StringType = newScalarType("String") BooleanType = newScalarType("Boolean") IDType = newScalarType("ID") DateTimeType = newScalarType("DateTime") )
Functions ¶
This section is empty.
Types ¶
type EnumType ¶
func NewEnumType ¶
func (*EnumType) DefinitionAST ¶
func (t *EnumType) DefinitionAST() (*ast.Definition, error)
func (*EnumType) IsNullable ¶
func (*EnumType) ProtoDescriptor ¶
func (t *EnumType) ProtoDescriptor() protoreflect.Descriptor
type InputObjectType ¶
type InputObjectType struct {
// contains filtered or unexported fields
}
func NewInputObjectType ¶
func NewInputObjectType(objType *ObjectType) *InputObjectType
func (*InputObjectType) DefinitionAST ¶
func (t *InputObjectType) DefinitionAST() (*ast.Definition, error)
func (*InputObjectType) GoIdent ¶
func (t *InputObjectType) GoIdent() protogen.GoIdent
func (*InputObjectType) IsList ¶
func (t *InputObjectType) IsList() bool
func (*InputObjectType) IsNullable ¶
func (t *InputObjectType) IsNullable() bool
func (*InputObjectType) Name ¶
func (t *InputObjectType) Name() string
func (*InputObjectType) ProtoDescriptor ¶
func (t *InputObjectType) ProtoDescriptor() protoreflect.Descriptor
func (*InputObjectType) TypeAST ¶
func (t *InputObjectType) TypeAST() *ast.Type
type ModifiedType ¶
type ModifiedType interface {
Original() Type
}
type ObjectType ¶
func (*ObjectType) DefinitionAST ¶
func (t *ObjectType) DefinitionAST() (*ast.Definition, error)
func (*ObjectType) GoIdent ¶
func (t *ObjectType) GoIdent() protogen.GoIdent
func (*ObjectType) IsList ¶
func (t *ObjectType) IsList() bool
func (*ObjectType) IsNullable ¶
func (t *ObjectType) IsNullable() bool
func (*ObjectType) Name ¶
func (t *ObjectType) Name() string
func (*ObjectType) ProtoDescriptor ¶
func (t *ObjectType) ProtoDescriptor() protoreflect.Descriptor
func (*ObjectType) TypeAST ¶
func (t *ObjectType) TypeAST() *ast.Type
type ProtoType ¶
type ProtoType interface { GoIdent() protogen.GoIdent ProtoDescriptor() protoreflect.Descriptor }
type ScalarType ¶
func (*ScalarType) IsList ¶
func (t *ScalarType) IsList() bool
func (*ScalarType) IsNullable ¶
func (t *ScalarType) IsNullable() bool
func (*ScalarType) Name ¶
func (t *ScalarType) Name() string
func (*ScalarType) TypeAST ¶
func (t *ScalarType) TypeAST() *ast.Type
type Schema ¶
func (*Schema) DocumentAST ¶
func (s *Schema) DocumentAST() (*ast.SchemaDocument, error)
type SchemaBuilder ¶
type SchemaBuilder struct { *Schema // contains filtered or unexported fields }
func NewSchemaBuilder ¶
func NewSchemaBuilder() *SchemaBuilder
func (*SchemaBuilder) AddType ¶
func (b *SchemaBuilder) AddType(t Type) error
type UnionType ¶
func NewUnionType ¶
func (*UnionType) DefinitionAST ¶
func (t *UnionType) DefinitionAST() (*ast.Definition, error)
func (*UnionType) IsNullable ¶
func (*UnionType) ProtoDescriptor ¶
func (t *UnionType) ProtoDescriptor() protoreflect.Descriptor
type WrappedScalarType ¶
type WrappedScalarType struct { *ScalarType Proto *protogen.Message }
func (*WrappedScalarType) GoIdent ¶
func (t *WrappedScalarType) GoIdent() protogen.GoIdent
func (*WrappedScalarType) ProtoDescriptor ¶
func (t *WrappedScalarType) ProtoDescriptor() protoreflect.Descriptor
Click to show internal directories.
Click to hide internal directories.