Documentation
¶
Index ¶
- type DBID
- type Job
- func (j *Job) Content() []byte
- func (j *Job) Delete() error
- func (j *Job) ID() model.DBID
- func (j *Job) Next() time.Time
- func (j *Job) Schedule() schedule.MultiSchedule
- func (j *Job) SetContent(cont []byte) error
- func (j *Job) SetNext(next time.Time) error
- func (j *Job) SetSchedule(sched schedule.MultiSchedule) error
- func (j *Job) SetSubject(sub string) error
- func (j *Job) Subject() string
- func (j *Job) User() model.User
- type MySQLDBCon
- func (con *MySQLDBCon) AddUser(email string, pwhash []byte, location *time.Location, active bool, ...) (model.User, error)
- func (con *MySQLDBCon) Close()
- func (con *MySQLDBCon) InactiveUsers(olderthan time.Time) []model.DBID
- func (con *MySQLDBCon) JobsBefore(t time.Time) (jobs []model.Job)
- func (con *MySQLDBCon) UserByID(_id model.DBID) (model.User, error)
- func (con *MySQLDBCon) UserByMail(email string) (model.User, error)
- type User
- func (u *User) ActivationCode() string
- func (u *User) Active() bool
- func (u *User) AddJob(subject string, content []byte, sched schedule.MultiSchedule, next time.Time) (model.Job, error)
- func (u *User) CountJobs() (c int)
- func (u *User) Delete() error
- func (u *User) Email() string
- func (u *User) ID() model.DBID
- func (u *User) JobByID(_id model.DBID) (model.Job, error)
- func (u *User) Jobs() []model.Job
- func (u *User) Location() *time.Location
- func (u *User) PWHash() []byte
- func (u *User) SetActivationCode(c string) error
- func (u *User) SetActive(b bool) error
- func (u *User) SetLocation(loc *time.Location) error
- func (u *User) SetPWHash(_pwhash []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func (*Job) Schedule ¶
func (j *Job) Schedule() schedule.MultiSchedule
func (*Job) SetContent ¶
func (*Job) SetSchedule ¶
func (j *Job) SetSchedule(sched schedule.MultiSchedule) error
func (*Job) SetSubject ¶
type MySQLDBCon ¶
type MySQLDBCon struct {
// contains filtered or unexported fields
}
func (*MySQLDBCon) Close ¶
func (con *MySQLDBCon) Close()
func (*MySQLDBCon) InactiveUsers ¶
func (con *MySQLDBCon) InactiveUsers(olderthan time.Time) []model.DBID
func (*MySQLDBCon) JobsBefore ¶
func (con *MySQLDBCon) JobsBefore(t time.Time) (jobs []model.Job)
func (*MySQLDBCon) UserByMail ¶
func (con *MySQLDBCon) UserByMail(email string) (model.User, error)
type User ¶
type User struct {
// contains filtered or unexported fields
}