utils

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewDatabase

func NewDatabase(config config.Config) (*Database, error)

func (*Database) Close

func (d *Database) Close() error

func (*Database) FindNotifications

func (d *Database) FindNotifications(runID, stm, filter string) ([][]*notification.Notification, error)

func (*Database) FindRuns

func (d *Database) FindRuns() ([]*notification.Notification, error)

func (*Database) Notify added in v0.6.3

func (d *Database) Notify(n notification.Notification) error

type State

type State[T ~int] struct {
	// contains filtered or unexported fields
}

func NewState

func NewState[T ~int](initialState T) *State[T]

func (*State[T]) Get

func (s *State[T]) Get() T

func (*State[T]) Set

func (s *State[T]) Set(newState T)

Jump to

Keyboard shortcuts

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