Documentation ¶
Overview ¶
author: JGZ time: 2021-01-28 10:26
author: JGZ time: 2021-01-28 15:51
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instancer ¶
type Instancer struct {
// contains filtered or unexported fields
}
func NewInstancer ¶
func NewInstancer(client naming_client.INamingClient, logger log.Logger, service string, groupName string, clusters []string) *Instancer
func (*Instancer) Deregister ¶
type Param ¶
type Param struct { Ip string `param:"ip"` //required Port uint64 `param:"port"` //required ServiceName string `param:"serviceName"` //required Weight float64 `param:"weight"` //required,it must be lager than 0 Metadata map[string]string `param:"metadata"` //optional ClusterName string `param:"clusterName"` //optional,default:DEFAULT GroupName string `param:"groupName"` //optional,default:DEFAULT_GROUP }
type Registrar ¶
type Registrar struct {
// contains filtered or unexported fields
}
func NewRegistrar ¶
func NewRegistrar(client naming_client.INamingClient, param Param, logger log.Logger) *Registrar
func (*Registrar) Deregister ¶
func (p *Registrar) Deregister()
Deregister implements sd.Registrar interface.
Click to show internal directories.
Click to hide internal directories.