Documentation ¶
Index ¶
- func AutoMigrateEnv() core.Dio
- func GetBean(beanName string) (bean interface{}, ok bool)
- func GetByType(beanType interface{}) (bean interface{}, ok bool)
- func GetProperties(prefix string, destType interface{}) interface{}
- func GetPropertyString(key string) string
- func LoadConfig(configs fs.FS, filename string) core.Dio
- func LoadDefaultConfig(configs fs.FS, filename string) core.Dio
- func Logger() core.Log
- func New() core.Dio
- func NewZapLogger(l core.Property, opts ...zap.Option) (core.Log, error)
- func Provide(prototype ...interface{}) core.Dio
- func ProvideMultiBeanNotOnProperty(beans []interface{}, property string, compareValue string, ...) core.Dio
- func ProvideMultiBeanOnProperty(beans []interface{}, property string, compareValue string, ...) core.Dio
- func ProvideMultiNamedBean(namedBeanMap map[string]interface{}) core.Dio
- func ProvideMultiNamedBeanNotOnProperty(namedBeanMap map[string]interface{}, property string, compareValue string, ...) core.Dio
- func ProvideMultiNamedBeanOnProperty(namedBeanMap map[string]interface{}, property string, compareValue string, ...) core.Dio
- func ProvideNamedBean(beanName string, prototype interface{}) core.Dio
- func ProvideNamedBeanNotOnProperty(beanName string, prototype interface{}, property string, compareValue string, ...) core.Dio
- func ProvideNamedBeanOnProperty(beanName string, prototype interface{}, property string, compareValue string, ...) core.Dio
- func ProvideNotOnProperty(prototype interface{}, property string, compareValue string, ...) core.Dio
- func ProvideOnProperty(prototype interface{}, property string, compareValue string, ...) core.Dio
- func RegisterBean(bean interface{}) core.Dio
- func RegisterNamedBean(name string, bean interface{}) core.Dio
- func Run(ctx context.Context)
- func SetDefaultProperty(key string, value interface{}) core.Dio
- func SetDefaultPropertyMap(properties map[string]interface{}) core.Dio
- func SetLogger(log core.Log) core.Dio
- func SetProperty(key string, value interface{}) core.Dio
- func SetPropertyMap(properties map[string]interface{}) core.Dio
- func Use(plugins ...core.PluginConfig) core.Dio
- func WrapZapLogger(logger *zap.Logger, opts ...zap.Option) core.Log
- type ZapLogger
- func (l *ZapLogger) BeanName() string
- func (l *ZapLogger) Debug(ctx context.Context, msg string, keyAndValues ...interface{})
- func (l *ZapLogger) Debugw(ctx context.Context, msg string, keyAndValues ...map[string]interface{})
- func (l *ZapLogger) Error(ctx context.Context, msg string, keyAndValues ...interface{})
- func (l *ZapLogger) Errorw(ctx context.Context, msg string, keyAndValues ...map[string]interface{})
- func (l *ZapLogger) Info(ctx context.Context, msg string, keyAndValues ...interface{})
- func (l *ZapLogger) Infow(ctx context.Context, msg string, keyAndValues ...map[string]interface{})
- func (l *ZapLogger) Logger() interface{}
- func (l *ZapLogger) Named(named string) (logger core.Log)
- func (l *ZapLogger) Skip(skip int) (logger core.Log)
- func (l *ZapLogger) Trace(ctx context.Context) context.Context
- func (l *ZapLogger) TraceWith(ctx context.Context, val any) context.Context
- func (l *ZapLogger) Warn(ctx context.Context, msg string, keyAndValues ...interface{})
- func (l *ZapLogger) Warnw(ctx context.Context, msg string, keyAndValues ...map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoMigrateEnv ¶
func AutoMigrateEnv() core.Dio
func GetProperties ¶ added in v0.0.6
func GetProperties(prefix string, destType interface{}) interface{}
func GetPropertyString ¶
func LoadConfig ¶
func LoadDefaultConfig ¶
func NewZapLogger ¶ added in v0.0.6
func ProvideMultiNamedBean ¶
func ProvideMultiNamedBean(namedBeanMap map[string]interface{}) core.Dio
func ProvideNamedBean ¶
func ProvideNamedBean(beanName string, prototype interface{}) core.Dio
func ProvideNotOnProperty ¶
func ProvideOnProperty ¶
func RegisterBean ¶
func RegisterBean(bean interface{}) core.Dio
func RegisterNamedBean ¶
func RegisterNamedBean(name string, bean interface{}) core.Dio
func SetDefaultProperty ¶
func SetDefaultProperty(key string, value interface{}) core.Dio
func SetDefaultPropertyMap ¶
func SetDefaultPropertyMap(properties map[string]interface{}) core.Dio
func SetProperty ¶
func SetProperty(key string, value interface{}) core.Dio
func SetPropertyMap ¶
func SetPropertyMap(properties map[string]interface{}) core.Dio
Types ¶
type ZapLogger ¶ added in v0.0.6
type ZapLogger struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.