Documentation
¶
Index ¶
- type MVVM
- func (m *MVVM) ConnectDatabase(dbPath string) error
- func (m *MVVM) ImgprocBackendStart()
- func (m *MVVM) NewFrontendMain()
- func (m *MVVM) NewMailBacked(loginCredentials yaac_shared.MailLoginData) error
- func (m *MVVM) NotifyError(source string, err error)
- func (m *MVVM) NotifyNewList(list yaac_shared.AttendanceList)
- func (m *MVVM) SingleDemonRunthrough()
- func (m *MVVM) StartApplication()
- func (m *MVVM) StartDemon(duration time.Duration)
- func (m *MVVM) TemplateFuncRecive(data any)
- func (m *MVVM) TemplateFuncSend()
- func (m *MVVM) UpdateMailCredentials(credentials yaac_shared.MailLoginData) error
- func (m *MVVM) UploadImage(img []byte, course *yaac_shared.Course) (*yaac_shared.AttendanceList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MVVM ¶
type MVVM struct { *yaac_backend_imgproc.BackendImgproc *yaac_backend_mail.BackendMail *yaac_frontend_main.FrontendMain *yaac_backend_database.BackendDatabase }
Implements the shared.MVVM interface
func (*MVVM) ConnectDatabase ¶
func (*MVVM) ImgprocBackendStart ¶
func (m *MVVM) ImgprocBackendStart()
func (*MVVM) NewFrontendMain ¶
func (m *MVVM) NewFrontendMain()
func (*MVVM) NewMailBacked ¶
func (m *MVVM) NewMailBacked(loginCredentials yaac_shared.MailLoginData) error
Tries to connect to the mail server. Even if the mail server is unreachable (error), the mail backend is still valid
func (*MVVM) NotifyError ¶
func (*MVVM) NotifyNewList ¶
func (m *MVVM) NotifyNewList(list yaac_shared.AttendanceList)
func (*MVVM) SingleDemonRunthrough ¶
func (m *MVVM) SingleDemonRunthrough()
Run a single runthrough of the demon functionality in a goroutine
func (*MVVM) StartApplication ¶
func (m *MVVM) StartApplication()
func (*MVVM) StartDemon ¶
Duation in seconds to wait between refreshes The demon is run in a goroutine
func (*MVVM) TemplateFuncRecive ¶
func (*MVVM) TemplateFuncSend ¶
func (m *MVVM) TemplateFuncSend()
Template function in the MVVM. Packages can include this function in their MVVM interfaces
func (*MVVM) UpdateMailCredentials ¶
func (m *MVVM) UpdateMailCredentials(credentials yaac_shared.MailLoginData) error
func (*MVVM) UploadImage ¶
func (m *MVVM) UploadImage(img []byte, course *yaac_shared.Course) (*yaac_shared.AttendanceList, error)
Upload an image and process it as if it was taken from an email
Click to show internal directories.
Click to hide internal directories.