msgtypes

package
v0.22.4 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventCode added in v0.21.0

type EventCode int

EventCode is an enum for event types.

const (
	Grade EventCode = iota
	Exam
	Reading
	FinalGrade
)

Event codes enum.

type Message

type Message struct {
	Timestamp    time.Time // event timestamp
	Username     string    // username (SSO/SAML)
	Subject      string    // subject
	Descriptions []string  // descriptions for fields
	Fields       []string  // fields with actual grades/exams and remarks
	Code         EventCode // type of event (grade, exam, reading or final grade)
}

Message structure holds alert subject and description as well as grades fields, as well as corresponding username.

Jump to

Keyboard shortcuts

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