api

package
v0.0.0-...-37d7d24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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 GetState

func GetState(w http.ResponseWriter, req *http.Request)

func UpdateBlockOccupied

func UpdateBlockOccupied(w http.ResponseWriter, req *http.Request)

Types

type OpenInterlockingError

type OpenInterlockingError struct {
	Name       string
	Http_error int
}

func (*OpenInterlockingError) Error

func (e *OpenInterlockingError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL