Documentation ¶
Overview ¶
cache/cache.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheService ¶
type CacheService interface { StoreStatus(status domain.Status) GetStatus(name string) (domain.Status, bool) StorePriority(priority domain.Priority) GetPriority(name string) (domain.Priority, bool) StoreAllPriorities(priorities []domain.Priority) StoreAllStatuses(statuses []domain.Status) InitializeCache() GetAllPriorities() ([]domain.Priority, error) GetAllStatuses() ([]domain.Status, error) }
CacheService define a interface para o serviço de cache.
func NewCacheService ¶
func NewCacheService(db *mongo.Database) CacheService
Click to show internal directories.
Click to hide internal directories.