schedule

package
v0.0.0-...-c756ae2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Schedule

type Schedule struct {
	ID      int    `pg:"id,pk"`
	Name    string `pg:"name,notnull"`
	Message string `pg:"message"`
	State   string `pg:"state"`
	Script  string `pg:"script"`
	// contains filtered or unexported fields
}

type Svc

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

func NewSvc

func NewSvc(db *pg.DB) *Svc

func (*Svc) GetByID

func (s *Svc) GetByID(id int) (*Schedule, error)

func (*Svc) Persist

func (s *Svc) Persist(schedule *Schedule) error

Jump to

Keyboard shortcuts

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