Documentation
¶
Overview ¶
*FileHeader
- @Author: Liangkang Zhang
- @Date: 2026/1/25 11:48:52
- @LastEditors: Liangkang Zhang
- @LastEditTime: 2026/1/25 11:49:39
- @Description:
- @Copyright: Copyright (©)}) 2026 Liangkang Zhang<lkzhang98@gmail.com>. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.. All rights reserved.
- @Email: lkzhang98@gmail.com
- @Repository: https://github.com/geminik12/autostack
*FileHeader
- @Author: Liangkang Zhang
- @Date: 2026/1/25 11:52:22
- @LastEditors: Liangkang Zhang
- @LastEditTime: 2026/1/26 00:25:02
- @Description:
- @Copyright: Copyright (©)}) 2026 Liangkang Zhang<lkzhang98@gmail.com>. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.. All rights reserved.
- @Email: lkzhang98@gmail.com
- @Repository: https://github.com/geminik12/autostack
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewMySQL, NewRedis, wire.Bind(new(redis.UniversalClient), new(*redis.Client)), )
ProviderSet is db providers.
Functions ¶
Types ¶
type MySQLOptions ¶
type MySQLOptions struct {
Addr string
Username string
Password string
Database string
MaxIdleConnections int
MaxOpenConnections int
MaxConnectionLifeTime time.Duration
// +optional
Logger logger.Interface
}
MySQLOptions defines options for mysql database.
type RedisOptions ¶
type RedisOptions struct {
Addr string
Username string
Password string
Database int
MaxRetries int
MinIdleConns int
DialTimeout time.Duration
ReadTimeout time.Duration
WriteTimeout time.Duration
PoolTimeout time.Duration
PoolSize int
}
RedisOptions defines options for redis database.
Click to show internal directories.
Click to hide internal directories.