Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WithContext ¶
type WithContext struct {
// contains filtered or unexported fields
}
WithContext is used to attach a context.Context to a long-lived entyt. This entity will then use this Context for all operations (serving requests, etc.).
func (*WithContext) Context ¶
func (wc *WithContext) Context() context.Context
Context returns the attached context.Context, or the Background Context if no Context has been attached yet.
func (*WithContext) InitContext ¶
func (wc *WithContext) InitContext(ctx context.Context)
InitContext initializes the context.Context. The provided Context must be non-nil, else it will panic.
Click to show internal directories.
Click to hide internal directories.