generator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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