package
0.0.0-20181016143655-c683906c508e
Repository: https://github.com/kentonh/gpanel.git
Documentation: pkg.go.dev

# README

User API Documentation

/*
Relative API Path:
  api/user/auth
Request:
  {
    "user": string,
    "pass": string,
  }
Response(204, 400, 401, 405, 500):
  N/A
*/
func Auth(res http.ResponseWriter, req *http.Request) bool {}

/*
Relative API Path:
  api/user/register
Request:
  {
    "user": string,
    "pass": string,
  }
Response (204, 400, 405, 500):
  N/A
*/
func Register(res http.ResponseWriter, req *http.Request) bool {}

/*
Relative API Path:
  api/user/logout
Request:
  N/A
Response (204, 405, 500):
  N/A
*/
func Logout(res http.ResponseWriter, req *http.Request) bool {}

# Functions

Auth function is accessed by an API call from the webhost root by accessing /user_auth and sending it a post request with userRequestData struct in JSON format.
No description provided by the author
GetSecret is not accessible from the any client side request.
No description provided by the author
Logout function is accessed by an API call from the webhost root by accessing /user_logout and sending it an empty POST request.
Register function is accessed by an API call from the webhost root by accessing /user_register and sending it a post request with userRequestData struct in JSON format.
No description provided by the author