Documentation ¶
Index ¶
- Variables
- func AuthFromMD(ctx context.Context, expectedScheme string, headerAuthorize ...string) (string, error)
- func GetSubjectTokenFromContext(ctx context.Context) (string, error)
- func GetTokenFromContext(ctx context.Context) (string, error)
- func HandleGRPCError(logger log.FieldLogger, err error, format string, args ...interface{}) error
- func HttpStatusCode2GrpcStatusCode(code int) codes.Code
- func StreamServerInterceptor() grpc.StreamServerInterceptor
- func UnaryServerInterceptor() grpc.UnaryServerInterceptor
- type MethodDescription
Constants ¶
This section is empty.
Variables ¶
View Source
var (
InvalidFullMethodName = errors.New("invalid full method name")
)
Functions ¶
func AuthFromMD ¶
func AuthFromMD(ctx context.Context, expectedScheme string, headerAuthorize ...string) (string, error)
github.com/grpc-ecosystem/go-grpc-middleware/auth/metadata.go:AuthFromMD
func HandleGRPCError ¶
func HandleGRPCError(logger log.FieldLogger, err error, format string, args ...interface{}) error
func StreamServerInterceptor ¶
func StreamServerInterceptor() grpc.StreamServerInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor() grpc.UnaryServerInterceptor
Types ¶
type MethodDescription ¶
func ParseMethodDescription ¶
func ParseMethodDescription(fullMethodName string) (*MethodDescription, error)
Click to show internal directories.
Click to hide internal directories.