gui

package
v0.0.0-...-347e25e Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App is a GUI application

func NewApp

func NewApp(deps *AppDependencies, log *slog.Logger) *App

NewApp is a constructor for gui application

func (*App) Run

func (a *App) Run(ctx context.Context)

type AppDependencies

type AppDependencies struct {
	TaskService TaskService
	Scheduler   Scheduler
}

AppDependencies is a struct that holds dependencies for the App

type Scheduler

type Scheduler interface {
	AddJob(ctx context.Context, job schedule.ScheduledJob)
	RemoveJob(ctx context.Context, name string)
	GetJobs(ctx context.Context) map[string]schedule.ScheduledJob
	Run(ctx context.Context)
}

Scheduler manages scheduled jobs, running them at specified intervals

type TaskService

type TaskService interface {
	GetTasks(ctx context.Context, token string) ([]*todoist.Task, error)
}

TaskService retrieves tasks from Todoist using provided token

Jump to

Keyboard shortcuts

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