lib

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SourceFormatUnknown represents an unrecognized source format
	SourceFormatUnknown = 0
	// SourceFormatOpenAPI2 represents an OpenAPI v2 document
	SourceFormatOpenAPI2 = 2
	// SourceFormatOpenAPI3 represents an OpenAPI v3 document
	SourceFormatOpenAPI3 = 3
	// SourceFormatDiscovery represents a Google Discovery document
	SourceFormatDiscovery = 4
)

Variables

This section is empty.

Functions

func NewUsageError added in v0.4.2

func NewUsageError(m string) error

NewUsageError returns a new usage error with the specified message.

Types

type Gnostic

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

The Gnostic structure holds global state information for gnostic.

func NewGnostic

func NewGnostic(args []string) *Gnostic

NewGnostic initializes a structure to store global application state.

func (*Gnostic) Main

func (g *Gnostic) Main() error

Main is the main program for Gnostic.

func (*Gnostic) ReadOpenAPIText added in v0.5.2

func (g *Gnostic) ReadOpenAPIText(bytes []byte) (message proto.Message, err error)

func (*Gnostic) Usage added in v0.4.2

func (g *Gnostic) Usage() string

Usage returns usage information.

type UsageError added in v0.4.2

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

UsageError is a response to invalid command-line inputs and should trigger display of usage (help) information.

func (*UsageError) Error added in v0.4.2

func (e *UsageError) Error() string

Jump to

Keyboard shortcuts

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