Documentation ¶
Index ¶
- Variables
- type Builder
- func (scm *Builder) ASTs() []*parser.AST
- func (scm *Builder) MakeFromDirectory(directory string) (*proto.Schema, error)
- func (scm *Builder) MakeFromFile(filename string) (*proto.Schema, error)
- func (scm *Builder) MakeFromInputs(inputs *reader.Inputs) (*proto.Schema, error)
- func (scm *Builder) MakeFromString(schemaString string) (*proto.Schema, error)
- func (scm *Builder) SchemaFiles() []reader.SchemaFile
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSchemaFiles = errors.New("no schema files found")
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { Config *config.ProjectConfig // contains filtered or unexported fields }
A Builder knows how to produce a (validated) proto.Schema, from a given Keel Builder. Construct one, then call the Make method.
func (*Builder) MakeFromDirectory ¶
MakeFromDirectory constructs a proto.Schema from the .keel files present in the given directory.
func (*Builder) MakeFromFile ¶
MakeFromFile constructs a proto.Schema from the given .keel file.
func (*Builder) MakeFromInputs ¶
MakeFromFile constructs a proto.Schema from the given inputs
func (*Builder) MakeFromString ¶
func (*Builder) SchemaFiles ¶
func (scm *Builder) SchemaFiles() []reader.SchemaFile
Click to show internal directories.
Click to hide internal directories.