rpc

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 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