Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StubMap *sync.Map
Functions ¶
func GetStubAddress ¶
Types ¶
type StubConnection ¶
type StubConnection struct { Address string Conn pb.MsmControlPlane_SendServer Clients map[string]Client }
func NewStubConnection ¶
func NewStubConnection(address string, conn pb.MsmControlPlane_SendServer) *StubConnection
type StubHandler ¶
type StubHandler struct { StubChannels map[string]*model2.StubChannel // contains filtered or unexported fields }
func NewStubHandler ¶
func NewStubHandler(cfg *config.Cfg) *StubHandler
func (*StubHandler) OnAdd ¶
func (s *StubHandler) OnAdd(conn pb.MsmControlPlane_SendServer, stream *pb.Message)
Call when receive ADD event
func (*StubHandler) OnDelete ¶
func (s *StubHandler) OnDelete(connectionKey model.ConnectionKey, conn pb.MsmControlPlane_SendServer)
Call when receive DELETE event
func (*StubHandler) OnRegistration ¶
func (s *StubHandler) OnRegistration(conn pb.MsmControlPlane_SendServer, proxyIp string)
Call when receive REGISTRATION event
Click to show internal directories.
Click to hide internal directories.