lib

package
v0.5.7-v3refs Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 21 Imported by: 7 modules, 6 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 (
	// 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

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

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

func (*Gnostic) Usage

func (g *Gnostic) Usage() string

Usage returns usage information.

type UsageError

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

func (e *UsageError) Error() string

Jump to

Keyboard shortcuts

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