Documentation ¶
Index ¶
- type ApplicationContext
- type Context
- func (*Context) Deadline() (deadline time.Time, ok bool)
- func (*Context) Done() <-chan struct{}
- func (*Context) Err() error
- func (c *Context) Get(key string) (value interface{}, exists bool)
- func (c *Context) GetBool(key string) (b bool)
- func (c *Context) GetDuration(key string) (d time.Duration)
- func (c *Context) GetFloat64(key string) (f64 float64)
- func (c *Context) GetInt(key string) (i int)
- func (c *Context) GetInt64(key string) (i64 int64)
- func (c *Context) GetString(key string) (s string)
- func (c *Context) GetStringMap(key string) (sm map[string]interface{})
- func (c *Context) GetStringMapString(key string) (sms map[string]string)
- func (c *Context) GetStringMapStringSlice(key string) (smss map[string][]string)
- func (c *Context) GetStringSlice(key string) (ss []string)
- func (c *Context) GetTime(key string) (t time.Time)
- func (c *Context) Set(key string, value interface{})
- func (*Context) Value(key interface{}) interface{}
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationContext ¶
type ApplicationContext struct { Logger logger.ILogger Conf *viper.Viper AppReady bool Opts map[string]interface{} }
func NewAppContext ¶
func NewAppContext() *ApplicationContext
func (*ApplicationContext) Deadline ¶
func (*ApplicationContext) Deadline() (deadline time.Time, ok bool)
func (*ApplicationContext) Done ¶
func (*ApplicationContext) Done() <-chan struct{}
func (*ApplicationContext) Err ¶
func (*ApplicationContext) Err() error
func (*ApplicationContext) IsRunInProductionMode ¶
func (a *ApplicationContext) IsRunInProductionMode() bool
func (*ApplicationContext) Value ¶
func (*ApplicationContext) Value(key interface{}) interface{}
type Context ¶
type Context struct { Unique string App *ApplicationContext Opts map[string]interface{} Session Session // contains filtered or unexported fields }
func (*Context) GetFloat64 ¶
func (*Context) GetStringMap ¶
func (*Context) GetStringMapString ¶
func (*Context) GetStringMapStringSlice ¶
func (*Context) GetStringSlice ¶
Click to show internal directories.
Click to hide internal directories.