Documentation ¶
Index ¶
- func ASTForServerRouteRegistration(serviceDefinition spec.ServiceDefinition, info types.PkgInfo) ([]astgen.ASTDecl, error)
- func AstForServerFunctionHandler(serviceDefinition spec.ServiceDefinition, info types.PkgInfo) ([]astgen.ASTDecl, error)
- func AstForServerInterface(serviceDefinition spec.ServiceDefinition, info types.PkgInfo) ([]astgen.ASTDecl, error)
- func FromIRBytes(irJSONBytes []byte) (spec.ConjureDefinition, error)
- func FromIRFile(file string) (spec.ConjureDefinition, error)
- func Generate(conjureDefinition spec.ConjureDefinition, ...) error
- type OutputConfiguration
- type OutputFile
- type StringSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AstForServerInterface ¶
func FromIRBytes ¶
func FromIRBytes(irJSONBytes []byte) (spec.ConjureDefinition, error)
func FromIRFile ¶
func FromIRFile(file string) (spec.ConjureDefinition, error)
func Generate ¶
func Generate(conjureDefinition spec.ConjureDefinition, outputConfiguration OutputConfiguration) error
Types ¶
type OutputConfiguration ¶
type OutputFile ¶
type OutputFile struct {
// contains filtered or unexported fields
}
func GenerateOutputFiles ¶
func GenerateOutputFiles(conjureDefinition spec.ConjureDefinition, outputConfiguration OutputConfiguration) ([]*OutputFile, error)
func (*OutputFile) AbsPath ¶
func (f *OutputFile) AbsPath() string
func (*OutputFile) Render ¶
func (f *OutputFile) Render() ([]byte, error)
func (*OutputFile) Write ¶
func (f *OutputFile) Write() error
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package transforms provides common transformations from Conjure spec types and to Go specific types.
|
Package transforms provides common transformations from Conjure spec types and to Go specific types. |
Click to show internal directories.
Click to hide internal directories.