Documentation
¶
Overview ¶
Package nodeid defines middleware to update the context with the Id of the SpiceDB node running the request.
Index ¶
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 Node ID.
func FromContext ¶
FromContext reads the node's ID out of a context.Context.
func StreamServerInterceptor ¶
func StreamServerInterceptor(nodeID string) grpc.StreamServerInterceptor
StreamServerInterceptor returns a new stream server interceptor that adds the node ID to the context. If empty, spicedb:$hostname is used.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(nodeID string) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a new unary server interceptor that adds the node ID to the context. If empty, spicedb:$hostname is used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.