Documentation ¶
Index ¶
- func ContextWithHandle(ctx context.Context) context.Context
- func FromContext(ctx context.Context) dispatch.Dispatcher
- func MustFromContext(ctx context.Context) dispatch.Dispatcher
- func SetInContext(ctx context.Context, dispatcher dispatch.Dispatcher) error
- func StreamServerInterceptor(dispatcher dispatch.Dispatcher) grpc.StreamServerInterceptor
- func UnaryServerInterceptor(dispatcher dispatch.Dispatcher) grpc.UnaryServerInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithHandle ¶
ContextWithHandle adds a placeholder to a context that will later be filled by the dispatcher
func FromContext ¶
func FromContext(ctx context.Context) dispatch.Dispatcher
FromContext reads the selected dispatcher out of a context.Context and returns nil if it does not exist.
func MustFromContext ¶
func MustFromContext(ctx context.Context) dispatch.Dispatcher
MustFromContext reads the selected dispatcher out of a context.Context, computes a zedtoken from it, and panics if it has not been set on the context.
func SetInContext ¶
func SetInContext(ctx context.Context, dispatcher dispatch.Dispatcher) error
SetInContext adds a dispatcher to the given context
func StreamServerInterceptor ¶
func StreamServerInterceptor(dispatcher dispatch.Dispatcher) grpc.StreamServerInterceptor
StreamServerInterceptor returns a new stream server interceptor that adds the dispatcher to the context
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(dispatcher dispatch.Dispatcher) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a new unary server interceptor that adds the dispatcher to the context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.