Documentation ¶
Overview ¶
Package options contains flags and options for initializing an apiserver
Index ¶
Constants ¶
View Source
const (
// UserAgent is the userAgent name when starting onex-gateway server.
UserAgent = "onex-toyblc"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Miner bool `json:"miner" mapstructure:"miner"` MinMineInterval time.Duration `json:"min-mine-interval" mapstructure:"min-mine-interval"` MiningDifficulty int `json:"mining-difficulty" mapstructure:"mining-difficulty"` Address string `json:"address" mapstructure:"address"` Accounts map[string]string `json:"accounts" mapstructure:"-"` P2PAddr string `json:"p2p-addr" mapstructure:"p2p-addr"` Peers []string `json:"peers" mapstructure:"peers"` HTTPOptions *genericoptions.HTTPOptions `json:"http" mapstructure:"http"` TLSOptions *genericoptions.TLSOptions `json:"tls" mapstructure:"tls"` Log *log.Options `json:"log" mapstructure:"log"` }
Options contains state for master/api server.
func (*Options) Flags ¶
func (o *Options) Flags() (fss cliflag.NamedFlagSets)
Flags returns flags for a specific server by section name.
Click to show internal directories.
Click to hide internal directories.