grpc

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(opts ...option) (*grpc.Server, error)

func WithConfig

func WithConfig(c *Config) option

func WithRegistes added in v1.2.4

func WithRegistes(f ...registerer) option

Types

type Config

type Config struct {
	Host              string        `default:"0.0.0.0:5000" yaml:"host"`
	MaxConnectionIdle time.Duration `default:"5m" yaml:"max_connection_idle"`
	MaxConnectionAge  time.Duration `default:"5m" yaml:"max_connection_age"`
	Timeout           time.Duration `default:"5m" yaml:"timeout"`
	Time              time.Duration `default:"5m" yaml:"time"`
	MaxRecvMsgSize    int           `default:"10485760" yaml:"max_recv_msg_size"`
	MaxSendMsgSize    int           `default:"10485760" yaml:"max_send_msg_size"`
}

Jump to

Keyboard shortcuts

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