options

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 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 {
	App  *options.AppOption  `json:"app" mapstructure:"app" yaml:"app"`
	Grpc *options.GrpcOption `json:"grpc" mapstructure:"grpc" yaml:"grpc"`
	Http *options.HttpOption `json:"http" mapstructure:"http" yaml:"http"`
}

func NewOptions

func NewOptions() *Options

func (*Options) Complete

func (o *Options) Complete() error

func (*Options) Flags

func (o *Options) Flags() (fss app.FlagSets)

func (*Options) String

func (o *Options) String() string

func (*Options) Validate

func (o *Options) Validate() []error

Jump to

Keyboard shortcuts

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