Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorParamEmpty liberr.CodeError = iota + libcfg.MinErrorComponentDatabase ErrorParamInvalid ErrorComponentNotInitialized ErrorConfigInvalid ErrorComponentStart ErrorComponentReload ErrorDependencyLogDefault )
View Source
const (
ComponentType = "database"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func RegisterNew ¶
func RegisterNew(ctx libctx.FuncContext, cfg libcfg.Config, key string)
func SetDefaultConfig ¶
func SetDefaultConfig(cfg []byte)
Types ¶
type ComponentDatabase ¶
type ComponentDatabase interface { cfgtps.Component SetLogOptions(ignoreRecordNotFoundError bool, slowThreshold time.Duration) GetDatabase() libdbs.Database SetDatabase(db libdbs.Database) }
func Load ¶
func Load(getCpt cfgtps.FuncCptGet, key string) ComponentDatabase
func New ¶
func New(ctx libctx.FuncContext) ComponentDatabase
Click to show internal directories.
Click to hide internal directories.