grpcserverutil

package
v0.0.0-...-6719cd2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package grpcserverutil has helpers for configuring gRPC servers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer() *grpc.Server

NewServer returns a new gRPC Server instance that has been configured with our common options, and to capture metrics & tracing

func StreamInterceptorChain

func StreamInterceptorChain(first, second grpc.StreamServerInterceptor) grpc.StreamServerInterceptor

StreamInterceptorChain lets you use multiple stream interceptors on a single server. gRPC only lets you have one top-level StreamServerInterceptor per server, so this chains them together.

func UnaryInterceptorChain

func UnaryInterceptorChain(first, second grpc.UnaryServerInterceptor) grpc.UnaryServerInterceptor

UnaryInterceptorChain lets you use multiple interceptors on a single server. gRPC only lets you have one top-level UnaryServerInterceptor per server, so this chains them together.

Types

This section is empty.

Jump to

Keyboard shortcuts

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