Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *logrus.Logger
Functions ¶
func CreateLogstashConnection ¶
func CreateLogstashConnection(serviceName string)
func CreateRedisConnection ¶
CreateRedisConnection make connection example database, _ := strconv.Atoi(os.Getenv("REDIS_DB"))
bootstrap.CreateRedisConnection(&redis.UniversalOptions{ Addrs: strings.Split(os.Getenv("REDIS_HOST"), ","), Password: os.Getenv("REDIS_PASSWORD"), DB: database, DialTimeout: time.Duration(15) * time.Second, ConnectionName: "test" // empty is default })
new(bootstrap).DB().Get().... new(bootstrap).DB("test").Get()....
Types ¶
Click to show internal directories.
Click to hide internal directories.