yaac_mvvm

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MVVM

Implements the shared.MVVM interface

func New

func New() *MVVM

func (*MVVM) ConnectDatabase

func (m *MVVM) ConnectDatabase(dbPath string) error

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 (m *MVVM) NotifyError(source string, err error)

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

func (m *MVVM) StartDemon(duration time.Duration)

Duation in seconds to wait between refreshes The demon is run in a goroutine

func (*MVVM) TemplateFuncRecive

func (m *MVVM) TemplateFuncRecive(data any)

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

Jump to

Keyboard shortcuts

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