Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLOptions ¶
type MySQLOptions struct { Host string Username string Password string Database string MaxIdleConnections int MaxOpenConnections int MaxConnectionLifeTime time.Duration }
func NewMySQLOptions ¶
func NewMySQLOptions() *MySQLOptions
func (*MySQLOptions) AddFlags ¶
func (o *MySQLOptions) AddFlags(fs *pflag.FlagSet)
func (*MySQLOptions) NewClient ¶
func (o *MySQLOptions) NewClient() (store.Factory, error)
NewClient create mysql store with the given config.
func (*MySQLOptions) Validate ¶
func (o *MySQLOptions) Validate() []error
type ServerOptions ¶
func NewServerOptions ¶
func NewServerOptions() *ServerOptions
func (*ServerOptions) AddFlags ¶
func (o *ServerOptions) AddFlags(fs *pflag.FlagSet)
func (*ServerOptions) Validate ¶
func (o *ServerOptions) Validate() []error
Click to show internal directories.
Click to hide internal directories.