Documentation
¶
Index ¶
- type Postgres
- func (p *Postgres) GetAllLibraryItems() ([]models.LibraryItem, error)
- func (p *Postgres) GetCachedDifficulties() map[int64]string
- func (p *Postgres) GetCachedLanguages() map[int64]string
- func (p *Postgres) GetCachedTypes() map[int64]string
- func (p *Postgres) InitCache() error
- func (p *Postgres) Migrate() error
- func (p *Postgres) UpdateCachedDifficulties() error
- func (p *Postgres) UpdateCachedLanguages() error
- func (p *Postgres) UpdateCachedTypes() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct { CachedTypes map[int64]string CachedLanguages map[int64]string CachedDifficulties map[int64]string // contains filtered or unexported fields }
func NewPostgres ¶
func (*Postgres) GetAllLibraryItems ¶
func (p *Postgres) GetAllLibraryItems() ([]models.LibraryItem, error)
func (*Postgres) GetCachedDifficulties ¶
func (*Postgres) GetCachedLanguages ¶
func (*Postgres) GetCachedTypes ¶
func (*Postgres) UpdateCachedDifficulties ¶
func (*Postgres) UpdateCachedLanguages ¶
func (*Postgres) UpdateCachedTypes ¶
Click to show internal directories.
Click to hide internal directories.