Documentation ¶
Overview ¶
Package options contains flags and options for initializing an apiserver
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { PurgeDelay int `json:"purge-delay" mapstructure:"purge-delay"` Pumps map[string]PumpConfig `json:"pumps" mapstructure:"pumps"` HealthCheckPath string `json:"health-check-path" mapstructure:"health-check-path"` HealthCheckAddress string `json:"health-check-address" mapstructure:"health-check-address"` OmitDetailedRecording bool `json:"omit-detailed-recording" mapstructure:"omit-detailed-recording"` RedisOptions *genericoptions.RedisOptions `json:"redis" mapstructure:"redis"` Log *log.Options `json:"log" mapstructure:"log"` }
Options runs a pumpserver.
func NewOptions ¶
func NewOptions() *Options
NewOptions creates a new Options object with default parameters.
func (*Options) Flags ¶
func (o *Options) Flags() (fss cliflag.NamedFlagSets)
Flags returns flags for a specific APIServer by section name.
type PumpConfig ¶
type PumpConfig struct { Type string `json:"type" mapstructure:"type"` Filters analytics.AnalyticsFilters `json:"filters" mapstructure:"filters"` Timeout int `json:"timeout" mapstructure:"timeout"` OmitDetailedRecording bool `json:"omit-detailed-recording" mapstructure:"omit-detailed-recording"` Meta map[string]interface{} `json:"meta" mapstructure:"meta"` }
PumpConfig defines options for pump back-end.
Click to show internal directories.
Click to hide internal directories.