webui

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Code generated by vite from client-bundle DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyRun added in v0.5.5

func EmptyRun(id string) templ.Component

func EventList

func EventList(notifs [][]*notification.Notification) templ.Component

func New

func New(cfg config.Config, db Database, callbackFn notification.NotificationCallback) (*server, error)

func SearchNoResults added in v0.5.5

func SearchNoResults() templ.Component

func SearchSelect added in v0.5.5

func SearchSelect(runs []*notification.Notification, currentRun string) templ.Component

Types

type Database added in v0.6.2

type Database interface {
	FindNotifications(runID, stm, filter string) ([][]*notification.Notification, error)
	FindRuns() ([]*notification.Notification, error)
}

type SSEEvent added in v0.6.2

type SSEEvent struct {
	ID     string `json:"id"`
	Date   string `json:"dt"`
	Target string `json:"target"`
	Markup string `json:"markup"`
	Swap   string `json:"swap"`
}

Jump to

Keyboard shortcuts

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