foundation

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(configpath string) (ConfigStore, Logger)

Init all foundation dependencies

Types

type ConfigStore

type ConfigStore interface {
	Get(key string) interface{}
	GetConfig(key string) interface{}
	GetConfigX(key string, defaultvalue interface{}) interface{}
}

ConfigStore functions

func GetConfigStore

func GetConfigStore() ConfigStore

GetConfigStore to get configuration store

type Logger

type Logger interface {
	Info(args ...interface{})
	Warn(args ...interface{})
	Debug(args ...interface{})
	Error(args ...interface{})
	Fatal(args ...interface{})

	InfoF(format string, args ...interface{})
	WarnF(format string, args ...interface{})
	DebugF(format string, args ...interface{})
	ErrorF(format string, args ...interface{})
	FatalF(format string, args ...interface{})
}

Logger functions

func GetLogger

func GetLogger() Logger

GetLogger to get logger instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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