nodeid

package
v1.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithHandle

func ContextWithHandle(ctx context.Context) context.Context

ContextWithHandle adds a placeholder to a context that will later be filled by the Node ID.

func FromContext

func FromContext(ctx context.Context) (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL