package
0.0.0-20241106092102-d9454141fd22
Repository: https://github.com/hayovanloon/go-netcontext.git
Documentation: pkg.go.dev
# Functions
CopyDeadline searches for the deadline in the metadata and returns an updated context with a cancellation function.
ExtractMetadata extracts configured values from the metadata and stores them in the returned context.
UnaryClientIntercept intercepts an outgoing request, adding metadata keys for the configured context values and deadline.
UnaryServerInterceptor extracts configured values from the incoming metadata and stores them in the context.