Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultRegistry = NewRegistry()
)
Functions ¶
func Deregister ¶
func Deregister(sd *grpc.ServiceDesc, opts ...Option)
Types ¶
type Registry ¶
type Registry interface { // 生成grpc.Dial target NewTarget(sd *grpc.ServiceDesc, opts ...Option) string // 注册服务 Register(sd *grpc.ServiceDesc, opts ...Option) error // 注销服务 // sd=nil,注销全部服务 Deregister(sd *grpc.ServiceDesc, opts ...Option) }
func NewRegistry ¶
func NewRegistry() Registry
Click to show internal directories.
Click to hide internal directories.