Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEMO1 = "agentlink.demo1" DEMO2 = "agentlink.demo2" DEMO3 = "agentlink.demo3" TestPing = "agentlink.test.ping" TestPong = "agentlink.test.pong" TestDone = "agentlink.test.done" )
这些是在 AgentLink 上传输的属性
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentLinkConn ¶
type AgentLinkConn struct {
// contains filtered or unexported fields
}
func (*AgentLinkConn) Close ¶
func (inst *AgentLinkConn) Close() error
func (*AgentLinkConn) GetReader ¶
func (inst *AgentLinkConn) GetReader() Reader
func (*AgentLinkConn) GetWriter ¶
func (inst *AgentLinkConn) GetWriter() Writer
func (*AgentLinkConn) RunLoop ¶
func (inst *AgentLinkConn) RunLoop() error
type AgentLinkConnRW ¶
type AgentLinkConnRW struct {
// contains filtered or unexported fields
}
func (*AgentLinkConnRW) ReadOptional ¶
func (inst *AgentLinkConnRW) ReadOptional(name, def string) string
func (*AgentLinkConnRW) Write ¶
func (inst *AgentLinkConnRW) Write(name, value string)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Disconnect ¶
type Config ¶
type Config struct { Host string Port int HandlerFactory HandlerFactory }
type Handler ¶
type Handler interface { Init(conn Connection) error Handle(name, value string, conn Connection) error }
type HandlerFactory ¶
type HandlerFactory interface {
NewHandler() Handler
}
Click to show internal directories.
Click to hide internal directories.