options

package
v0.0.0-...-4f9d474 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 4 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 {
	RPCServer               string                             `json:"rpcserver"      mapstructure:"rpcserver"`
	ClientCA                string                             `json:"client-ca-file" mapstructure:"client-ca-file"`
	GenericServerRunOptions *genoptions.ServerRunOptions       `json:"server"         mapstructure:"server"`
	InsecureServing         *genoptions.InsecureServingOptions `json:"insecure"       mapstructure:"insecure"`
	SecureServing           *genoptions.SecureServingOptions   `json:"secure"         mapstructure:"secure"`
	RedisOptions            *genoptions.RedisOptions           `json:"redis"          mapstructure:"redis"`
	Log                     *log.Options                       `json:"log"            mapstructure:"log"`
}

func NewOptions

func NewOptions() *Options

NewOptions 使用默认参数创建一个 options 对象.

func (*Options) Flags

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

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