swagger

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	HostPort int
}

Options is the list of options/flag available to the application, plus the clients needed by the application to function.

func New

func New() *Options

New creates a new instance of the application's options

func (*Options) Complete

func (o *Options) Complete() error

Complete initialises the components needed for the application to function given the options,

func (*Options) Prepare

func (o *Options) Prepare(cmd *cobra.Command) *Options

Prepare assigns the applications flag/options to the cobra cli

func (*Options) Validate

func (o *Options) Validate() error

Validate validates the flag values given to the application

Jump to

Keyboard shortcuts

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