Documentation ¶
Index ¶
- Constants
- func New(ctx context.Context, wg *sync.WaitGroup, config configuration.Config) (scheduler.Persistence, error)
- type Persistence
- func (this *Persistence) Disconnect()
- func (this *Persistence) Get(id string, user string) (result model.ScheduleEntry, err error)
- func (this *Persistence) GetAll() (result []model.ScheduleEntry, err error)
- func (this *Persistence) List(user string, createdBy *string) (result []model.ScheduleEntry, err error)
- func (this *Persistence) Remove(id string, user string) (err error)
- func (this *Persistence) Set(entry model.ScheduleEntry) error
Constants ¶
View Source
const TIMEOUT = 10 * time.Second
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Persistence ¶
type Persistence struct {
// contains filtered or unexported fields
}
func (*Persistence) Disconnect ¶
func (this *Persistence) Disconnect()
func (*Persistence) Get ¶
func (this *Persistence) Get(id string, user string) (result model.ScheduleEntry, err error)
func (*Persistence) GetAll ¶
func (this *Persistence) GetAll() (result []model.ScheduleEntry, err error)
func (*Persistence) List ¶
func (this *Persistence) List(user string, createdBy *string) (result []model.ScheduleEntry, err error)
func (*Persistence) Set ¶
func (this *Persistence) Set(entry model.ScheduleEntry) error
Click to show internal directories.
Click to hide internal directories.