calendar

package
v0.0.0-...-e81e7cf Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 // 描述

	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

type Scheduler

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

func (*Scheduler) CreateJob

func (s *Scheduler) CreateJob(jobStr string) (int64, *dbus.Error)

func (*Scheduler) CreateType

func (s *Scheduler) CreateType(typeStr string) (int64, *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) GetInterfaceName

func (s *Scheduler) GetInterfaceName() string

func (*Scheduler) GetJob

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

func (*Scheduler) GetJobs

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

func (*Scheduler) GetType

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

func (*Scheduler) GetTypes

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

func (*Scheduler) QueryJobs

func (s *Scheduler) QueryJobs(paramsStr string) (string, *dbus.Error)

func (*Scheduler) UpdateJob

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

func (*Scheduler) UpdateType

func (s *Scheduler) UpdateType(typeStr 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