Documentation
¶
Index ¶
- func FromContext(ctx context.Context, key any) chan event.GenericEvent
- func FromContextWithBuffer(ctx context.Context, key any, buffer int) chan event.GenericEvent
- func JoinContext(left, right context.Context) context.Context
- func NewContext() context.Context
- func ValidateContext(ctx context.Context) bool
- func WithContext(parent context.Context) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
func FromContext(ctx context.Context, key any) chan event.GenericEvent
FromContext creates or gets the channel for the specified key.
func FromContextWithBuffer ¶
FromContextWithBuffer creates or gets the buffered channel for the specified key and buffer size.
func JoinContext ¶
JoinContext returns a new context that contains a reference to the channels map from the specified context. This function panics if the provided context does not contain a channels map. This function is thread-safe.
func NewContext ¶
NewContext returns a new context with a new channels map.
func ValidateContext ¶
ValidateContext returns true if the provided context contains the channels map and key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.