Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMysqlDatabase ¶
func NewMysqlDatabase(option DBMysqlOption) (*gorp.DbMap, error)
NewMysqlDatabase return gorp dbmap object with MySQL options param
func NewPostgreDatabase ¶
func NewPostgreDatabase(option DBPostgreOption) (*gorp.DbMap, error)
NewPostgreDatabase return gorp dbmap object with postgre options param
Types ¶
type CacheOption ¶
type CacheOption struct {
Host string
Port int
DialConnectTimeout time.Duration
ReadTimeout time.Duration
WriteTimeout time.Duration
MaxIdle int
MaxActive int
IdleTimeout time.Duration
Wait bool
MaxConnLifetime time.Duration
Password string
Namespace string
}
CacheOption properties for cache DB
Click to show internal directories.
Click to hide internal directories.