Documentation
¶
Index ¶
- type Client
- type Display
- type Request
- func (r *Request) Auth(user, token string) *Request
- func (r *Request) Meta(key interface{}, value interface{}) *Request
- func (r *Request) Path(path ...string) *Request
- func (r *Request) Payl(payl interface{}) *Request
- func (r *Request) Reid(reid interface{}) *Request
- func (r *Request) Verb(verb string) *Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the API wrapper for communicating with the lighthouse server
func NewClient ¶
NewClient creates a new client and connects it to the lighthouse server at the given url
type Display ¶
Display is a simple API wrapper for easy animation or game development Note that the methods are not thread-safe!
func NewDisplay ¶
Create a new display
func (*Display) Close ¶
func (d *Display) Close()
Closes the display and the underlying client You cannot open the display again but instead create a new one
func (*Display) StartStream ¶
Starts the stream and returns a read-only channel containing the images from the stream
Click to show internal directories.
Click to hide internal directories.