Documentation ¶
Index ¶
- type Option
- func StoreCharset(c string) Option
- func StoreConnMaxIdleTime(d time.Duration) Option
- func StoreConnMaxLifetime(d time.Duration) Option
- func StoreDb(d string) Option
- func StoreHost(h string) Option
- func StoreMaxIdleConns(n int) Option
- func StoreMaxOpenConns(n int) Option
- func StorePasswd(p string) Option
- func StorePort(p int) Option
- func StoreTyped(t StoreType) Option
- func StoreUser(u string) Option
- type Options
- type StoreService
- type StoreType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
func StoreCharset ¶
func StoreConnMaxLifetime ¶
func StoreMaxIdleConns ¶
func StoreMaxOpenConns ¶
func StorePasswd ¶
func StoreTyped ¶
type StoreService ¶
type StoreService struct { Mysql *sql.DB Mongo *mongo.Client Redis redis.Conn // contains filtered or unexported fields }
func NewStoreService ¶
func NewStoreService(typ StoreType, opts ...Option) (*StoreService, error)
Click to show internal directories.
Click to hide internal directories.