Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(configpath string, opts LoggingOptions) (ConfigStore, Logger)
Init all foundation dependencies
Types ¶
type ConfigStore ¶
type ConfigStore interface {
Get(key string) interface{}
GetConfig(key string) interface{}
GetConfigX(key string, defaultvalue interface{}) interface{}
}
ConfigStore functions
type Logger ¶
type Logger interface {
Debug(ctx context.Context, args ...interface{})
Info(ctx context.Context, args ...interface{})
Warn(ctx context.Context, args ...interface{})
Error(ctx context.Context, args ...interface{})
InfoF(ctx context.Context, format string, args ...interface{})
WarnF(ctx context.Context, format string, args ...interface{})
DebugF(ctx context.Context, format string, args ...interface{})
ErrorF(ctx context.Context, format string, args ...interface{})
}
Logger functions
type LoggingOptions ¶ added in v1.2.5
Click to show internal directories.
Click to hide internal directories.