Documentation ¶
Index ¶
- Variables
- func Connection(w http.ResponseWriter, req *http.Request)
- func ConnectionDelete(w http.ResponseWriter, req *http.Request)
- func FullComponents(w http.ResponseWriter, req *http.Request)
- func GetState(w http.ResponseWriter, req *http.Request)
- func UpdateBlockOccupied(w http.ResponseWriter, req *http.Request)
- type OpenInterlockingError
Constants ¶
This section is empty.
Variables ¶
View Source
var ObjectNotFoundError = OpenInterlockingError{"Object wasn't found.", http.StatusNotFound}
View Source
var RailroadBlockOccupiedError = OpenInterlockingError{"RailroadBlockOccupiedError", http.StatusConflict}
View Source
var RailroadConnectionApplyingError = OpenInterlockingError{"RailroadConnectionApplyingError", http.StatusConflict}
View Source
var RailroadConnectionWrongStateError = OpenInterlockingError{"RailroadConnectionWrongStateError", http.StatusConflict}
Functions ¶
func Connection ¶
func Connection(w http.ResponseWriter, req *http.Request)
func ConnectionDelete ¶
func ConnectionDelete(w http.ResponseWriter, req *http.Request)
func FullComponents ¶
func FullComponents(w http.ResponseWriter, req *http.Request)
func UpdateBlockOccupied ¶
func UpdateBlockOccupied(w http.ResponseWriter, req *http.Request)
Types ¶
type OpenInterlockingError ¶
func (*OpenInterlockingError) Error ¶
func (e *OpenInterlockingError) Error() string
Click to show internal directories.
Click to hide internal directories.