middleware

package
Version: v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL