Versions in this module Expand all Collapse all v0 v0.1.3 Aug 2, 2022 v0.1.2 Jul 29, 2022 Changes in this version + type EventHandler interface + GetBusiness func() string + GetMeshConfig func() *namingpb.MeshConfig + GetMeshResource func() *namingpb.MeshResource + GetRevision func() string + OnServiceUpdate func(*ServiceEvent) (deleted bool) + 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) (*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(*model.InstanceRegisterRequest) (*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