discover

package
v1.13.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCServer

type GRPCServer struct {
	grpcserver.BaseGrpcServer
	// contains filtered or unexported fields
}

GRPCServer GRPC API服务器

func (*GRPCServer) GetPort

func (g *GRPCServer) GetPort() uint32

GetPort 获取端口

func (*GRPCServer) GetProtocol

func (g *GRPCServer) GetProtocol() string

GetProtocol 获取Server的协议

func (*GRPCServer) Initialize

func (g *GRPCServer) Initialize(ctx context.Context, option map[string]interface{},
	apiConf map[string]apiserver.APIConfig) error

Initialize 初始化GRPC API服务器

func (*GRPCServer) Restart

func (g *GRPCServer) Restart(option map[string]interface{}, api map[string]apiserver.APIConfig,
	errCh chan error) error

Restart 重启Server

func (*GRPCServer) Run

func (g *GRPCServer) Run(errCh chan error)

Run 启动GRPC API服务器

func (*GRPCServer) Stop

func (g *GRPCServer) Stop()

Stop 关闭GRPC

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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