services

package
v0.0.0-...-2fb0bd6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 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 SchedulerService

type SchedulerService struct {
	// contains filtered or unexported fields
}

func NewSchedulerService

func NewSchedulerService(db *gorm.DB) SchedulerService

func (SchedulerService) GetAll

func (s SchedulerService) GetAll(limit, page int) ([]models.Schedule, error)

func (SchedulerService) Save

func (s SchedulerService) Save(status *models.Schedule) error

func (SchedulerService) Update

func (s SchedulerService) Update(id uint, status *models.Schedule) error

type SlotService

type SlotService struct {
	// contains filtered or unexported fields
}

func NewSlotService

func NewSlotService(db *gorm.DB) SlotService

func (SlotService) GetAll

func (s SlotService) GetAll(limit, page int) ([]models.Slot, error)

func (SlotService) Save

func (s SlotService) Save(scheduler *models.Slot) error

func (SlotService) Update

func (s SlotService) Update(id uint, scheduler *models.Slot) error

Jump to

Keyboard shortcuts

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