Documentation ¶
Index ¶
- Constants
- func Dial(url string) (core.Producer, error)
- func SofiaHash(password string) string
- type Backchannel
- 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 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 Backchannel ¶ added in v1.9.4
type Backchannel struct { core.Connection // contains filtered or unexported fields }
func (*Backchannel) Start ¶ added in v1.9.4
func (c *Backchannel) Start() error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ReadPacket ¶ added in v1.8.0
type Producer ¶ added in v1.8.0
type Producer struct { core.Connection // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.