types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alarm

type Alarm struct {
	Action            string   `json:"action"`
	Trigger           string   `json:"trigger"`
	TriggerParameters []string `json:"trigger_parameters"`
}

type EMail

type EMail struct {
	Subject    string
	From       string
	To         string
	ToDispName string
	CCs        []string
	Body       string
}

type Event

type Event struct {
	Id                     string     `json:"id"`
	Uid                    string     `json:"uid"`
	RecurrenceId           string     `json:"recurrenceId"`
	Hash                   string     `json:"hash"`
	Title                  string     `json:"title"`
	Description            string     `json:"description"`
	DescriptionHtml        string     `json:"descriptionHtml"`
	Category               string     `json:"category"`
	CategoryColor          string     `json:"category_color"`
	Start                  IServTime1 `json:"start"`
	End                    IServTime1 `json:"end"`
	Timezone               string     `json:"timezone"`
	Editable               bool       `json:"editable"`
	Deletable              bool       `json:"deletable"`
	AllDay                 bool       `json:"allDay"`
	Recurring              bool       `json:"recurring"`
	CalendarId             string     `json:"calendarId"`
	Location               string     `json:"location"`
	LocationHtml           string     `json:"locationHtml"`
	When                   string     `json:"when"`
	Organizer              string     `json:"organizer"`
	Creator                string     `json:"creator"`
	CreatedAt              IServTime2 `json:"createdAt"`
	Status                 string     `json:"status"`
	ParticipantsWithStatus string     `json:"participantsWithStatus"`
	CurrentUserPartstat    string     `json:"currentUserPartstat"`
	ShowAttendanceButtons  bool       `json:"showAttendanceButtons"`
	IsOrganizer            bool       `json:"isOrganizer"`
	Color                  string     `json:"color"`
	CalendarName           string     `json:"calendarName"`
	Alarms                 []Alarm    `json:"alarms"`
}

type EventsInfo

type EventsInfo struct {
	Events []Event  `json:"events"`
	Errors []string `json:"errors"`
}

type IServAccountConfig

type IServAccountConfig struct {
	IServHost string
	Username  string
	Password  string
}

config

type IServClientOptions

type IServClientOptions struct {
	EnableModules map[string]bool
	AgentString   string
}

type IServExercise

type IServExercise struct {
	Type    string
	Title   string
	DueDate time.Time
	Tags    []string
	Teacher string
}

other

type IServTime1

type IServTime1 time.Time

func (IServTime1) MarshalJSON

func (c IServTime1) MarshalJSON() ([]byte, error)

func (*IServTime1) UnmarshalJSON

func (c *IServTime1) UnmarshalJSON(b []byte) error

type IServTime2

type IServTime2 time.Time

func (IServTime2) MarshalJSON

func (c IServTime2) MarshalJSON() ([]byte, error)

func (*IServTime2) UnmarshalJSON

func (c *IServTime2) UnmarshalJSON(b []byte) error

type Notification

type Notification struct{}

type NotificationData

type NotificationData struct {
	LastEventId   int            `json:"lastEventId"`
	LastId        int            `json:"lastId"`
	Since         int            `json:"since"`
	Count         int            `json:"count"`
	Notifications []Notification `json:"notifications"`
}

type NotificationInfo

type NotificationInfo struct {
	Status string           `json:"status"`
	Data   NotificationData `json:"data"`
}

Jump to

Keyboard shortcuts

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