middleware

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package middleware provides server utitilies for RTrade gRPC services

Index

Constants

View Source
const AuthorizationKey = "authorization"

AuthorizationKey is the key used to store authorization token data

Variables

This section is empty.

Functions

func NewServerInterceptors

func NewServerInterceptors(key string) (
	unaryInterceptor grpc.UnaryServerInterceptor,
	streamInterceptor grpc.StreamServerInterceptor,
)

NewServerInterceptors creates unary and stream interceptors that validate requests, for use with gRPC servers, using given key

Types

This section is empty.

Jump to

Keyboard shortcuts

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