Documentation ¶
Index ¶
- func DefaultAssetHandler() http.Handler
- func WriteResponse[T dto.ApiResponseBody](resp http.ResponseWriter, req *http.Request, code int, data T, error string)
- type AssetHandler
- type AuthHandler
- type ChatRoomHandler
- type CountryHandler
- func (ch *CountryHandler) FindAllCountries(resp http.ResponseWriter, req *http.Request)
- func (ch *CountryHandler) FindOneCountry(resp http.ResponseWriter, req *http.Request)
- func (ch *CountryHandler) Participating(resp http.ResponseWriter, req *http.Request)
- func (ch *CountryHandler) UpdateCountry(resp http.ResponseWriter, req *http.Request)
- type UserHandler
- func (uh UserHandler) FindAllUsers(resp http.ResponseWriter, req *http.Request)
- func (uh UserHandler) FindOneUser(resp http.ResponseWriter, req *http.Request)
- func (uh UserHandler) FindRegisteredUsers(resp http.ResponseWriter, req *http.Request)
- func (uh UserHandler) Register(resp http.ResponseWriter, req *http.Request)
- func (uh UserHandler) RemoveUser(resp http.ResponseWriter, req *http.Request)
- func (uh UserHandler) UpdateImage(resp http.ResponseWriter, req *http.Request)
- func (uh UserHandler) UpdateUser(resp http.ResponseWriter, req *http.Request)
- type VoteHandler
- func (vh VoteHandler) GetResults(resp http.ResponseWriter, req *http.Request)
- func (vh VoteHandler) GetResultsByUser(resp http.ResponseWriter, req *http.Request)
- func (vh VoteHandler) GetVoteByUserAndCountry(resp http.ResponseWriter, req *http.Request)
- func (vh VoteHandler) UpdateVote(resp http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAssetHandler ¶
func WriteResponse ¶
func WriteResponse[T dto.ApiResponseBody](resp http.ResponseWriter, req *http.Request, code int, data T, error string)
Types ¶
type AssetHandler ¶
type AssetHandler struct {
Service service.AssetService
}
func (AssetHandler) CreateChatImage ¶
func (ah AssetHandler) CreateChatImage(w http.ResponseWriter, r *http.Request)
func (AssetHandler) GetAvatar ¶
func (ah AssetHandler) GetAvatar(w http.ResponseWriter, r *http.Request)
func (AssetHandler) GetChatImage ¶
func (ah AssetHandler) GetChatImage(w http.ResponseWriter, r *http.Request)
type AuthHandler ¶
type AuthHandler struct {
Service service.AuthService
}
func (AuthHandler) Login ¶
func (ah AuthHandler) Login(resp http.ResponseWriter, req *http.Request)
type ChatRoomHandler ¶
type ChatRoomHandler struct { RoomService *service.Room CommentService service.CommentService AuthService service.AuthService }
func (ChatRoomHandler) Connect ¶
func (crh ChatRoomHandler) Connect(resp http.ResponseWriter, req *http.Request)
type CountryHandler ¶
type CountryHandler struct {
Service service.CountryService
}
func (*CountryHandler) FindAllCountries ¶
func (ch *CountryHandler) FindAllCountries(resp http.ResponseWriter, req *http.Request)
func (*CountryHandler) FindOneCountry ¶
func (ch *CountryHandler) FindOneCountry(resp http.ResponseWriter, req *http.Request)
func (*CountryHandler) Participating ¶
func (ch *CountryHandler) Participating(resp http.ResponseWriter, req *http.Request)
func (*CountryHandler) UpdateCountry ¶
func (ch *CountryHandler) UpdateCountry(resp http.ResponseWriter, req *http.Request)
type UserHandler ¶
type UserHandler struct { Service service.UserService AssetService service.AssetService }
func (UserHandler) FindAllUsers ¶
func (uh UserHandler) FindAllUsers(resp http.ResponseWriter, req *http.Request)
func (UserHandler) FindOneUser ¶
func (uh UserHandler) FindOneUser(resp http.ResponseWriter, req *http.Request)
func (UserHandler) FindRegisteredUsers ¶
func (uh UserHandler) FindRegisteredUsers(resp http.ResponseWriter, req *http.Request)
func (UserHandler) Register ¶
func (uh UserHandler) Register(resp http.ResponseWriter, req *http.Request)
func (UserHandler) RemoveUser ¶
func (uh UserHandler) RemoveUser(resp http.ResponseWriter, req *http.Request)
func (UserHandler) UpdateImage ¶
func (uh UserHandler) UpdateImage(resp http.ResponseWriter, req *http.Request)
func (UserHandler) UpdateUser ¶
func (uh UserHandler) UpdateUser(resp http.ResponseWriter, req *http.Request)
type VoteHandler ¶
type VoteHandler struct {
Service service.VoteService
}
func (VoteHandler) GetResults ¶
func (vh VoteHandler) GetResults(resp http.ResponseWriter, req *http.Request)
func (VoteHandler) GetResultsByUser ¶
func (vh VoteHandler) GetResultsByUser(resp http.ResponseWriter, req *http.Request)
func (VoteHandler) GetVoteByUserAndCountry ¶
func (vh VoteHandler) GetVoteByUserAndCountry(resp http.ResponseWriter, req *http.Request)
func (VoteHandler) UpdateVote ¶
func (vh VoteHandler) UpdateVote(resp http.ResponseWriter, req *http.Request)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.