Documentation ¶
Index ¶
- func Config() intf.ConfigProvider
- func Db() intf.DbProvider
- func DbBuilder(sqlizer intf.Sqlizer) intf.DbBuilderProvider
- func HasInitialized() bool
- func Logger() intf.LoggerProvider
- func Mq() intf.MessageQueueProvider
- func Redis() intf.RedisProvider
- func Sqlx() intf.SqlxDbProvider
- type Option
- type SdkInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Config ¶
func Config() intf.ConfigProvider
func Db ¶
func Db() intf.DbProvider
func HasInitialized ¶
func HasInitialized() bool
func Logger ¶
func Logger() intf.LoggerProvider
func Mq ¶
func Mq() intf.MessageQueueProvider
func Redis ¶
func Redis() intf.RedisProvider
func Sqlx ¶
func Sqlx() intf.SqlxDbProvider
Types ¶
type SdkInstance ¶
type SdkInstance struct {
// contains filtered or unexported fields
}
func New ¶
func New(app, env string, options ...Option) *SdkInstance
func (*SdkInstance) Initialize ¶
func (i *SdkInstance) Initialize(capabilities ...*intf.Capability) error
Initialize all kinds of capability
func (*SdkInstance) LoadConfig ¶
func (i *SdkInstance) LoadConfig(configVar any) *SdkInstance
Directories ¶
Path | Synopsis |
---|---|
lib
|
|
provider
|
|
config/viper
Package config the default setting hierarchy looks like below:
|
Package config the default setting hierarchy looks like below: |
logger/zerolog
Package zerolog @Title logger capability of zerolog @Description zerolog implementation of logger capability @Author Ryan Fan 2021-06-09 @Update Ryan Fan 2021-06-09
|
Package zerolog @Title logger capability of zerolog @Description zerolog implementation of logger capability @Author Ryan Fan 2021-06-09 @Update Ryan Fan 2021-06-09 |
Click to show internal directories.
Click to hide internal directories.