Documentation ¶
Index ¶
- func NewDBPool(config *config.Config) (*pgxpool.Pool, error)
- type Cache
- func (c *Cache) Employees() []*models.Employee
- func (c *Cache) LoadEmployees() error
- func (c *Cache) LoadSchedule() (*models.WorkSchedule, error)
- func (c *Cache) Schedule() *models.WorkSchedule
- func (c *Cache) SetEmployee(employees []*models.Employee)
- func (c *Cache) SetSchedule(schedule *models.WorkSchedule)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) LoadEmployees ¶
func (*Cache) LoadSchedule ¶
func (c *Cache) LoadSchedule() (*models.WorkSchedule, error)
func (*Cache) Schedule ¶
func (c *Cache) Schedule() *models.WorkSchedule
func (*Cache) SetEmployee ¶
func (*Cache) SetSchedule ¶
func (c *Cache) SetSchedule(schedule *models.WorkSchedule)
Click to show internal directories.
Click to hide internal directories.