Documentation ¶
Index ¶
- Variables
- func GetLocalIP() (ipv4 string, err error)
- type Container
- func (p *Container) Ensure(instance interface{}) error
- func (p *Container) GetPrototype(name string) (interface{}, error)
- func (p *Container) GetSingleton(name string) interface{}
- func (p *Container) SetPrototype(name string, factory factory)
- func (p *Container) SetSingleton(name string, singleton interface{})
- func (p *Container) String() string
- type IniParser
- func (current *IniParser) GetFloat32(section string, key string) float32
- func (current *IniParser) GetFloat64(section string, key string) float64
- func (current *IniParser) GetInt32(section string, key string) int32
- func (current *IniParser) GetInt64(section string, key string) int64
- func (current *IniParser) GetString(section string, key string) string
- func (current *IniParser) GetUint32(section string, key string) uint32
- func (current *IniParser) GetUint64(section string, key string) uint64
- func (current *IniParser) Load(configFileName string) error
- type IniParserError
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFactoryNotFound = errors.New("factory not found")
)
Functions ¶
func GetLocalIP ¶
Types ¶
type Container ¶
Container
var (
MasterContainer *Container
)
func (*Container) GetPrototype ¶
get prototype object
func (*Container) GetSingleton ¶
get singleton object
func (*Container) SetPrototype ¶
get prototype object
func (*Container) SetSingleton ¶
registered singleton object
type IniParser ¶
type IniParser struct {
// contains filtered or unexported fields
}
func (*IniParser) GetFloat32 ¶
func (*IniParser) GetFloat64 ¶
type IniParserError ¶
type IniParserError struct {
// contains filtered or unexported fields
}
func (*IniParserError) Error ¶
func (e *IniParserError) Error() string
Click to show internal directories.
Click to hide internal directories.