Documentation ¶
Index ¶
- Variables
- func GetAnnouncements() []byte
- func GetAnnouncementsConky() []byte
- func GetAnnouncementsTerm() []byte
- func GetEvents() []byte
- func GetEventsConky() []byte
- func GetEventsTerm() []byte
- func GetUnknownResponse() []byte
- func GetUserName() string
- func SetDebugMode(debug *bool)
- func SetUserPass(user string, pass string)
- func Start() error
- func Stop() error
- type Announcement
- type App
- type Course
- type Event
- type NearEvent
- type SessKey
Constants ¶
This section is empty.
Variables ¶
var Debug *bool
Debug to set debugging mode for more logging output
Functions ¶
func GetAnnouncements ¶
func GetAnnouncements() []byte
GetAnnouncements to get Announcements byte array to be send to socket client
func GetAnnouncementsConky ¶
func GetAnnouncementsConky() []byte
GetAnnouncementsConky to get Announcements byte array with conky color support
func GetAnnouncementsTerm ¶
func GetAnnouncementsTerm() []byte
GetAnnouncementsTerm to get Announcements byte array with terminal color support
func GetEvents ¶
func GetEvents() []byte
GetEvents to get Events byte array to be sent to socket client
func GetEventsConky ¶
func GetEventsConky() []byte
GetEventsConky to get Events byte array with conky color support
func GetEventsTerm ¶
func GetEventsTerm() []byte
GetEventsTerm function helps to get Events byte array with terminal color support
func GetUnknownResponse ¶
func GetUnknownResponse() []byte
GetUnknownResponse for Unknown Args given to Socket server
func GetUserName ¶
func GetUserName() string
GetUserName returns username which is used to login into lms portal
func SetDebugMode ¶
func SetDebugMode(debug *bool)
SetDebugMode to set debug Mode for enabling more logs
func SetUserPass ¶
SetUserPass sets username and password to login to lms portal
Types ¶
type Announcement ¶
Announcement Type
type Course ¶
type Course struct { Name string `json:"fullname"` Code string `json:"shortname"` CourseID int `json:"id"` URL string `json:"viewurl"` Isfavorite bool `json:"isfavourite"` }
Course Type
type Event ¶
type Event struct { Name string `json:"name"` Description string `json:"description"` CourseID int `json:"course.id"` Instance int `json:"instance"` Eventtype string `json:"eventtype"` Timestart int `json:"timestart"` Timeduration int `json:"timeduration"` Timesort int `json:"timesort"` Visible int `json:"visible"` Timemodified int `json:"timemodified"` Formattedtime string `json:"formattedtime"` URL string `json:"url"` }
Event Type