Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerQuery ¶
type ServerQuery struct {
Host string
Port int
Username string
Password string
// contains filtered or unexported fields
}
ServerQuery wraps around ts3.Client and has some additional methods
func NewServerQuery ¶
NewServerQuery establishes the tcp connection to teamspeak and logs the query in once connected
func (*ServerQuery) Connected ¶
func (sq *ServerQuery) Connected() (bool, error)
Connected sends the version command and returns the recieved error, if any
func (*ServerQuery) Do ¶
func (sq *ServerQuery) Do(request libts.Request, value interface{}) error
Do a command and attempt to parse the response in value
func (*ServerQuery) DoRaw ¶
func (sq *ServerQuery) DoRaw(request libts.Request) ([]byte, error)
DoRaw a command and return the raw response
func (*ServerQuery) Notification ¶
func (sq *ServerQuery) Notification() <-chan []byte
Notification returns an io.Reader for arriving events
Click to show internal directories.
Click to hide internal directories.