Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ServiceLinkNum topic service link num
ServiceLinkNum = "topic_service_link_num"
)
Variables ¶
This section is empty.
Functions ¶
func EncodeDownMsg ¶
EncodeDownMsg encode down msg
Types ¶
type ILinkCache ¶
type ILinkCache interface { module.IModule // Look for existing links from the cache Target(token string, serviceName string) (targetAddr string, err error) // 将token绑定到nod Link(token string, target discover.Node) error // unlink token Unlink(token string, target string) error // clean up the service Down(target discover.Node) error }
ILinkCache The connector is a service that maintains the link relationship between multiple processes and users.
+---parent----------+ | | | +--child----+ | | | | | | | token ... | | | | | | | +-----------+ | | | +-------------------+
type LinkNumMsg ¶
LinkNumMsg msg struct
func DecodeLinkNumMsg ¶
func DecodeLinkNumMsg(msg *mailbox.Message) LinkNumMsg
DecodeLinkNumMsg decode linknum msg
Click to show internal directories.
Click to hide internal directories.