handle

package
v0.0.0-...-2176025 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KillSwitch = false

Functions

func AuthorizeHandle

func AuthorizeHandle(w http.ResponseWriter, r *http.Request)

AuthorizeHandle authorizes user with email and password or refresh token.

func DeleteUserHandle

func DeleteUserHandle(w http.ResponseWriter, r *http.Request)

DeleteUserHandle deletes specified user.

func EditUserHandle

func EditUserHandle(w http.ResponseWriter, r *http.Request)

EditUserHandle edits specified user.

func KillSwitchHandle

func KillSwitchHandle(w http.ResponseWriter, _ *http.Request)

Handles changing of kill switch

func ListUsersHandle

func ListUsersHandle(w http.ResponseWriter, r *http.Request)

ListUsersHandle lists all users in database. Only users with user:read permission can view this page.

func LivenessHandle

func LivenessHandle(w http.ResponseWriter, _ *http.Request)

Returns weather microservice is alive.

func MetricsHandle

func MetricsHandle(w http.ResponseWriter, _ *http.Request)

MetricsHandle writes metrics to JSON.

func NewUserHandle

func NewUserHandle(w http.ResponseWriter, r *http.Request)

NewUserHandle creates new user.

func PasswordChangeHandle

func PasswordChangeHandle(w http.ResponseWriter, r *http.Request)

PasswordChangeHandle handles changing user password. If user has user:write permission they can change password for any user, otherwise they can only change their password.

func ReadinessHandle

func ReadinessHandle(w http.ResponseWriter, _ *http.Request)

Returns weather microservice is ready to accept connections.

func SigningKeyHandle

func SigningKeyHandle(w http.ResponseWriter, _ *http.Request)

SigningKeyHandle serves key that is used to check the signature of access token.

func UserHandle

func UserHandle(w http.ResponseWriter, r *http.Request)

UserHandle handles getting a single user.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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