Versions in this module Expand all Collapse all v0 v0.0.1 Mar 25, 2019 Changes in this version + func InitCacheDB() option + func InitLogDB() option + type DBName int + const AppDB + const LogDB + type Datastore struct + func NewDatastore() (*Datastore, error) + func (ds *Datastore) Option(opts ...option) error + func (ds Datastore) BeginTx(ctx context.Context, opts *sql.TxOptions, n DBName) (*sql.Tx, error) + func (ds Datastore) DB(n DBName) (*sql.DB, error) + func (ds Datastore) RedisConn() (redis.Conn, error)