Documentation ¶
Index ¶
- Constants
- type Service
- func (service *Service) CreateSchedule(schedule *baasapi.Schedule) error
- func (service *Service) DeleteSchedule(ID baasapi.ScheduleID) error
- func (service *Service) GetNextIdentifier() int
- func (service *Service) Schedule(ID baasapi.ScheduleID) (*baasapi.Schedule, error)
- func (service *Service) Schedules() ([]baasapi.Schedule, error)
- func (service *Service) SchedulesByJobType(jobType baasapi.JobType) ([]baasapi.Schedule, error)
- func (service *Service) UpdateSchedule(ID baasapi.ScheduleID, schedule *baasapi.Schedule) error
Constants ¶
View Source
const (
// BucketName represents the name of the bucket where this service stores data.
BucketName = "schedules"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents a service for managing schedule data.
func NewService ¶
NewService creates a new instance of a service.
func (*Service) CreateSchedule ¶
CreateSchedule assign an ID to a new schedule and saves it.
func (*Service) DeleteSchedule ¶
DeleteSchedule deletes a schedule.
func (*Service) GetNextIdentifier ¶
GetNextIdentifier returns the next identifier for a schedule.
func (*Service) SchedulesByJobType ¶
SchedulesByJobType return a array containing all the schedules with the specified JobType.
func (*Service) UpdateSchedule ¶
UpdateSchedule updates a schedule.
Click to show internal directories.
Click to hide internal directories.