Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrorParamsEmpty liberr.CodeError = iota + libcfg.MinErrorComponentDatabase ErrorParamsInvalid ErrorComponentNotInitialized ErrorConfigInvalid ErrorStartDatabase ErrorReloadDatabase ErrorDependencyLogDefault )
View Source
const (
ComponentType = "database"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func IsCodeError ¶
func IsCodeError() bool
func RegisterNew ¶
func SetDefaultConfig ¶
func SetDefaultConfig(cfg []byte)
Types ¶
type ComponentDatabase ¶
type ComponentDatabase interface {
libcfg.Component
SetLOGKey(logKey string)
SetLogOptions(ignoreRecordNotFoundError bool, slowThreshold time.Duration)
GetDatabase() libdbs.Database
SetDatabase(db libdbs.Database)
}
func Load ¶
func Load(getCpt libcfg.FuncComponentGet, key string) ComponentDatabase
func New ¶
func New(logKey string) ComponentDatabase
Click to show internal directories.
Click to hide internal directories.