Documentation ¶
Index ¶
- type TCP
- func (c *TCP) Close()
- func (c *TCP) List() error
- func (c *TCP) ListAll() error
- func (c *TCP) Messages() <-chan mist.Message
- func (c *TCP) Ping() error
- func (c *TCP) Publish(tags []string, data string) error
- func (c *TCP) PublishAfter(tags []string, data string, delay time.Duration) error
- func (c *TCP) Subscribe(tags []string) error
- func (c *TCP) Unsubscribe(tags []string) error
- func (c *TCP) Who() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCP ¶
type TCP struct {
// contains filtered or unexported fields
}
TCP represents a TCP connection to the mist server
func (*TCP) Close ¶
func (c *TCP) Close()
Close closes the client data channel and the connection to the server
func (*TCP) ListAll ¶ added in v1.1.1
listall related List requests a list from the server of the tags this client is subscribed to
func (*TCP) Publish ¶
Publish sends a message to the mist server to be published to all subscribed clients
func (*TCP) PublishAfter ¶
PublishAfter sends a message to the mist server to be published to all subscribed clients after a specified delay
func (*TCP) Subscribe ¶
Subscribe takes the specified tags and tells the server to subscribe to updates on those tags, returning the tags and an error or nil
func (*TCP) Unsubscribe ¶
Unsubscribe takes the specified tags and tells the server to unsubscribe from updates on those tags, returning an error or nil