Documentation ¶
Overview ¶
Package options contains flags and options for initializing an usercenter server
Index ¶
Constants ¶
View Source
const (
// UserAgent is the userAgent name when starting monster-sms server.
UserAgent = "monster-usercenter"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { GRPCOptions *genericoptions.GRPCOptions `json:"grpc" mapstructure:"grpc"` HTTPOptions *genericoptions.HTTPOptions `json:"http" mapstructure:"http"` //TLSOptions *genericoptions.TLSOptions `json:"tls" mapstructure:"tls"` MySQLOptions *genericoptions.MySQLOptions `json:"mysql" mapstructure:"mysql"` //Redis options for configuring Redis related options. RedisOptions *genericoptions.RedisOptions `json:"redis" mapstructure:"redis"` Log *log.Options `json:"log" mapstructure:"log"` }
Options contains state for master/api server.
func (*Options) ApplyTo ¶
func (o *Options) ApplyTo(c *usercenter.Config) error
ApplyTo fills up monster-fakeserver config with options.
func (*Options) Config ¶
func (o *Options) Config() (*usercenter.Config, error)
Config return a monster-usercenter server config object.
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.