Documentation ¶
Index ¶
- type Context
- func (ctx *Context) Bool(key string) bool
- func (ctx *Context) DoOnce(handler string, f func())
- func (ctx *Context) Done() <-chan struct{}
- func (ctx *Context) Float(key string) float64
- func (ctx *Context) Int(key string) int
- func (ctx *Context) Object(key string) interface{}
- func (ctx *Context) SetBool(boolean bool, key string)
- func (ctx *Context) SetFloat(float float64, key string)
- func (ctx *Context) SetInt(integer int, key string)
- func (ctx *Context) SetObject(object interface{}, key string)
- func (ctx *Context) SetString(s string, key string)
- func (ctx *Context) String(key string) string
- func (ctx *Context) Terminate()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context carries stream related variables across stream and its associated modules. Its methods are safe for simultaneous use by multiple goroutines.
func (*Context) DoOnce ¶
DoOnce allows to execute a handler associated function only once in a concurrently safe manner.
func (*Context) Done ¶
func (ctx *Context) Done() <-chan struct{}
Done returns a channel that is closed when the stream is terminated.
Click to show internal directories.
Click to hide internal directories.