withoption

package
v0.0.0-...-a0020d1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultServerMaxReceiveMessageSize = 1024 * 1024 * 4
	DefaultServerMaxSendMessageSize    = math.MaxInt32
)

Variables

View Source
var DefaultKeepaliveParams = keepalive.ServerParameters{
	Timeout: 10 * time.Second,
}
View Source
var DefaultServerOptions = Options{
	MaxReceiveMessageSize: DefaultServerMaxReceiveMessageSize,
	MaxSendMessageSize:    DefaultServerMaxSendMessageSize,
}

Functions

This section is empty.

Types

type Options

type Options struct {
	Creds                 credentials.TransportCredentials
	Codec                 grpc.Codec
	Cp                    grpc.Compressor
	Dc                    grpc.Decompressor
	UnaryInt              grpc.UnaryServerInterceptor
	StreamInt             grpc.StreamServerInterceptor
	InTapHandle           tap.ServerInHandle
	StatsHandler          stats.Handler
	MaxConcurrentStreams  uint32
	MaxReceiveMessageSize int
	MaxSendMessageSize    int
	UseHandlerImpl        bool // use http.Handler-based server
	UnknownStreamDesc     *grpc.StreamDesc
	KeepaliveParams       keepalive.ServerParameters
	KeepalivePolicy       keepalive.EnforcementPolicy
	InitialWindowSize     int32
	InitialConnWindowSize int32
	WriteBufferSize       int
	ReadBufferSize        int
}

type Server

type Server struct {
	Opts Options
}

Jump to

Keyboard shortcuts

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