tags

package
v1.2.115 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SystemField is used in every statement made through value. Can be overwritten before any initialization code.
	SystemField = "system"

	// KindField indicates whether this is a server or a client interceptor.
	KindField = "grpc.kind"

	// ServiceField indicates rpc's service name
	ServiceField = "grpc.service"
	// MethodField indicates rpc's service method
	MethodField = "grpc.method"
)

Functions

func StreamClientInterceptor

func StreamClientInterceptor(key interface{}, values map[string]interface{}) grpc.StreamClientInterceptor

StreamClientInterceptor returns a new streaming client interceptor with tags in context.

func StreamServerInterceptor

func StreamServerInterceptor(key interface{}, values map[string]interface{}) grpc.StreamServerInterceptor

StreamServerInterceptor returns a new streaming server interceptor with tags in context.

func UnaryClientInterceptor

func UnaryClientInterceptor(key interface{}, values map[string]interface{}) grpc.UnaryClientInterceptor

UnaryClientInterceptor returns a new unary client interceptor with tags in context.

func UnaryServerInterceptor

func UnaryServerInterceptor(key interface{}, values map[string]interface{}) grpc.UnaryServerInterceptor

UnaryServerInterceptor returns a new unary server interceptors with tags in context.

Types

type Kind

type Kind string

Kind interceptor's kind

const (
	KindServer Kind = "server"
	KindClient Kind = "client"
)

Jump to

Keyboard shortcuts

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