Documentation ¶
Index ¶
- func DeleteAccountHandler(c *gin.Context)
- func FindAccounts() *[]FindAccountResponse
- func FindMatchAccountByID(c *gin.Context, id string) *match.GetMatchAccountByIDResponse
- func GetAccountByIDHandler(c *gin.Context)
- func GetAccountsHandler(c *gin.Context)
- func LogInHandler(c *gin.Context)
- func PostAccountHandler(c *gin.Context)
- type CreateAccountDTO
- type FindAccountResponse
- type LogInDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAccountHandler ¶
DeleteAccountHandler removes one account.
func FindAccounts ¶
func FindAccounts() *[]FindAccountResponse
FindAccounts finds all accounts in the database.
func FindMatchAccountByID ¶
func FindMatchAccountByID(c *gin.Context, id string) *match.GetMatchAccountByIDResponse
FindMatchAccountByID takes another service's account.
func GetAccountByIDHandler ¶
GetAccountByIDHandler finds one account.
func GetAccountsHandler ¶
GetAccountsHandler finds all accounts.
func LogInHandler ¶
LogInHandler verifies the account and returns token.
func PostAccountHandler ¶
PostAccountHandler creates one account.
Types ¶
type CreateAccountDTO ¶
type CreateAccountDTO struct { Email string `json:"email" binding:"required"` Name string `json:"name" binding:"required"` Password string `json:"password" binding:"required"` MatchID *uuid.UUID `json:"matchId"` }
CreateAccountDTO is a data transfer object.
type FindAccountResponse ¶
type FindAccountResponse struct { ID uuid.UUID `json:"id"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` DeletedAt *time.Time `json:"deletedAt"` Email string `json:"email"` Name string `json:"name"` MatchID *uuid.UUID `json:"matchId"` }
FindAccountResponse is a response object.
func FindAccountByID ¶
func FindAccountByID(id string) *FindAccountResponse
FindAccountByID finds one account by id in the database.
Click to show internal directories.
Click to hide internal directories.