nacos_grpc

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGrpcConn

func GetGrpcConn(serviceName string) *grpc.ClientConn

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