Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CharacterController ¶
type CharacterController struct {
// contains filtered or unexported fields
}
CharacterController represents the character controller
func NewCharacterController ¶
func NewCharacterController( characterService character.ServiceInterface, dataManager *data.Manager, ) *CharacterController
NewCharacterController creates a new character controller
func (*CharacterController) GetListCharacter ¶
func (a *CharacterController) GetListCharacter(w http.ResponseWriter, r *http.Request)
GetListCharacter function for get list data characters
func (*CharacterController) PostCreateCharacter ¶
func (a *CharacterController) PostCreateCharacter(w http.ResponseWriter, r *http.Request)
PostCreateCharacter for creating data character
func (*CharacterController) PutUpdateCharacter ¶
func (a *CharacterController) PutUpdateCharacter(w http.ResponseWriter, r *http.Request)
PutUpdateCharacter for update data character
type CharacterList ¶
type CharacterList struct { Data []*character.Characters `json:"data"` Total int `json:"total"` }
CharacterList character list and count
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
UserController represents the user controller
func NewUserController ¶
func NewUserController( userService user.ServiceInterface, dataManager *data.Manager, utility *u.Utility, ) *UserController
NewUserController creates a new user controller
func (*UserController) GetListUser ¶
func (a *UserController) GetListUser(w http.ResponseWriter, r *http.Request)
GetListUser function for get list data users
func (*UserController) PostCreateUser ¶
func (a *UserController) PostCreateUser(w http.ResponseWriter, r *http.Request)
PostCreateUser for creating data user
func (*UserController) PostLogin ¶
func (a *UserController) PostLogin(w http.ResponseWriter, r *http.Request)
PostLogin for getting authorization ..
Click to show internal directories.
Click to hide internal directories.