Documentation ¶
Index ¶
- type Context
- func New(ctx context.Context, config *configure.Config) Context
- func WithCancel(ctx Context) (Context, context.CancelFunc)
- func WithDeadline(ctx Context, deadline time.Time) (Context, context.CancelFunc)
- func WithTimeout(ctx Context, timeout time.Duration) (Context, context.CancelFunc)
- func WithValue(ctx Context, key interface{}, value interface{}) Context
- type Instances
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface { Deadline() (deadline time.Time, ok bool) Err() error Value(key interface{}) interface{} Done() <-chan struct{} Config() *configure.Config Inst() *Instances }
func WithCancel ¶
func WithCancel(ctx Context) (Context, context.CancelFunc)
func WithDeadline ¶
func WithTimeout ¶
Click to show internal directories.
Click to hide internal directories.