dao

package
v0.0.0-...-942df37 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScheduleDAO

type ScheduleDAO interface {
	GetByName(string) (*com.ScheduleBlueprint, error)
	Save(s *com.ScheduleBlueprint) error
	LoadScheduleBlueprints() ([]com.ScheduleBlueprint, error)
	EventsAfter(t time.Time) (chan com.Event, error)
	SaveEvent(e *com.Event) error
}

ScheduleDAO is the interface to store and retrieve schedueles from some type of storage.

func NewScheduleDAO

func NewScheduleDAO(cfg *config.Config) (ScheduleDAO, error)

NewScheduleDAO returns a new NewScheduleDAO based on the given configuration.

Jump to

Keyboard shortcuts

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