Documentation ¶
Index ¶
- func GetRelPath(absPath string) (*string, error)
- func Merge(indent string, paths ...string) *string
- type Arg
- type BaseFileInfo
- type Directive
- type Enum
- type Input
- type Interface
- type Lexer
- type MergedSchema
- type Mutation
- type Prop
- type Query
- type Resp
- type Scalar
- type Schema
- func (sc *Schema) GetSchema(path string)
- func (s *Schema) ParseSchema(l *Lexer)
- func (sc *Schema) Persist(path string) error
- func (s *Schema) UniqueEnum(wg *sync.WaitGroup)
- func (s *Schema) UniqueInput(wg *sync.WaitGroup)
- func (s *Schema) UniqueInterface(wg *sync.WaitGroup)
- func (s *Schema) UniqueMutation(wg *sync.WaitGroup)
- func (s *Schema) UniqueQuery(wg *sync.WaitGroup)
- func (s *Schema) UniqueScalar(wg *sync.WaitGroup)
- func (s *Schema) UniqueSubscription(wg *sync.WaitGroup)
- func (s *Schema) UniqueTypeName(wg *sync.WaitGroup)
- func (s *Schema) UniqueUnion(wg *sync.WaitGroup)
- type Subscription
- type TypeName
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRelPath ¶
Types ¶
type Arg ¶
type Arg struct { Param string Type string TypeExt *string // in case of enum e.g. admin(role: Role = ADMIN): Admin! Null bool IsList bool IsListNull bool }
func ParseArgument ¶
type BaseFileInfo ¶
type Enum ¶
type Enum struct { BaseFileInfo Name string Fields []string }
type Input ¶
type Input struct { BaseFileInfo Name string Props []*Prop }
type Interface ¶
type Interface struct { BaseFileInfo Name string Props []*Prop }
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
func (*Lexer) ConsumeComment ¶
func (l *Lexer) ConsumeComment()
func (*Lexer) ConsumeDirective ¶
func (l *Lexer) ConsumeDirective()
func (*Lexer) ConsumeIdent ¶
func (*Lexer) ConsumeMultiLineComment ¶
func (l *Lexer) ConsumeMultiLineComment()
func (*Lexer) ConsumeToken ¶
func (*Lexer) ConsumeWhitespace ¶
func (l *Lexer) ConsumeWhitespace()
type MergedSchema ¶
type MergedSchema struct { Indent string // contains filtered or unexported fields }
func (*MergedSchema) StitchSchema ¶
func (ms *MergedSchema) StitchSchema(s *Schema) string
type Mutation ¶
type Mutation struct { BaseFileInfo Name string Args []*Arg Resp Resp Directive *Directive }
type Query ¶
type Query struct { BaseFileInfo Name string Args []*Arg Resp Resp Directive *Directive }
type Scalar ¶
type Scalar struct { BaseFileInfo Name string }
type Schema ¶
type Schema struct { Files []*os.File Mutations []*Mutation Queries []*Query Subscriptions []*Subscription TypeNames []*TypeName Scalars []*Scalar Enums []*Enum Interfaces []*Interface Unions []*Union Inputs []*Input }
func (*Schema) ParseSchema ¶
func (*Schema) UniqueEnum ¶
func (*Schema) UniqueInput ¶
func (*Schema) UniqueInterface ¶
func (*Schema) UniqueMutation ¶
func (*Schema) UniqueQuery ¶
func (*Schema) UniqueScalar ¶
func (*Schema) UniqueSubscription ¶
func (*Schema) UniqueTypeName ¶
func (*Schema) UniqueUnion ¶
type Subscription ¶
type Subscription struct { BaseFileInfo Name string Args []*Arg Resp Resp Directive *Directive }
type Union ¶
type Union struct { BaseFileInfo Name string Fields []string }
Click to show internal directories.
Click to hide internal directories.