serverGrpc

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts ...Option) (*_Server, error)

Types

type Conf

type Conf struct {
	Addr              string        `yaml:"addr"`
	ServiceName       string        `yaml:"service_name"`
	ConnectionTimeout int           `yaml:"connection_timeout"` //所有连接的超时设置
	KeepAliveConf     keepAliveConf `yaml:"keep_alive_conf"`
}

type Option

type Option func(c *_Server)

func SetConf

func SetConf(c Conf) Option

Jump to

Keyboard shortcuts

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