grpc_server

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// PackageName 包名
	PackageName = "server.fgrpc"
)

Variables

This section is empty.

Functions

func BuildServerOptions

func BuildServerOptions(config *grpc_server_config.Config)

Types

type GrpcServer

type GrpcServer struct {
	*grpc.Server
	// contains filtered or unexported fields
}

Component ...

func NewGrpcServer

func NewGrpcServer(config *grpc_server_config.Config) *GrpcServer

func (*GrpcServer) Address

func (c *GrpcServer) Address() string

Address 服务地址

func (*GrpcServer) GracefulStop

func (c *GrpcServer) GracefulStop(ctx context.Context) error

GracefulStop implements server.Component interface it will stop echo server gracefully

func (*GrpcServer) Init

func (c *GrpcServer) Init() error

Init 初始化

func (*GrpcServer) IsBufNet

func (c *GrpcServer) IsBufNet() bool

IsBufNet 返回是不是测试网络类型

func (*GrpcServer) Listener

func (c *GrpcServer) Listener() net.Listener

Listener listener信息

func (*GrpcServer) Name

func (c *GrpcServer) Name() string

Name 配置名称

func (*GrpcServer) PackageName

func (c *GrpcServer) PackageName() string

PackageName 包名

func (*GrpcServer) Start

func (c *GrpcServer) Start() error

Start implements server.Component interface.

func (*GrpcServer) Stop

func (c *GrpcServer) Stop() error

Stop implements server.Component interface it will terminate echo server immediately

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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