nacos_grpc

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CtxOptionsTimeOut = "timeout"
	CtxOptionsShowLog = "showLog"
)

Functions

func GetGrpcConn

func GetGrpcConn(serviceName string) *grpc.ClientConn

func GracefulShutdown added in v0.3.16

func GracefulShutdown()

GracefulShutdown 优雅关闭

func InitNacosGrpc

func InitNacosGrpc(services Services)

Types

type NacosGrpcError

type NacosGrpcError struct {
	Number  uint16
	Message string
}

func (*NacosGrpcError) Error

func (e *NacosGrpcError) Error() string

type Service

type Service struct {
	Name      string
	Weight    float64
	RegHandle func(s grpc.ServiceRegistrar)
}

type Services

type Services struct {
	Consumer []Service
	Provider []Service
}

Jump to

Keyboard shortcuts

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