datastore

package
v0.0.0-...-6584b5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDBPool

func NewDBPool(config *config.Config) (*pgxpool.Pool, error)

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(pool *pgxpool.Pool) *Cache

func (*Cache) Employees

func (c *Cache) Employees() []*models.Employee

func (*Cache) LoadEmployees

func (c *Cache) LoadEmployees() error

func (*Cache) LoadSchedule

func (c *Cache) LoadSchedule() (*models.WorkSchedule, error)

func (*Cache) Schedule

func (c *Cache) Schedule() *models.WorkSchedule

func (*Cache) SetEmployee

func (c *Cache) SetEmployee(employees []*models.Employee)

func (*Cache) SetSchedule

func (c *Cache) SetSchedule(schedule *models.WorkSchedule)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL