Documentation ¶
Index ¶
- type AuthRepository
- type AuthRepositoryDB
- type CommentRepository
- type CommentRepositoryDb
- func (db CommentRepositoryDb) CreateComment(commentDTO dto.Comment) (*dao.Comment, *errs.AppError)
- func (db CommentRepositoryDb) DeleteComment(uuid string) *errs.AppError
- func (db CommentRepositoryDb) FindAllComments() ([]dao.Comment, *errs.AppError)
- func (db CommentRepositoryDb) FindCommentsAfter(commentId string) ([]dao.Comment, *errs.AppError)
- type CountryRepository
- type CountryRepositoryDb
- func (db CountryRepositoryDb) FindAllCountries() (*[]dao.Country, *errs.AppError)
- func (db CountryRepositoryDb) FindOneCountry(slug string) (*dao.Country, *errs.AppError)
- func (db CountryRepositoryDb) FindParticipating() (*[]dao.Country, *errs.AppError)
- func (db CountryRepositoryDb) UpdateCountry(countryDTO dto.Country) (*dao.Country, *errs.AppError)
- type UserRepository
- type UserRepositoryDb
- func (db UserRepositoryDb) CreateUser(userDTO dto.NewUser) (*dao.NewUser, *errs.AppError)
- func (db UserRepositoryDb) DeleteUser(slug string) *errs.AppError
- func (db UserRepositoryDb) FindAllUsers() ([]dao.User, *errs.AppError)
- func (db UserRepositoryDb) FindOneUser(slug string) (*dao.User, *errs.AppError)
- func (db UserRepositoryDb) FindRegisteredUsers() (*[]dao.NewUser, *errs.AppError)
- func (db UserRepositoryDb) UpdateUser(userDTO dto.User) (*dao.User, *dto.Comment, *errs.AppError)
- func (db UserRepositoryDb) UpdateUserImage(id uuid.UUID) (*dao.User, *dto.Comment, *errs.AppError)
- func (db UserRepositoryDb) VerifySlug(userDTO *dto.NewUser) error
- type VoteRepository
- type VoteRepositoryDb
- func (db VoteRepositoryDb) CreateVote(voteDTO dto.Vote) (*dao.Vote, *errs.AppError)
- func (db VoteRepositoryDb) GetResults() (*[]dao.Result, *errs.AppError)
- func (db VoteRepositoryDb) GetResultsByUser(userId uuid.UUID) (*[]dao.Result, *errs.AppError)
- func (db VoteRepositoryDb) GetVoteByUserAndCountry(userId uuid.UUID, countrySlug string) (*dao.Vote, *errs.AppError)
- func (db VoteRepositoryDb) UpdateVote(voteDTO dto.VoteSingle) (*dao.Vote, *errs.AppError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRepository ¶
type AuthRepositoryDB ¶
type AuthRepositoryDB struct {
// contains filtered or unexported fields
}
func NewAuthRepositoryDB ¶
func NewAuthRepositoryDB(store *bolthold.Store) AuthRepositoryDB
func (AuthRepositoryDB) AuthorizeChat ¶
func (db AuthRepositoryDB) AuthorizeChat(token string, userId string) *errs.AppError
type CommentRepository ¶
type CommentRepositoryDb ¶
type CommentRepositoryDb struct {
// contains filtered or unexported fields
}
func NewCommentRepositoryDb ¶
func NewCommentRepositoryDb(store *bolthold.Store) CommentRepositoryDb
func (CommentRepositoryDb) CreateComment ¶
func (CommentRepositoryDb) DeleteComment ¶
func (db CommentRepositoryDb) DeleteComment(uuid string) *errs.AppError
func (CommentRepositoryDb) FindAllComments ¶
func (db CommentRepositoryDb) FindAllComments() ([]dao.Comment, *errs.AppError)
func (CommentRepositoryDb) FindCommentsAfter ¶
type CountryRepository ¶
type CountryRepositoryDb ¶
type CountryRepositoryDb struct {
// contains filtered or unexported fields
}
func NewCountryRepositoryDb ¶
func NewCountryRepositoryDb(store *bolthold.Store) CountryRepositoryDb
func (CountryRepositoryDb) FindAllCountries ¶
func (db CountryRepositoryDb) FindAllCountries() (*[]dao.Country, *errs.AppError)
func (CountryRepositoryDb) FindOneCountry ¶
func (CountryRepositoryDb) FindParticipating ¶
func (db CountryRepositoryDb) FindParticipating() (*[]dao.Country, *errs.AppError)
func (CountryRepositoryDb) UpdateCountry ¶
type UserRepository ¶
type UserRepository interface { CreateUser(dto.NewUser) (*dao.NewUser, *errs.AppError) FindAllUsers() ([]dao.User, *errs.AppError) FindOneUser(string) (*dao.User, *errs.AppError) DeleteUser(string) *errs.AppError FindRegisteredUsers() (*[]dao.NewUser, *errs.AppError) UpdateUser(dto.User) (*dao.User, *dto.Comment, *errs.AppError) UpdateUserImage(uuid.UUID) (*dao.User, *dto.Comment, *errs.AppError) VerifySlug(*dto.NewUser) error }
type UserRepositoryDb ¶
type UserRepositoryDb struct {
// contains filtered or unexported fields
}
func NewUserRepositoryDb ¶
func NewUserRepositoryDb(store *bolthold.Store) UserRepositoryDb
func (UserRepositoryDb) CreateUser ¶
func (UserRepositoryDb) DeleteUser ¶
func (db UserRepositoryDb) DeleteUser(slug string) *errs.AppError
func (UserRepositoryDb) FindAllUsers ¶
func (db UserRepositoryDb) FindAllUsers() ([]dao.User, *errs.AppError)
func (UserRepositoryDb) FindOneUser ¶
func (UserRepositoryDb) FindRegisteredUsers ¶
func (db UserRepositoryDb) FindRegisteredUsers() (*[]dao.NewUser, *errs.AppError)
func (UserRepositoryDb) UpdateUser ¶
func (UserRepositoryDb) UpdateUserImage ¶
func (UserRepositoryDb) VerifySlug ¶
func (db UserRepositoryDb) VerifySlug(userDTO *dto.NewUser) error
type VoteRepository ¶
type VoteRepository interface { CreateVote(dto.Vote) (*dao.Vote, *errs.AppError) UpdateVote(dto.VoteSingle) (*dao.Vote, *errs.AppError) GetVoteByUserAndCountry(uuid.UUID, string) (*dao.Vote, *errs.AppError) GetResults() (*[]dao.Result, *errs.AppError) GetResultsByUser(userId uuid.UUID) (*[]dao.Result, *errs.AppError) }
type VoteRepositoryDb ¶
type VoteRepositoryDb struct {
// contains filtered or unexported fields
}
func NewVoteRepositoryDb ¶
func NewVoteRepositoryDb(store *bolthold.Store) VoteRepositoryDb
func (VoteRepositoryDb) CreateVote ¶
func (VoteRepositoryDb) GetResults ¶
func (db VoteRepositoryDb) GetResults() (*[]dao.Result, *errs.AppError)
func (VoteRepositoryDb) GetResultsByUser ¶
func (VoteRepositoryDb) GetVoteByUserAndCountry ¶
func (VoteRepositoryDb) UpdateVote ¶
func (db VoteRepositoryDb) UpdateVote(voteDTO dto.VoteSingle) (*dao.Vote, *errs.AppError)
Click to show internal directories.
Click to hide internal directories.