Documentation ¶
Index ¶
- type DefaultBasicRes
- func (c *DefaultBasicRes) GetConfig(name string) string
- func (c *DefaultBasicRes) GetConfigReader() core.ConfigReader
- func (c *DefaultBasicRes) GetDal() dal.Dal
- func (c *DefaultBasicRes) GetLogger() core.Logger
- func (c *DefaultBasicRes) NestedLogger(name string) core.BasicRes
- func (c *DefaultBasicRes) ReplaceLogger(logger core.Logger) core.BasicRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultBasicRes ¶
type DefaultBasicRes struct {
// contains filtered or unexported fields
}
DefaultBasicRes offers a common implementation for the BasisRes interface
func NewDefaultBasicRes ¶
func NewDefaultBasicRes( cfg core.ConfigReader, logger core.Logger, db dal.Dal, ) *DefaultBasicRes
NewDefaultBasicRes creates a new DefaultBasicRes instance
func (*DefaultBasicRes) GetConfig ¶
func (c *DefaultBasicRes) GetConfig(name string) string
GetConfig returns the value of the specificed name
func (*DefaultBasicRes) GetConfigReader ¶
func (c *DefaultBasicRes) GetConfigReader() core.ConfigReader
GetConfigReader returns the ConfigReader instance
func (*DefaultBasicRes) GetDal ¶
func (c *DefaultBasicRes) GetDal() dal.Dal
GetDal returns the Dal instance
func (*DefaultBasicRes) GetLogger ¶
func (c *DefaultBasicRes) GetLogger() core.Logger
GetLogger returns the Logger instance
func (*DefaultBasicRes) NestedLogger ¶
func (c *DefaultBasicRes) NestedLogger(name string) core.BasicRes
NestedLogger returns a new DefaultBasicRes with a new nested logger
func (*DefaultBasicRes) ReplaceLogger ¶
func (c *DefaultBasicRes) ReplaceLogger(logger core.Logger) core.BasicRes
ReplaceLogger returns a new DefaultBasicRes with the specified logger
Click to show internal directories.
Click to hide internal directories.