Documentation
¶
Index ¶
- type Connection
- type DataFormat
- type ReplyChannel
- type Transport
- func (t *Transport) GetHandler(action string) transport.RequestHandler
- func (t *Transport) GetLocalAddress() string
- func (t *Transport) GetNodeId() string
- func (t *Transport) GetSeedHosts() []string
- func (t *Transport) OpenConnection(address string, callback func(conn transport.Connection))
- func (t *Transport) Register(action string, handler transport.RequestHandler)
- func (t *Transport) Start(port int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) GetDestAddress ¶
func (c *Connection) GetDestAddress() string
func (*Connection) GetMessage ¶
func (c *Connection) GetMessage() string
func (*Connection) GetSourceAddress ¶
func (c *Connection) GetSourceAddress() string
func (*Connection) SendRequest ¶
func (c *Connection) SendRequest(action string, content []byte, callback func(byte []byte))
type DataFormat ¶
Data Format
type ReplyChannel ¶
type ReplyChannel struct {
// contains filtered or unexported fields
}
func (*ReplyChannel) GetDestAddress ¶
func (c *ReplyChannel) GetDestAddress() string
func (*ReplyChannel) GetSourceAddress ¶
func (c *ReplyChannel) GetSourceAddress() string
func (*ReplyChannel) SendMessage ¶
func (c *ReplyChannel) SendMessage(action string, content []byte) (n int, err error)
type Transport ¶
type Transport struct { LocalAddress string LocalNodeId string SeedHosts []string RequestHandlers map[string]transport.RequestHandler }
func (*Transport) GetHandler ¶
func (t *Transport) GetHandler(action string) transport.RequestHandler
func (*Transport) GetLocalAddress ¶
func (*Transport) GetSeedHosts ¶
func (*Transport) OpenConnection ¶
func (t *Transport) OpenConnection(address string, callback func(conn transport.Connection))
Click to show internal directories.
Click to hide internal directories.