Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectiveDef ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represents a parser.
type PredicateDef ¶
type PredicateDef struct {
Name string
Typename string
IsArray bool
Directives []*DirectiveDef
// contains filtered or unexported fields
}
func (*PredicateDef) WriteOn ¶
func (pd *PredicateDef) WriteOn(w io.Writer)
type Schema ¶
type Schema struct {
Filename string
Predicates []*PredicateDef
Types []*TypeDef
}
func (*Schema) FindPredicate ¶
func (s *Schema) FindPredicate(name string) *PredicateDef
FindPredicate searches in all predicates and types for a definition. Return nil if not found.
Click to show internal directories.
Click to hide internal directories.
