spring

package
v0.0.0-...-69154b6 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(cfgFile string) error

Types

type Spring

type Spring struct {
	// contains filtered or unexported fields
}

func AppCtx

func AppCtx() *Spring

func (*Spring) Get

func (*Spring) Get(i interface{})

func (*Spring) Reg

func (s *Spring) Reg(i interface{}) interface{}

type SpringIOC

type SpringIOC struct {
	// contains filtered or unexported fields
}

func (*SpringIOC) Get

func (ioc *SpringIOC) Get(x interface{}) interface{}

func (*SpringIOC) GetByName

func (ioc *SpringIOC) GetByName(name string) interface{}

func (*SpringIOC) Reg

func (ioc *SpringIOC) Reg(x interface{}) (ins interface{}, err error)

type SpringLog

type SpringLog struct {
	Level string `val:${log.level}`
}

func (*SpringLog) Debug

func (s *SpringLog) Debug(fmt string, args ...interface{})

func (*SpringLog) Error

func (s *SpringLog) Error(fmt string, args ...interface{})

func (*SpringLog) Info

func (s *SpringLog) Info(fmt string, args ...interface{})

func (*SpringLog) Warn

func (s *SpringLog) Warn(fmt string, args ...interface{})

Jump to

Keyboard shortcuts

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