Documentation ¶
Index ¶
- type Cron
- func (s *Cron) CliFlags() []cli.Flag
- func (s *Cron) Close() error
- func (s *Cron) FreeCron(name string) error
- func (s *Cron) Init(_ logger.Interface, _ *gsf.AppConfig, _ *cli.Context) error
- func (s *Cron) NewCron(name string) (*cron.Cron, error)
- func (s *Cron) NewCronEx(name string, bSize int) (*cron.Cron, error)
- func (s *Cron) Run() error
- type ElasticSearch
- type EsClient
- type Mongo
- type MongoClient
- type MySQL
- type MySQLClient
- type MysqlLogger
- func (l *MysqlLogger) Error(_ context.Context, msg string, data ...interface{})
- func (l *MysqlLogger) Info(_ context.Context, msg string, data ...interface{})
- func (l *MysqlLogger) LogMode(level logger.LogLevel) logger.Interface
- func (l *MysqlLogger) SetLogger(log glogger.Interface)
- func (l *MysqlLogger) Trace(_ context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *MysqlLogger) Warn(_ context.Context, msg string, data ...interface{})
- type Redis
- type RedisClient
- type Resize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cron ¶ added in v0.1.3
type Cron struct { Cfg config.ComponentCron // contains filtered or unexported fields }
type ElasticSearch ¶
type ElasticSearch struct { Cfg config.ComponentEs Clts map[string]*EsClient }
func (*ElasticSearch) CliFlags ¶
func (c *ElasticSearch) CliFlags() []cli.Flag
func (*ElasticSearch) Close ¶
func (c *ElasticSearch) Close() error
func (*ElasticSearch) Init ¶
func (c *ElasticSearch) Init(l logger.Interface, cfg *gsf.AppConfig, ctx *cli.Context) error
func (*ElasticSearch) LoadOne ¶ added in v0.1.3
func (c *ElasticSearch) LoadOne(name string) (err error)
func (*ElasticSearch) Run ¶
func (c *ElasticSearch) Run() (err error)
type Mongo ¶
type Mongo struct { Cfg config.ComponentMongo Clts map[string]*MongoClient }
type MongoClient ¶ added in v0.1.3
type MongoClient struct { DB *mongo.Database Cfg config.EntityMongo }
func (*MongoClient) CliFlags ¶ added in v0.1.3
func (c *MongoClient) CliFlags(name string) []cli.Flag
func (*MongoClient) Load ¶ added in v0.1.3
func (c *MongoClient) Load(name string, cfg *config.ComponentMongo) error
type MySQL ¶
type MySQL struct { Cfg config.ComponentMysql Clts map[string]*MySQLClient Log MysqlLogger }
func (*MySQL) SetLogLevel ¶
type MySQLClient ¶ added in v0.1.3
type MySQLClient struct { DB *gorm.DB Cfg config.EntityMysql }
func (*MySQLClient) CliFlags ¶ added in v0.1.3
func (c *MySQLClient) CliFlags(name string) []cli.Flag
func (*MySQLClient) Load ¶ added in v0.1.3
func (c *MySQLClient) Load(name string, _ *config.ComponentMysql, log logger.Interface) (err error)
type MysqlLogger ¶
type MysqlLogger struct {
// contains filtered or unexported fields
}
func (*MysqlLogger) Error ¶
func (l *MysqlLogger) Error(_ context.Context, msg string, data ...interface{})
func (*MysqlLogger) Info ¶
func (l *MysqlLogger) Info(_ context.Context, msg string, data ...interface{})
func (*MysqlLogger) SetLogger ¶
func (l *MysqlLogger) SetLogger(log glogger.Interface)
type Redis ¶
type Redis struct { Cfg config.ComponentRedis Clts map[string]*RedisClient }
type RedisClient ¶ added in v0.1.3
type RedisClient struct { DB *redis.Client Cfg config.EntityRedis }
func (*RedisClient) CliFlags ¶ added in v0.1.3
func (c *RedisClient) CliFlags(name string) []cli.Flag
func (*RedisClient) Load ¶ added in v0.1.3
func (c *RedisClient) Load(name string, cfg *config.ComponentRedis) error
Click to show internal directories.
Click to hide internal directories.