rpc

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChainStreamServer

func ChainStreamServer() grpc.StreamServerInterceptor

func ChainUnaryServer

func ChainUnaryServer() grpc.UnaryServerInterceptor

func New

func New(opts *ServerOptions) *grpc.Server

Types

type ServerOption

type ServerOption func(*ServerOptions)

func WithDefaultKeepaliveOption

func WithDefaultKeepaliveOption() ServerOption

func WithDefaultStreamInterceptors

func WithDefaultStreamInterceptors(fns ...grpc.StreamServerInterceptor) ServerOption

func WithDefaultUnaryInterceptors

func WithDefaultUnaryInterceptors(fns ...grpc.UnaryServerInterceptor) ServerOption

func WithRateLimitingOption

func WithRateLimitingOption(fn tap.ServerInHandle) ServerOption

func WithServerOption

func WithServerOption(opts ...grpc.ServerOption) ServerOption

func WithStreamInterceptors

func WithStreamInterceptors(fns ...grpc.StreamServerInterceptor) ServerOption

func WithUnaryInterceptors

func WithUnaryInterceptors(fns ...grpc.UnaryServerInterceptor) ServerOption

type ServerOptions

type ServerOptions struct {
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions(opts ...ServerOption) *ServerOptions

Jump to

Keyboard shortcuts

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