shutdowns

package
v0.0.0-...-16c37a2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 3 Imported by: 0

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)

Jump to

Keyboard shortcuts

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