Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // MongoDB is mongodb configs. MongoDB mongo.Config // Redis is cc redis configs. Redis redis.Config }
Config is configs for event server.
type ServerOption ¶
type ServerOption struct { // ServConf is CC API config. ServConf *config.CCAPIConfig }
ServerOption is options of server.
func NewServerOption ¶
func NewServerOption() *ServerOption
NewServerOption creates a new ServerOption object.
func (*ServerOption) AddFlags ¶
func (s *ServerOption) AddFlags(fs *pflag.FlagSet)
AddFlags add flags to server options.
Click to show internal directories.
Click to hide internal directories.