Documentation ¶
Index ¶
- func Add(n string, t reflect.Type)
- func Close()
- func Find(name string) (interface{}, bool)
- func FindByType(t reflect.Type) (interface{}, bool)
- func Get(n string) []reflect.Type
- func GraphLen() int
- func GraphPrint() string
- func InitDefault()
- func Reg(name string, value interface{}) interface{}
- func RegWithoutInjection(name string, value interface{}) interface{}
- func Register(name string, value interface{}) (interface{}, error)
- func RegisterOrFail(name string, value interface{}) interface{}
- func RegisterOrFailNoFill(name string, value interface{}) interface{}
- func RegisterOrFailSingle(name string, value interface{}) interface{}
- func RegisterOrFailSingleNoFill(name string, value interface{}) interface{}
- func RegisterSingle(name string, value interface{}) (interface{}, error)
- func SetLogger(logger Logger)
- type CloseAble
- type Graph
- func (g *Graph) Close()
- func (g *Graph) Find(name string) (*Object, bool)
- func (g *Graph) FindByType(t reflect.Type) (*Object, bool)
- func (g *Graph) Len() int
- func (g *Graph) RegWithoutInjection(name string, value interface{}) interface{}
- func (g *Graph) Register(name string, value interface{}) (interface{}, error)
- func (g *Graph) RegisterNoFill(name string, value interface{}) (interface{}, error)
- func (g *Graph) RegisterOrFail(name string, value interface{}) interface{}
- func (g *Graph) RegisterOrFailNoFill(name string, value interface{}) interface{}
- func (g *Graph) RegisterOrFailSingle(name string, value interface{}) interface{}
- func (g *Graph) RegisterOrFailSingleNoFill(name string, value interface{}) interface{}
- func (g *Graph) RegisterSingle(name string, value interface{}) (interface{}, error)
- func (g *Graph) RegisterSingleNoFill(name string, value interface{}) (interface{}, error)
- func (g *Graph) SPrint() string
- type Injectable
- type Logger
- type Object
- type StartAble
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindByType ¶
func GraphPrint ¶
func GraphPrint() string
func InitDefault ¶
func InitDefault()
func RegWithoutInjection ¶
func RegWithoutInjection(name string, value interface{}) interface{}
func RegisterOrFail ¶
func RegisterOrFail(name string, value interface{}) interface{}
func RegisterOrFailNoFill ¶
func RegisterOrFailNoFill(name string, value interface{}) interface{}
func RegisterOrFailSingle ¶
func RegisterOrFailSingle(name string, value interface{}) interface{}
func RegisterOrFailSingleNoFill ¶
func RegisterOrFailSingleNoFill(name string, value interface{}) interface{}
func RegisterSingle ¶
Types ¶
type Graph ¶
type Graph struct { Logger Logger // contains filtered or unexported fields }
func (*Graph) RegWithoutInjection ¶
func (*Graph) RegisterNoFill ¶
func (*Graph) RegisterOrFail ¶
func (*Graph) RegisterOrFailNoFill ¶
func (*Graph) RegisterOrFailSingle ¶
func (*Graph) RegisterOrFailSingleNoFill ¶
func (*Graph) RegisterSingle ¶
func (*Graph) RegisterSingleNoFill ¶
type Injectable ¶
type Logger ¶
type Logger interface { Debug(format interface{}, v ...interface{}) Info(format interface{}, v ...interface{}) Error(format interface{}, v ...interface{}) error }
Click to show internal directories.
Click to hide internal directories.