Documentation
¶
Index ¶
- type Controller
- func (c *Controller) GetPasselState(w http.ResponseWriter, r *http.Request)
- func (c *Controller) GetPasselStateConsistency(w http.ResponseWriter, r *http.Request)
- func (c *Controller) GetState(w http.ResponseWriter, r *http.Request)
- func (c *Controller) SetPasselState(w http.ResponseWriter, r *http.Request)
- func (c *Controller) SetState(w http.ResponseWriter, r *http.Request)
- type ControllerCreator
- type DBConn
- type PossumStates
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller struct
func CreateController ¶
func CreateController(db *sql.DB) *Controller
CreateController - returns a populated controller object
func (*Controller) GetPasselState ¶
func (c *Controller) GetPasselState(w http.ResponseWriter, r *http.Request)
GetPasselState - Get state of the entire passel
func (*Controller) GetPasselStateConsistency ¶
func (c *Controller) GetPasselStateConsistency(w http.ResponseWriter, r *http.Request)
GetPasselStateConsistency - Get the state conistency of the passel
func (*Controller) GetState ¶
func (c *Controller) GetState(w http.ResponseWriter, r *http.Request)
GetState - Get state of a single possum
func (*Controller) SetPasselState ¶
func (c *Controller) SetPasselState(w http.ResponseWriter, r *http.Request)
SetPasselState - Set the state of the entire passel
func (*Controller) SetState ¶
func (c *Controller) SetState(w http.ResponseWriter, r *http.Request)
SetState - set the possum state
type ControllerCreator ¶
type ControllerCreator func(db *sql.DB) *Controller
ControllerCreator - controller creation function
type PossumStates ¶
type PossumStates struct { PossumStates map[string]string `json:"possum_states"` Error string `json:"error"` Force bool `json:"force"` }
PossumStates struct
type Server ¶
type Server struct {
Controller *Controller
}
Server struct
func CreateServer ¶
func CreateServer(dbConnFunc DBConn, controllerCreator ControllerCreator) (*Server, error)
CreateServer - creates a server
Click to show internal directories.
Click to hide internal directories.