Documentation ¶
Index ¶
- type ClientDataResponse
- type CoreHandlers
- func (h CoreHandlers) DeleteClient(_ *http.Request, params httprouter.Params, _ *models.Session, ...) (int, interface{})
- func (h CoreHandlers) DeleteSession(_ *http.Request, _ httprouter.Params, session *models.Session, ...) (int, interface{})
- func (h CoreHandlers) DeleteUser(_ *http.Request, params httprouter.Params, session *models.Session, ...) (int, interface{})
- func (h CoreHandlers) DeleteUserRole(_ *http.Request, params httprouter.Params, session *models.Session, ...) (int, interface{})
- func (h CoreHandlers) GetClients(_ *http.Request, _ httprouter.Params, _ *models.Session, CRUD data.DataCRUD) (int, interface{})
- func (h CoreHandlers) GetToken(req *http.Request, _ httprouter.Params, _ *models.Session, _ data.DataCRUD) (int, interface{})
- func (h CoreHandlers) GetUserRoles(_ *http.Request, params httprouter.Params, session *models.Session, ...) (int, interface{})
- func (h CoreHandlers) GetUsers(_ *http.Request, _ httprouter.Params, session *models.Session, ...) (int, interface{})
- func (h CoreHandlers) PatchPassword(req *http.Request, _ httprouter.Params, session *models.Session, ...) (int, interface{})
- func (h CoreHandlers) PatchUserPassword(req *http.Request, params httprouter.Params, session *models.Session, ...) (int, interface{})
- func (h CoreHandlers) PostClient(req *http.Request, _ httprouter.Params, _ *models.Session, CRUD data.DataCRUD) (int, interface{})
- func (h CoreHandlers) PostSession(req *http.Request, _ httprouter.Params, _ *models.Session, CRUD data.DataCRUD) (int, interface{})
- func (h CoreHandlers) PostToken(req *http.Request, _ httprouter.Params, _ *models.Session, CRUD data.DataCRUD) (int, interface{})
- func (h CoreHandlers) PostUser(req *http.Request, _ httprouter.Params, session *models.Session, ...) (int, interface{})
- func (h CoreHandlers) PostUserRole(req *http.Request, params httprouter.Params, session *models.Session, ...) (int, interface{})
- func (h CoreHandlers) PutClient(req *http.Request, params httprouter.Params, _ *models.Session, ...) (int, interface{})
- func (h CoreHandlers) PutUser(req *http.Request, params httprouter.Params, session *models.Session, ...) (int, interface{})
- func (h CoreHandlers) PutUserRole(req *http.Request, params httprouter.Params, session *models.Session, ...) (int, interface{})
- type Handlers
- type PatchPasswordBody
- type PatchUserPasswordBody
- type PostClientBody
- type PostSessionBody
- type PostUserBody
- type PostUserRoleBody
- type PutUserBody
- type PutUserRoleBody
- type SessionDataResponse
- type TokenViewData
- type UserDataResponse
- type UserRoleDataResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientDataResponse ¶
type ClientDataResponse struct { ID string `json:"id"` PostClientBody }
type CoreHandlers ¶
type CoreHandlers struct { Controllers controllers.Controllers Renderer renderer.Renderer }
func (CoreHandlers) DeleteClient ¶
func (h CoreHandlers) DeleteClient(_ *http.Request, params httprouter.Params, _ *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) DeleteSession ¶
func (h CoreHandlers) DeleteSession(_ *http.Request, _ httprouter.Params, session *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) DeleteUser ¶
func (h CoreHandlers) DeleteUser(_ *http.Request, params httprouter.Params, session *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) DeleteUserRole ¶
func (h CoreHandlers) DeleteUserRole(_ *http.Request, params httprouter.Params, session *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) GetClients ¶
func (h CoreHandlers) GetClients(_ *http.Request, _ httprouter.Params, _ *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) GetToken ¶
func (h CoreHandlers) GetToken(req *http.Request, _ httprouter.Params, _ *models.Session, _ data.DataCRUD) (int, interface{})
func (CoreHandlers) GetUserRoles ¶
func (h CoreHandlers) GetUserRoles(_ *http.Request, params httprouter.Params, session *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) GetUsers ¶
func (h CoreHandlers) GetUsers(_ *http.Request, _ httprouter.Params, session *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) PatchPassword ¶
func (h CoreHandlers) PatchPassword(req *http.Request, _ httprouter.Params, session *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) PatchUserPassword ¶
func (h CoreHandlers) PatchUserPassword(req *http.Request, params httprouter.Params, session *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) PostClient ¶
func (h CoreHandlers) PostClient(req *http.Request, _ httprouter.Params, _ *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) PostSession ¶
func (h CoreHandlers) PostSession(req *http.Request, _ httprouter.Params, _ *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) PostToken ¶
func (h CoreHandlers) PostToken(req *http.Request, _ httprouter.Params, _ *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) PostUser ¶
func (h CoreHandlers) PostUser(req *http.Request, _ httprouter.Params, session *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) PostUserRole ¶
func (h CoreHandlers) PostUserRole(req *http.Request, params httprouter.Params, session *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) PutClient ¶
func (h CoreHandlers) PutClient(req *http.Request, params httprouter.Params, _ *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) PutUser ¶
func (h CoreHandlers) PutUser(req *http.Request, params httprouter.Params, session *models.Session, CRUD data.DataCRUD) (int, interface{})
func (CoreHandlers) PutUserRole ¶
func (h CoreHandlers) PutUserRole(req *http.Request, params httprouter.Params, session *models.Session, CRUD data.DataCRUD) (int, interface{})
type Handlers ¶
type Handlers interface { // GetUsers handles GET requests to /users. GetUsers(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // PostUser handles POST requests to /user. PostUser(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // PutUser handles PUT requests to /user/:username. PutUser(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // PatchPassword handles PATCH requests to /user/password. PatchPassword(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // PatchUserPassword handles PATCH requests to /user/:username/password. PatchUserPassword(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // DeleteUser handles DELETE requests to /user/:username. DeleteUser(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // GetClients handles GET requests to /clients. GetClients(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // PostClient handles POST requests to /client. PostClient(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // PutClient handles PUT requests to /client/:id. PutClient(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // DeleteClient handles DELETE requests to /client/:id. DeleteClient(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // GetUserRoles handles GET requests to /client/:id/roles. GetUserRoles(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // PostUserRole handles POST requests to /client/:id/role. PostUserRole(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // PutUserRole handles PUT requests to /client/:id/role/:username. PutUserRole(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // DeleteUserRole handles DELETE requests to /client/:id/role/:username. DeleteUserRole(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // PostSession handles POST requests to /session. PostSession(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // DeleteSession handles DELETE requests to /session. DeleteSession(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // GetToken handles GET requests to /token. GetToken(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) // PostToken handles POST requests to /token. PostToken(*http.Request, httprouter.Params, *models.Session, data.DataCRUD) (int, interface{}) }
type PatchPasswordBody ¶
type PatchUserPasswordBody ¶
type PatchUserPasswordBody struct {
Password string `json:"password"`
}
type PostClientBody ¶
type PostSessionBody ¶
type PostUserBody ¶
type PostUserRoleBody ¶
type PutUserBody ¶
type PutUserBody struct {
Rank int `json:"rank"`
}
type PutUserRoleBody ¶
type PutUserRoleBody struct {
Role string `json:"role"`
}
type SessionDataResponse ¶
type TokenViewData ¶
type UserDataResponse ¶
type UserDataResponse struct { Username string `json:"username"` PutUserBody }
type UserRoleDataResponse ¶
type UserRoleDataResponse struct {
PostUserRoleBody
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.