conjure

package
v4.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2020 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ASTForServerRouteRegistration

func ASTForServerRouteRegistration(serviceDefinition spec.ServiceDefinition, info types.PkgInfo) ([]astgen.ASTDecl, error)

func AstForServerFunctionHandler

func AstForServerFunctionHandler(serviceDefinition spec.ServiceDefinition, info types.PkgInfo) ([]astgen.ASTDecl, error)

func AstForServerInterface

func AstForServerInterface(serviceDefinition spec.ServiceDefinition, info types.PkgInfo) ([]astgen.ASTDecl, error)

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 OutputConfiguration struct {
	GenerateServer bool
	OutputDir      string
}

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

type StringSet

type StringSet map[string]struct{}

func NewStringSet

func NewStringSet(vals ...string) StringSet

func (StringSet) Add

func (s StringSet) Add(vals ...string)

func (StringSet) AddAll

func (s StringSet) AddAll(other StringSet)

func (StringSet) Sorted

func (s StringSet) Sorted() []string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL