Documentation ¶
Index ¶
- func TestDB(t *testing.T, databaseURL string) (*sql.DB, func(...string))
- type MarkerRepository
- func (r *MarkerRepository) Create(m *model.Marker) (*model.Marker, error)
- func (r *MarkerRepository) Delete(ID int) (bool, error)
- func (r *MarkerRepository) DeleteAll(UserID int) (bool, error)
- func (r *MarkerRepository) Edit(m *model.Marker) error
- func (r *MarkerRepository) Get(ID int) (*model.Marker, error)
- func (r *MarkerRepository) GetAllByUserID(id int) ([]model.Marker, error)
- type RatingRepository
- func (r *RatingRepository) Create(rating *model.Rating) error
- func (r *RatingRepository) Delete(ID int) (bool, error)
- func (r *RatingRepository) DeleteByUserID(UserID int) (bool, error)
- func (r *RatingRepository) GetAll() (interface{}, error)
- func (r *RatingRepository) GetUserRating(id int) (*model.Rating, error)
- func (r *RatingRepository) Update(rating *model.Rating) error
- type Store
- type TasksRepository
- func (r *TasksRepository) Check(t *model.Task) error
- func (r *TasksRepository) Create(t *model.Task) error
- func (r *TasksRepository) Delete(ID int) (bool, error)
- func (r *TasksRepository) DeleteAll(UserID int) (bool, error)
- func (r *TasksRepository) GetAll(id int) (interface{}, error)
- func (r *TasksRepository) GetAllByDate(id int, day time.Time) (interface{}, error)
- func (r *TasksRepository) GetAllByDateForAllUsers(day time.Time) ([]model.Task, error)
- func (r *TasksRepository) GetAllByMarker(id int, marker string) (interface{}, error)
- func (r *TasksRepository) GetAllByTimeOfDay(day time.Time) ([]model.Task, error)
- func (r *TasksRepository) GetMarkersByUserID(t *model.Task) (interface{}, error)
- func (r *TasksRepository) Update(t *model.Task) error
- type UserRepository
- func (r *UserRepository) AddTelegramChatID(email string, chatID int64) error
- func (r *UserRepository) Create(u *model.User) error
- func (r *UserRepository) DeleteUser(ID int) (bool, error)
- func (r *UserRepository) Edit(u *model.User) error
- func (r *UserRepository) Find(id int) (*model.User, error)
- func (r *UserRepository) FindByEmail(email string) (*model.User, error)
- func (r *UserRepository) GetByID(id int) (*model.User, error)
- func (r *UserRepository) IsEmailSet(email string) (*model.User, error)
- func (r *UserRepository) IsTelegramAuth(chatID int64) (bool, error)
- func (r *UserRepository) Notifier(u *model.User) error
- func (r *UserRepository) TelegramBotLogout(chatID int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MarkerRepository ¶
type MarkerRepository struct {
// contains filtered or unexported fields
}
MarkerRepository ...
func (*MarkerRepository) Delete ¶
func (r *MarkerRepository) Delete(ID int) (bool, error)
Delete ...
func (*MarkerRepository) DeleteAll ¶
func (r *MarkerRepository) DeleteAll(UserID int) (bool, error)
DeleteAll ...
func (*MarkerRepository) Get ¶
func (r *MarkerRepository) Get(ID int) (*model.Marker, error)
Get User Product by ID...
func (*MarkerRepository) GetAllByUserID ¶
func (r *MarkerRepository) GetAllByUserID(id int) ([]model.Marker, error)
GetAllByUserID ...
type RatingRepository ¶
type RatingRepository struct {
// contains filtered or unexported fields
}
RatingRepository ...
func (*RatingRepository) Create ¶
func (r *RatingRepository) Create(rating *model.Rating) error
Create ...
func (*RatingRepository) Delete ¶
func (r *RatingRepository) Delete(ID int) (bool, error)
Delete ...
func (*RatingRepository) DeleteByUserID ¶
func (r *RatingRepository) DeleteByUserID(UserID int) (bool, error)
DeleteByUserID ...
func (*RatingRepository) GetAll ¶
func (r *RatingRepository) GetAll() (interface{}, error)
GetAll ...
func (*RatingRepository) GetUserRating ¶
func (r *RatingRepository) GetUserRating(id int) (*model.Rating, error)
GetUserRating ...
type TasksRepository ¶
type TasksRepository struct {
// contains filtered or unexported fields
}
TasksRepository ...
func (*TasksRepository) DeleteAll ¶
func (r *TasksRepository) DeleteAll(UserID int) (bool, error)
DeleteAll ...
func (*TasksRepository) GetAll ¶
func (r *TasksRepository) GetAll(id int) (interface{}, error)
GetAll ...
func (*TasksRepository) GetAllByDate ¶
func (r *TasksRepository) GetAllByDate(id int, day time.Time) (interface{}, error)
GetAllByDate ...
func (*TasksRepository) GetAllByDateForAllUsers ¶
GetAllByDateForAllUsers ...
func (*TasksRepository) GetAllByMarker ¶
func (r *TasksRepository) GetAllByMarker(id int, marker string) (interface{}, error)
GetAllByMarker ...
func (*TasksRepository) GetAllByTimeOfDay ¶
GetAllByTimeOfDay ...
func (*TasksRepository) GetMarkersByUserID ¶
func (r *TasksRepository) GetMarkersByUserID(t *model.Task) (interface{}, error)
GetMarkersByUserID ...
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
UserRepository ...
func (*UserRepository) AddTelegramChatID ¶
func (r *UserRepository) AddTelegramChatID(email string, chatID int64) error
AddTelegramChatID ...
func (*UserRepository) DeleteUser ¶
func (r *UserRepository) DeleteUser(ID int) (bool, error)
DeleteUser ...
func (*UserRepository) FindByEmail ¶
func (r *UserRepository) FindByEmail(email string) (*model.User, error)
FindByEmail ...
func (*UserRepository) GetByID ¶
func (r *UserRepository) GetByID(id int) (*model.User, error)
GetByID ...
func (*UserRepository) IsEmailSet ¶
func (r *UserRepository) IsEmailSet(email string) (*model.User, error)
IsEmailSet ...
func (*UserRepository) IsTelegramAuth ¶
func (r *UserRepository) IsTelegramAuth(chatID int64) (bool, error)
IsTelegramAuth ...
func (*UserRepository) Notifier ¶
func (r *UserRepository) Notifier(u *model.User) error
Notifier ...
func (*UserRepository) TelegramBotLogout ¶
func (r *UserRepository) TelegramBotLogout(chatID int64) error
TelegramBotLogout ...
Click to show internal directories.
Click to hide internal directories.