Documentation ¶
Index ¶
- type ActivityDB
- type Db
- func (d *Db) DeleteWorkDay(day time.Time, userID uint) error
- func (d *Db) GetActivitiesBetweenStartAndEnd(start time.Time, end time.Time, userID uint) ([]ActivityDB, error)
- func (d *Db) GetActivity(id uint, userID uint) (*ActivityDB, error)
- func (d *Db) GetHoliday(id uint) (*HolidayDB, error)
- func (d *Db) GetHolidaysBetweenStartAndEnd(start time.Time, end time.Time, userID uint) ([]HolidayDB, error)
- func (d *Db) GetHolidaysBetweenStartAndEndByType(start time.Time, end time.Time, hType pkg.HolidayType, userID uint) ([]HolidayDB, error)
- func (d *Db) GetRunningActivityByUserID(eID uint) (*ActivityDB, error)
- func (d *Db) GetTokenByToken(token string) (*TokenDB, error)
- func (d *Db) GetTokens(e UserDB) ([]TokenDB, error)
- func (d *Db) GetUser(id uint) (*UserDB, error)
- func (d *Db) GetUserByLogin(login string) (*UserDB, error)
- func (d *Db) GetUserByToken(token string) (*UserDB, error)
- func (d *Db) GetWebhooksByUserID(userID uint) ([]WebhookDB, error)
- func (d *Db) GetWorkDay(day time.Time, userID uint) (*WorkDayDB, error)
- func (d *Db) GetWorkDaysBetweenStartAndEnd(start time.Time, end time.Time, userID uint) ([]WorkDayDB, error)
- func (d *Db) MigrateActivityDuration() error
- func (d *Db) SaveActivity(a *ActivityDB) error
- func (d *Db) SaveHoliday(a *HolidayDB) error
- func (d *Db) SaveToken(token *TokenDB) error
- func (d *Db) SaveUser(user *UserDB) error
- func (d *Db) SaveWebhook(webhook WebhookDB) (*WebhookDB, error)
- func (d *Db) SaveWorkDay(w *WorkDayDB) error
- type HolidayDB
- type ModelExtensions
- type TokenDB
- type UserDB
- type WebhookDB
- type WorkDayDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityDB ¶
type ActivityDB struct { ModelExtensions `gorm:"embedded"` pkg.Activity `gorm:"embedded"` }
func (ActivityDB) TableName ¶
func (ActivityDB) TableName() string
type Db ¶
Db struct
func (*Db) GetActivitiesBetweenStartAndEnd ¶
func (*Db) GetActivity ¶
func (d *Db) GetActivity(id uint, userID uint) (*ActivityDB, error)
func (*Db) GetHolidaysBetweenStartAndEnd ¶
func (*Db) GetHolidaysBetweenStartAndEndByType ¶
func (*Db) GetRunningActivityByUserID ¶
func (d *Db) GetRunningActivityByUserID(eID uint) (*ActivityDB, error)
func (*Db) GetWorkDaysBetweenStartAndEnd ¶
func (*Db) MigrateActivityDuration ¶
func (*Db) SaveActivity ¶
func (d *Db) SaveActivity(a *ActivityDB) error
func (*Db) SaveHoliday ¶
func (*Db) SaveWorkDay ¶
type HolidayDB ¶
type HolidayDB struct { ModelExtensions `gorm:"embedded"` pkg.Holiday `gorm:"embedded"` }
type ModelExtensions ¶
type TokenDB ¶
type TokenDB struct { ModelExtensions `gorm:"embedded"` pkg.Token `gorm:"embedded"` }
type UserDB ¶
type UserDB struct { ModelExtensions `gorm:"embedded"` pkg.User `gorm:"embedded"` }
type WebhookDB ¶
type WebhookDB struct { ModelExtensions `gorm:"embedded"` pkg.Webhook `gorm:"embedded"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.