webquery

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebQuery

type WebQuery struct {
	Host       string
	Port       int
	Key        string
	TLS        bool
	HTTPClient *http.Client
}

WebQuery stores info for webquery connections

func (WebQuery) Connected

func (wq WebQuery) Connected() (bool, error)

Connected sends the version command and returns the recieved error, if any

func (WebQuery) Do

func (wq WebQuery) Do(request libts.Request, response interface{}) error

Do executes the given command against TeamSpeak

func (WebQuery) DoRaw

func (wq WebQuery) DoRaw(request libts.Request) ([]byte, error)

DoRaw executes the given command against TeamSpeak and returns the unformated output

func (WebQuery) Notification

func (wq WebQuery) Notification() <-chan []byte

Notification is not yet implementable using webquery! This func will panic if used

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL