Documentation
¶
Overview ¶
Package http provides HTTP handler to give other services access to to permission service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Health ¶
Health registers a handler, that tells, if the service is running.
It also returns all known collections and actions.
func IsAllowed ¶
func IsAllowed(mux *http.ServeMux, provider IsAlloweder)
IsAllowed registers a handler, to connect to the IsAllowed method.
It returns the string `true` or `false` that can be encoded as json.
If an error happens, a json-error-string is returned with status code 500.
Types ¶
Click to show internal directories.
Click to hide internal directories.