api

package
v0.0.0-...-6a26343 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAssetHandler

func DefaultAssetHandler() http.Handler

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL