conjure

package
v6.26.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 {
	GenerateFuncsVisitor bool
	GenerateServer       bool
	GenerateCLI          bool
	OutputDir            string
}

type OutputFile

type OutputFile struct {
	// contains filtered or unexported fields
}

func GenerateOutputFiles

func GenerateOutputFiles(conjureDefinition spec.ConjureDefinition, cfg 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

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