Documentation ¶
Index ¶
- Variables
- func MakeGrammar() *Grammar
- func Register(name string, backend Backend)
- type ArrayType
- type Backend
- type BoolType
- type ByteType
- type DeferType
- type Field
- type FloatType
- type IntType
- type MapType
- type PointerType
- type ResolveError
- type ResolveType
- type Schema
- type SliceType
- type StringType
- type Struct
- type StructType
- type TimeType
- type Type
- type UnionType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Backends = make(map[string]Backend)
)
Functions ¶
func MakeGrammar ¶
func MakeGrammar() *Grammar
Types ¶
type PointerType ¶
type PointerType struct {
SubType Type
}
func (*PointerType) Resolve ¶
func (p *PointerType) Resolve(s *Schema) error
type ResolveError ¶
type ResolveError struct {
Defer string
}
func (ResolveError) Error ¶
func (r ResolveError) Error() string
type ResolveType ¶
type Schema ¶
type Schema struct {
Structs []*Struct
}
func ParseSchema ¶
func ParseSchema(rs io.ReadSeeker) (*Schema, error)
func (*Schema) ResolveAll ¶
type StringType ¶
type StringType struct { }
type StructType ¶
type StructType struct {
Struct string
}
Click to show internal directories.
Click to hide internal directories.