impl

package
v0.15.1-hexun Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2023 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL