calendar

package
v0.0.0-...-520a03a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JobTypeFestival
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock struct {
	Hour   int
	Minute int
	Second int
}

type Date

type Date struct {
	Year  int
	Month time.Month
	Day   int
}

func (Date) String

func (d Date) String() string

type Job

type Job struct {
	gorm.Model

	Type        int    // 类型
	Title       string // 标题
	Description string // 描述
	TitlePinyin string // 拼音

	AllDay bool // 全天

	Start time.Time // 开始
	End   time.Time // 结束

	RRule  string // 重复规则
	Remind string // 提醒

	RecurID int    `gorm:"-"`
	Ignore  string // 忽略,JSON
	// contains filtered or unexported fields
}

func (*Job) String

func (j *Job) String() string

type JobJSON

type JobJSON struct {
	ID          uint
	Type        int
	Title       string
	Description string
	AllDay      bool
	Start, End  time.Time
	RRule       string
	Remind      string
	RecurID     int
	Ignore      []time.Time
	// contains filtered or unexported fields
}

type JobType

type JobType struct {
	gorm.Model

	Name  string
	Color string
}

type JobTypeJSON

type JobTypeJSON struct {
	ID    uint
	Name  string
	Color string
}

type Module

type Module struct {
	*loader.ModuleBase
	// contains filtered or unexported fields
}

func (*Module) GetDependencies

func (m *Module) GetDependencies() []string

func (*Module) Start

func (m *Module) Start() error

func (*Module) Stop

func (m *Module) Stop() error

func (*Module) WaitEnable

func (m *Module) WaitEnable()

type Scheduler

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

func (*Scheduler) CreateJob

func (s *Scheduler) CreateJob(jobJSON string) (id int64, busErr *dbus.Error)

func (*Scheduler) CreateType

func (s *Scheduler) CreateType(typeJSON string) (id int64, busErr *dbus.Error)

func (*Scheduler) DebugRemindJob

func (s *Scheduler) DebugRemindJob(id int64) *dbus.Error

func (*Scheduler) DeleteJob

func (s *Scheduler) DeleteJob(id int64) *dbus.Error

func (*Scheduler) DeleteType

func (s *Scheduler) DeleteType(id int64) *dbus.Error

func (*Scheduler) GetExportedMethods

func (v *Scheduler) GetExportedMethods() dbusutil.ExportedMethods

func (*Scheduler) GetInterfaceName

func (s *Scheduler) GetInterfaceName() string

func (*Scheduler) GetJob

func (s *Scheduler) GetJob(id int64) (jobJSON string, busErr *dbus.Error)

func (*Scheduler) GetJobs

func (s *Scheduler) GetJobs(startYear, startMonth, startDay, endYear, endMonth, endDay int32) (jobsJSON string, busErr *dbus.Error)

func (*Scheduler) GetJobsWithLimit

func (s *Scheduler) GetJobsWithLimit(startYear, startMonth, startDay, endYear,
	endMonth, endDay int32, maxNum int32) (jobsJSON string, busErr *dbus.Error)

func (*Scheduler) GetJobsWithRule

func (s *Scheduler) GetJobsWithRule(startYear, startMonth, startDay,
	endYear, endMonth, endDay int32, rule string) (jobsJSON string, busErr *dbus.Error)

func (*Scheduler) GetType

func (s *Scheduler) GetType(id int64) (typeJSON string, busErr *dbus.Error)

func (*Scheduler) GetTypes

func (s *Scheduler) GetTypes() (typesJSON string, busErr *dbus.Error)

func (*Scheduler) QueryJobs

func (s *Scheduler) QueryJobs(params string) (jobsJSON string, busErr *dbus.Error)

func (*Scheduler) QueryJobsWithLimit

func (s *Scheduler) QueryJobsWithLimit(params string, maxNum int32) (jobsJSON string, busErr *dbus.Error)

func (*Scheduler) QueryJobsWithRule

func (s *Scheduler) QueryJobsWithRule(params string, rule string) (jobsJSON string, busErr *dbus.Error)

func (*Scheduler) UpdateJob

func (s *Scheduler) UpdateJob(jobJSON string) *dbus.Error

func (*Scheduler) UpdateType

func (s *Scheduler) UpdateType(typeJSON string) *dbus.Error

type TimeRange

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

Jump to

Keyboard shortcuts

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