generator

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSigDefKey = "serving_default"
	DefaultTag       = "serve"
)
View Source
const (
	SpecGenerationError     = "missing info to generate OpenAPI specification\n error: %s"
	UnmarshallableSpecError = "generated OpenAPI specification is corrupted\n error: %s \n specification: %s"
	UnloadableSpecError     = "generated OpenAPI specification (below) is corrupted\n error: %s \n specification: %s"
	InvalidSpecError        = "generated OpenAPI specification (below) is constructed incorrectly\n error: %s \n specification: %s"
)

Known error messages

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder added in v0.1.1

type Builder struct {
	Generator
}

func (*Builder) Build added in v0.1.1

func (b *Builder) Build() Generator

func (*Builder) SetMetaGraphTags added in v0.1.1

func (b *Builder) SetMetaGraphTags(metaGraphTags []string)

func (*Builder) SetName added in v0.1.1

func (b *Builder) SetName(name string)

func (*Builder) SetSigDefKey added in v0.1.1

func (b *Builder) SetSigDefKey(sigDefKey string)

func (*Builder) SetVersion added in v0.1.1

func (b *Builder) SetVersion(version string)

type Generator added in v0.1.1

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

func (*Generator) GenerateOpenAPI added in v0.1.1

func (g *Generator) GenerateOpenAPI(model *pb.SavedModel) (string, error)

Jump to

Keyboard shortcuts

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