Documentation ¶
Index ¶
- func Init()
- type BasicConfiger
- func (c *BasicConfiger) GetApplicationID() int
- func (c *BasicConfiger) GetBool(path string) bool
- func (c *BasicConfiger) GetEnvironment() string
- func (c *BasicConfiger) GetFloat(path string) float64
- func (c *BasicConfiger) GetInt(path string) int64
- func (c *BasicConfiger) GetObject(path string) interface{}
- func (c *BasicConfiger) GetService(service string) Service
- func (c *BasicConfiger) GetSlice(path string) []interface{}
- func (c *BasicConfiger) GetString(path string) string
- func (c *BasicConfiger) GetWebserver() Webserver
- type Config
- type Configer
- type Service
- type Webserver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicConfiger ¶
type BasicConfiger struct {
// contains filtered or unexported fields
}
func (*BasicConfiger) GetApplicationID ¶
func (c *BasicConfiger) GetApplicationID() int
func (*BasicConfiger) GetBool ¶
func (c *BasicConfiger) GetBool(path string) bool
func (*BasicConfiger) GetEnvironment ¶
func (c *BasicConfiger) GetEnvironment() string
func (*BasicConfiger) GetFloat ¶
func (c *BasicConfiger) GetFloat(path string) float64
func (*BasicConfiger) GetInt ¶
func (c *BasicConfiger) GetInt(path string) int64
func (*BasicConfiger) GetObject ¶
func (c *BasicConfiger) GetObject(path string) interface{}
func (*BasicConfiger) GetService ¶
func (c *BasicConfiger) GetService(service string) Service
func (*BasicConfiger) GetSlice ¶
func (c *BasicConfiger) GetSlice(path string) []interface{}
func (*BasicConfiger) GetString ¶
func (c *BasicConfiger) GetString(path string) string
func (*BasicConfiger) GetWebserver ¶
func (c *BasicConfiger) GetWebserver() Webserver
type Configer ¶
type Configer interface { GetEnvironment() string GetApplicationID() int GetWebserver() Webserver GetService(service string) Service GetString(path string) string GetFloat(path string) float64 GetInt(path string) int64 GetBool(path string) bool GetObject(path string) interface{} GetSlice(path string) []interface{} }
func ReadConfig ¶
func ReadConfig() Configer
Click to show internal directories.
Click to hide internal directories.