grpcx

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvoyproxyValidatorStreamServerInterceptor

func EnvoyproxyValidatorStreamServerInterceptor() grpc.StreamServerInterceptor

func EnvoyproxyValidatorUnaryServerInterceptor

func EnvoyproxyValidatorUnaryServerInterceptor() grpc.UnaryServerInterceptor

func GetIncomingMetaData added in v1.0.15

func GetIncomingMetaData(ctx context.Context) (metadata.MD, bool)

GetIncomingMetaData get grpc incoming metadata from grpc context

func GetMetaDataFirst added in v1.0.15

func GetMetaDataFirst(md metadata.MD, key string) string

GetMetaDataFirst get metadata first value by key

func GetRealIP added in v1.0.15

func GetRealIP(ctx context.Context) string

GetRealIP get user ip from grpc context

func GetUserAgent added in v1.0.15

func GetUserAgent(ctx context.Context) string

GetUserAgent get user agent from grpc context

Types

type Validator

type Validator interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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