Versions in this module Expand all Collapse all v1 v1.5.4 Oct 26, 2023 Changes in this version + type EventHandler interface + GetBusiness func() string + GetRevision func() string + OnServiceUpdate func(*ServiceEvent) + type MessageCallBack interface + OnResponse func(proto.Message) + type Proxy struct + func (p *Proxy) DeRegisterServiceHandler(key *model.ServiceEventKey) error + func (p *Proxy) Heartbeat(instance *model.InstanceHeartbeatRequest) error + func (p *Proxy) RegisterInstance(req *model.InstanceRegisterRequest, header map[string]string) (*model.InstanceRegisterResponse, error) + func (p *Proxy) RegisterServiceHandler(handler *ServiceEventHandler) error + func (p *Proxy) ReportClient(req *model.ReportClientRequest) (*model.ReportClientResponse, error) + func (p *Proxy) SetRealPlugin(plug plugin.Plugin, engine model.Engine) + func (p *Proxy) UpdateServers(key *model.ServiceEventKey) error + type ServerConnector interface + DeRegisterServiceHandler func(*model.ServiceEventKey) error + DeregisterInstance func(instance *model.InstanceDeRegisterRequest) error + Heartbeat func(instance *model.InstanceHeartbeatRequest) error + RegisterInstance func(req *model.InstanceRegisterRequest, header map[string]string) (*model.InstanceRegisterResponse, error) + RegisterServiceHandler func(*ServiceEventHandler) error + ReportClient func(*model.ReportClientRequest) (*model.ReportClientResponse, error) + UpdateServers func(key *model.ServiceEventKey) error + type ServiceEvent struct + Error model.SDKError + Value proto.Message + type ServiceEventHandler struct + Handler EventHandler + RefreshInterval time.Duration + TargetCluster config.ClusterType