Documentation ¶
Index ¶
- func AuthenticationMiddleware(h http.HandlerFunc) http.HandlerFunc
- func Create(root string) http.Handler
- func CreateDoorman(w http.ResponseWriter, request *http.Request)
- func CreateDoormanInDatabase(wab *doormen.DoormanDefinition) error
- func GetAllDoormen(w http.ResponseWriter, request *http.Request)
- func GetDoorman(w http.ResponseWriter, r *http.Request)
- func GetDoormanStatus(w http.ResponseWriter, r *http.Request)
- func GetDormanState(w http.ResponseWriter, request *http.Request)
- func GetServerSpecification(w http.ResponseWriter, request *http.Request)
- func GetUser(req *http.Request) string
- func SetUser(req *http.Request, user string)
- func UpdateDoorman(w http.ResponseWriter, request *http.Request)
- func UpdateDoormanInDatabase(wab *doormen.DoormanDefinition) error
- func Write400Error(w http.ResponseWriter, err error)
- func Write404Error(w http.ResponseWriter)
- func Write500Error(w http.ResponseWriter, err error)
- type DBConnector
- type Publisher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticationMiddleware ¶
func AuthenticationMiddleware(h http.HandlerFunc) http.HandlerFunc
func CreateDoorman ¶
func CreateDoorman(w http.ResponseWriter, request *http.Request)
func CreateDoormanInDatabase ¶
func CreateDoormanInDatabase(wab *doormen.DoormanDefinition) error
func GetAllDoormen ¶
func GetAllDoormen(w http.ResponseWriter, request *http.Request)
func GetDoorman ¶
func GetDoorman(w http.ResponseWriter, r *http.Request)
func GetDoormanStatus ¶
func GetDoormanStatus(w http.ResponseWriter, r *http.Request)
func GetDormanState ¶
func GetDormanState(w http.ResponseWriter, request *http.Request)
func GetServerSpecification ¶
func GetServerSpecification(w http.ResponseWriter, request *http.Request)
func UpdateDoorman ¶
func UpdateDoorman(w http.ResponseWriter, request *http.Request)
func UpdateDoormanInDatabase ¶
func UpdateDoormanInDatabase(wab *doormen.DoormanDefinition) error
func Write400Error ¶
func Write400Error(w http.ResponseWriter, err error)
func Write404Error ¶
func Write404Error(w http.ResponseWriter)
func Write500Error ¶
func Write500Error(w http.ResponseWriter, err error)
Types ¶
type DBConnector ¶
type DBConnector interface { Save(wab *doormen.DoormanDefinition) error Update(wab *doormen.DoormanDefinition) error Exists(wab *doormen.DoormanDefinition) bool ExistsId(id bson.ObjectId) bool GetAllDoormen() <-chan *doormen.DoormanId GetDoorman(id bson.ObjectId) (*doormen.DoormanDefinition, error) DeleteDoorman(id bson.ObjectId) error }
Click to show internal directories.
Click to hide internal directories.