Documentation ¶
Index ¶
- func NextKey(shared int, seq int) [keys.KeySize]byte
- type AckMessage
- type Client
- func (c *Client) Ack() error
- func (c *Client) GetSeq() int
- func (c *Client) IncrementSeq()
- func (c *Client) Recv() (Message, error)
- func (c *Client) RecvAck() (bool, error)
- func (c *Client) RecvBack(back int) (Message, error)
- func (c *Client) Send(text string) error
- func (c *Client) SendAndFinish(text string) error
- func (c *Client) WaitAck() error
- type Message
- type TextMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AckMessage ¶
func (AckMessage) GetSender ¶
func (m AckMessage) GetSender() *[]byte
func (AckMessage) GetSeq ¶
func (m AckMessage) GetSeq() int
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func InitClient ¶
func (*Client) IncrementSeq ¶
func (c *Client) IncrementSeq()
func (*Client) SendAndFinish ¶
type TextMessage ¶
func (TextMessage) GetSender ¶
func (m TextMessage) GetSender() *[]byte
func (TextMessage) GetSeq ¶
func (m TextMessage) GetSeq() int
func (TextMessage) GetText ¶
func (m TextMessage) GetText() string
Click to show internal directories.
Click to hide internal directories.