Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a wrapper around an underlying LuxWS connection.
func Dial ¶
Dial connects to a LuxWS server. The address must have the format "<host>:<port>" (see net.JoinHostPort). Use the context to establish a timeout.
IDs returned by the server are unique to each connection.
type ContentItem ¶
type ContentItem struct { ID string `xml:"id,attr"` Name string `xml:"name"` Min *string `xml:"min"` Max *string `xml:"max"` Step *string `xml:"step"` Unit *string `xml:"unit"` Div *string `xml:"div"` Raw *string `xml:"raw"` Value *string `xml:"value"` Columns []string `xml:"columns"` Headers []string `xml:"headers"` Options []ContentItemOption `xml:"option"` Items []ContentItem `xml:"item"` }
ContentItem is an individual entry on a content page.
type ContentItemOption ¶
ContentItemOption represents one option among others of a content item.
type ContentRoot ¶
type ContentRoot struct { XMLName xml.Name Items []ContentItem `xml:"item"` }
ContentRoot contains all items returned by a GET request to a LuxWS server.
func (*ContentRoot) FindByName ¶
func (r *ContentRoot) FindByName(name string) *ContentItem
FindByName iterates through all items and finds the first with a given name. Returns nil if none is found.
type NavRoot ¶
type NavRoot struct {}
NavRoot represents the navigation structure of a LuxWS server.
func (*NavRoot) FindByName ¶
FindByName iterates through all items and finds the first with a given name. Returns nil if none is found.