Documentation ¶
Index ¶
- Constants
- func Dial(url string) (core.Producer, error)
- func SofiaHash(password string) string
- type Client
- func (c *Client) Close() error
- func (c *Client) Dial(rawURL string) (err error)
- func (c *Client) Login(user, pass string) (err error)
- func (c *Client) Play() error
- func (c *Client) ReadChunk() (b []byte, err error)
- func (c *Client) ReadJSON() (res Response, err error)
- func (c *Client) ReadPacket() (pType byte, payload []byte, err error)
- func (c *Client) Talk() error
- func (c *Client) WriteCmd(cmd uint16, payload []byte) (n int, err error)
- type Consumer
- type Producer
- type Response
Constants ¶
View Source
const ( Login = 1000 OPMonitorClaim = 1413 OPMonitorStart = 1410 OPTalkClaim = 1434 OPTalkStart = 1430 OPTalkData = 1432 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ReadPacket ¶ added in v1.8.0
type Consumer ¶ added in v1.8.0
type Consumer struct { core.SuperConsumer // contains filtered or unexported fields }
type Producer ¶ added in v1.8.0
type Producer struct { core.SuperProducer // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.