Documentation
¶
Index ¶
- Constants
- Variables
- func DeleteEvent(db *sql.DB, e *Event) error
- func DeleteFile(db *sql.DB, f *File) error
- func DeleteJournal(db *sql.DB, j *Journal) error
- func DeleteSlot(db *sql.DB, s *Slot) error
- func DeleteTodo(db *sql.DB, t *Todo) error
- func ImportEvents(db *sql.DB, s string, es []*Event) error
- func ListSources(db *sql.DB) ([]string, error)
- func NewCategory(db *sql.DB, c *Category) error
- func NewEvent(db *sql.DB, e *Event) error
- func NewFile(db *sql.DB, f *File) error
- func NewJournal(db *sql.DB, j *Journal) error
- func NewSlot(db *sql.DB, s *Slot) error
- func NewTodo(db *sql.DB, t *Todo) error
- func RegisterUser(db *sql.DB, u *User, passwd string) error
- func UpdateCategory(db *sql.DB, c *Category) error
- func UpdateEvent(db *sql.DB, e *Event) error
- func UpdateFile(db *sql.DB, f *File) error
- func UpdateJournal(db *sql.DB, j *Journal) error
- func UpdatePasswd(db *sql.DB, u *User, old, passwd string) error
- func UpdateTodo(db *sql.DB, t *Todo) error
- type Category
- type Error
- type Event
- type Exporter
- type File
- type Journal
- type Scanner
- type Slot
- type Todo
- type Transfer
- type Uplink
- func ListDownlinks(db *sql.DB, fd, td time.Time, cs, ts []string) ([]*Uplink, error)
- func ListUplinks(db *sql.DB, fd, td time.Time, cs, ts []string) ([]*Uplink, error)
- func NewDownlink(db *sql.DB, e, s, f int, u string) (*Uplink, error)
- func NewUplink(db *sql.DB, s, e, f int, u string) (*Uplink, error)
- func UpdateDownlink(db *sql.DB, id int, s, u string) (*Uplink, error)
- func UpdateUplink(db *sql.DB, id int, s, u string) (*Uplink, error)
- func ViewDownlink(db *sql.DB, id int) (*Uplink, error)
- func ViewUplink(db *sql.DB, id int) (*Uplink, error)
- type User
Constants ¶
View Source
const CITT = 0xFFFF
Variables ¶
Functions ¶
Types ¶
type Category ¶
type Error ¶
type Event ¶
type Event struct {
Id int `json:"uid"`
Summary string `json:"summary"`
Description string `json:"description"`
Source string `json:"source"`
State string `json:"status"`
Meta map[string]interface{} `json:"metadata"`
Starts time.Time `json:"dtstart"`
Ends time.Time `json:"dtend"`
ExStarts time.Time `json:"rtstart"`
ExEnds time.Time `json:"rtend"`
User string `json:"user"`
Attendees []string `json:"attendees"`
Categories []string `json:"categories"`
Version int `json:"version"`
Lastmod time.Time `json:"lastmod"`
Attachment *File `json:"attachment"`
Events []*Event `json:"events,omitempty"`
Versions []*Event `json:"history,omitempty"`
}
type File ¶
type File struct {
Id int `json:"uid"`
Name string `json:"name"`
Summary string `json:"summary"`
Content []byte `json:"raw,omitempty"`
Categories []string `json:"categories"`
Meta map[string]interface{} `json:"metadata"`
Version int `json:"version"`
Length int `json:"length"`
Sum string `json:"sum"`
Cyclic uint16 `json:"crc"`
Dummy bool `json:"dummy"`
Superseeded bool `json:"superseeded"`
Original bool `json:"original"`
User string `json:"user"`
Lastmod time.Time `json:"lastmod"`
Slot string `json:"slot"`
Location string `json:"location"`
Versions []*File `json:"history,omitempty"`
Parents []*File `json:"parents,omitempty"`
}
type Journal ¶
type Journal struct {
Id int `json:"uid"`
Day time.Time `json:"dtstamp"`
Summary string `json:"summary"`
User string `json:"user"`
State string `json:"status"`
Lastmod time.Time `json:"lastmod"`
Meta map[string]interface{} `json:"metadata"`
Categories []string `json:"categories"`
Versions []*Journal `json:"history,omitempty"`
}
type Slot ¶
type Todo ¶
type Todo struct {
Id int `json:"uid"`
Summary string `json:"summary"`
Description string `json:"description"`
State string `json:"status"`
Priority string `json:"priority"`
Meta map[string]interface{} `json:"metadata"`
Version int `json:"version"`
Due time.Time `json:"due"`
Starts time.Time `json:"dtstart"`
Ends time.Time `json:"dtend"`
Lastmod time.Time `json:"lastmod"`
User string `json:"user"`
Categories []string `json:"categories"`
Assignees []string `json:"assignees"`
Todos []*Todo `json:"todos,omitempty"`
Versions []*Todo `json:"history,omitempty"`
}
type Transfer ¶
type Transfer struct {
Id int `json:"uid"`
Status string `json:"status"`
User string `json:"user"`
Location string `json:"location"`
Lastmod time.Time `json:"lastmod"`
*Event `json:"event"`
*File `json:"file"`
*Slot `json:"slot"`
}
func ListTransfers ¶
type Uplink ¶
type Uplink struct {
Id int `json:"uid"`
Name string `json:"dropbox"`
Status string `json:"status"`
User string `json:"user"`
Lastmod time.Time `json:"lastmod"`
*Slot `json:"slot"`
*Event `json:"event"`
*File `json:"file"`
}
func ListDownlinks ¶
func ListUplinks ¶
type User ¶
type User struct {
Id int `json:"id"`
First string `json:"firstname"`
Last string `json:"lastname"`
Initial string `json:"initial"`
Email string `json:"email"`
Internal bool `json:"internal"`
Positions []string `json:"positions"`
Settings map[string]interface{} `json:"settings"`
Events []*Event `json:"events"`
Todos []*Todo `json:"todos"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.