Documentation ¶
Index ¶
- func AuthHandler(w http.ResponseWriter, r *http.Request)
- func CreateUserHandler(w http.ResponseWriter, r *http.Request)
- func DeleteUserHandler(w http.ResponseWriter, r *http.Request)
- func GetAlgorithmHandler(w http.ResponseWriter, r *http.Request)
- func GetKeyHandler(w http.ResponseWriter, r *http.Request)
- func HealthCheckHandler(w http.ResponseWriter, r *http.Request)
- func ListupUserHandler(w http.ResponseWriter, r *http.Request)
- func LookupUserHandler(w http.ResponseWriter, r *http.Request)
- func NotFoundHandler(w http.ResponseWriter, r *http.Request)
- func Run(listen string) error
- func UpdateUserHandler(w http.ResponseWriter, r *http.Request)
- func VerifyHandler(w http.ResponseWriter, r *http.Request)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthHandler ¶
func AuthHandler(w http.ResponseWriter, r *http.Request)
AuthHandler is a HTTP handler, which authes with username and password
func CreateUserHandler ¶
func CreateUserHandler(w http.ResponseWriter, r *http.Request)
CreateUserHandler is a HTTP handler, which creates an new user
func DeleteUserHandler ¶
func DeleteUserHandler(w http.ResponseWriter, r *http.Request)
DeleteUserHandler is a HTTP handler, which deletes an user
func GetAlgorithmHandler ¶
func GetAlgorithmHandler(w http.ResponseWriter, r *http.Request)
GetAlgorithmHandler is a HTTP handler, which returns system signature algorithm
func GetKeyHandler ¶
func GetKeyHandler(w http.ResponseWriter, r *http.Request)
GetKeyHandler is a HTTP handler, which returns public key verifying token
func HealthCheckHandler ¶
func HealthCheckHandler(w http.ResponseWriter, r *http.Request)
HealthCheckHandler is a HTTP handler, which path is `/`
func ListupUserHandler ¶
func ListupUserHandler(w http.ResponseWriter, r *http.Request)
ListupUserHandler is a HTTP handler, which returns all user list
func LookupUserHandler ¶
func LookupUserHandler(w http.ResponseWriter, r *http.Request)
LookupUserHandler is a HTTP handler, which search an user by ID
func NotFoundHandler ¶
func NotFoundHandler(w http.ResponseWriter, r *http.Request)
NotFoundHandler is a HTTP handler, which handles 404 Not Found
func UpdateUserHandler ¶
func UpdateUserHandler(w http.ResponseWriter, r *http.Request)
UpdateUserHandler is a HTTP handler, which updates an user
func VerifyHandler ¶
func VerifyHandler(w http.ResponseWriter, r *http.Request)
VerifyHandler is a HTTP handler, which verifies given token