grpc

package
v0.0.0-...-ec14ce0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(opt ...ServerOption) *grpc.Server

NewServer creates a new instance of gRPC server.

Types

type ServerOption

type ServerOption func(options *options)

ServerOption sets server options.

func WithGRPCOptions

func WithGRPCOptions(opt ...grpc.ServerOption) ServerOption

WithGRPCOptions sets gRPC server options.

func WithStreamInterceptor

func WithStreamInterceptor(s grpc.StreamServerInterceptor) ServerOption

WithStreamInterceptor adds a stream interceptor to the chain.

func WithUnaryInterceptor

func WithUnaryInterceptor(u grpc.UnaryServerInterceptor) ServerOption

WithUnaryInterceptor adds an unary interceptor to the chain.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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