Documentation ¶
Index ¶
- Variables
- func NewMinioClient() (*minio.Client, error)
- func NewMinioClientWithOptions(optFns ...MinIOOptFunction) (*minio.Client, error)
- func WithDSN(dsn string) optionFn
- func WithLifetime(minus time.Duration) optionFn
- func WithMaxConn(conns int) optionFn
- type MinIOOptFunction
- type MinIOOption
- type MysqlConnector
- type MysqlOption
Constants ¶
This section is empty.
Variables ¶
View Source
var InfaGraphSet = wire.NewSet( NewMysqlConnector, NewMinioClient, )
View Source
var MinIODefaultOpt = &MinIOOption{ Endpoint: configs.MinioHost, AccessKeyId: configs.AccessKeyId, SecretAccessKey: configs.SecretAccessKey, }
View Source
var MysqlDefaultOption = &MysqlOption{ MaxConn: 2, MaxLifetime: 1 * time.Minute, }
Functions ¶
func NewMinioClient ¶
func NewMinioClient() (*minio.Client, error)
func NewMinioClientWithOptions ¶
func NewMinioClientWithOptions(optFns ...MinIOOptFunction) (*minio.Client, error)
func WithLifetime ¶
func WithMaxConn ¶
func WithMaxConn(conns int) optionFn
Types ¶
type MinIOOptFunction ¶
type MinIOOptFunction func(opt *MinIOOption) *MinIOOption
func WithAccessKeyId ¶
func WithAccessKeyId(accessKeyId string) MinIOOptFunction
func WithEndPoint ¶
func WithEndPoint(endPoint string) MinIOOptFunction
func WithSecretAccessKey ¶
func WithSecretAccessKey(secretAccessKey string) MinIOOptFunction
func WithUseSSL ¶
func WithUseSSL(useSSL bool) MinIOOptFunction
type MinIOOption ¶
type MysqlConnector ¶
func MysqlConnectionBuilder ¶
func MysqlConnectionBuilder(fns ...optionFn) *MysqlConnector
func NewMysqlConnector ¶
func NewMysqlConnector() *MysqlConnector
Click to show internal directories.
Click to hide internal directories.