Documentation
¶
Index ¶
- Variables
- func NewGormDB(config Config, cache bucket.Bucket) (*gorm.DB, error)
- type Config
- type Logger
- func (l Logger) Debug(ctx context.Context, msg string, opts ...interface{})
- func (l Logger) Error(ctx context.Context, msg string, opts ...interface{})
- func (l Logger) Info(ctx context.Context, msg string, opts ...interface{})
- func (l Logger) LogMode(logger.LogLevel) logger.Interface
- func (l Logger) Trace(ctx context.Context, begin time.Time, f func() (string, int64), err error)
- func (l Logger) Warn(ctx context.Context, msg string, opts ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewConfig, NewGormDB, )
Functions ¶
Types ¶
type Config ¶
func NewDefaultConfig ¶
func NewDefaultConfig() Config
Click to show internal directories.
Click to hide internal directories.