Versions in this module Expand all Collapse all v1 v1.1.1 Dec 11, 2019 Changes in this version + func NewCache(option CacheOption) *redis.Pool + func NewMysqlDatabase(option DBMysqlOption) (*gorp.DbMap, error) + func NewPostgreDatabase(option DBPostgreOption) (*gorp.DbMap, error) + type CacheOption struct + DialConnectTimeout time.Duration + Host string + IdleTimeout time.Duration + MaxActive int + MaxConnLifetime time.Duration + MaxIdle int + Namespace string + Password string + Port int + ReadTimeout time.Duration + Wait bool + WriteTimeout time.Duration + type DBMysqlOption struct + AdditionalParameters string + ConnMaxLifetime time.Duration + DBName string + Host string + MaxIdleConns int + MaxOpenConns int + Password string + Port int + Username string + type DBPostgreOption struct + DBName string + Host string + MaxPoolSize int + Password string + Port int + Username string