Documentation
¶
Index ¶
- Variables
- type Context
- func (c *Context) Close() error
- func (c *Context) Count() int
- func (c *Context) Deadline() (deadline time.Time, ok bool)
- func (c *Context) Done() <-chan struct{}
- func (c *Context) Err() error
- func (c *Context) Get(key string) (interface{}, error)
- func (c *Context) GetBoolean(key string) (bool, error)
- func (c *Context) GetString(key string) (string, error)
- func (c *Context) MustGet(key string) (value interface{})
- func (c *Context) MustGetBoolean(key string) bool
- func (c *Context) MustGetString(key string) string
- func (c *Context) Set(key string, value interface{}) error
- func (c *Context) Value(key interface{}) interface{}
- func (c *Context) With(handlers ...Provider) *Context
- type Provider
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrKeyNodFound = errors.New("key not found!")
)
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
sync.RWMutex // Read Write mutex, guards access to internal map.
// contains filtered or unexported fields
}
func NewContext ¶
func (*Context) MustGetBoolean ¶
func (*Context) MustGetString ¶
Click to show internal directories.
Click to hide internal directories.