Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Get(key string) (models.ShutdownsTable, bool, error) Put(models.ShutdownsTable) (models.ShutdownsTable, error) }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewShutdownsService ¶
func NewShutdownsService(repo Repository, loader TableLoader) *Service
func (*Service) GetShutdownsTable ¶
func (s *Service) GetShutdownsTable() (models.ShutdownsTable, bool, error)
func (*Service) RefreshShutdownsTable ¶
func (s *Service) RefreshShutdownsTable()
type TableLoader ¶
type TableLoader func() (models.ShutdownsTable, error)
Click to show internal directories.
Click to hide internal directories.