Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTables ¶
func CreateTables() error
func DropAllTables ¶
func DropAllTables() error
DropAllTables will drop, all of the tables. Shocker.
Types ¶
type Channel ¶
type Channel struct { ID int `sql:"id"` Name string `sql:"name"` Type int `sql:"type"` Project int64 `sql:"project"` Device int64 `sql:"device"` Color string `sql:"color"` MaxLength int `sql:"max_length"` }
Channel pixelpusher object for DB
type Device ¶
type Device struct { ID int64 `sql:"id"` Name string `sql:"name"` Project int64 `sql:"project"` LongID string `sql:"longID"` Hostname string `sql:"hostname"` Port int `sql:"port"` Connector bool `sql:"connector"` Key string `sql:"key"` UseKey bool `sql:"use_key"` }
Device pixelpusher object for DB
func QueryAllDevices ¶
QueryAllDevices returns every device that is registered in the database
type Matrix ¶
type Matrix struct { ID int64 `sql:"id"` Device int64 `sql:"device"` Channel int64 `sql:"channel"` Project int64 `sql:"project"` Width int `sql:"width"` Height int `sql:"height"` Type int `sql:"type"` Coloring string `sql:"coloring"` Offset int `sql:"offset"` Brightness int `sql:"brightness"` }
Matrix pixelpusher object for DB
type Project ¶
type Project struct { ID int `sql:"id"` Name string `sql:"name"` Created time.Time `sql:"created"` LastUpdate time.Time `sql:"last_update"` Client string `sql:"client"` Active bool `sql:"active"` FrontendState string `sql:"frontend_state"` }
Project pixelpusher object for DB
Click to show internal directories.
Click to hide internal directories.