server

package
v0.0.0-...-89564b7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, address, rootURL string, db Database,
	logger Logger, runner UpdateForcer,
) (server *httpserver.Server, err error)

Types

type Database

type Database interface {
	SelectAll() (records []records.Record)
}

type Logger

type Logger interface {
	Info(s string)
	Warn(s string)
	Error(s string)
}

type UpdateForcer

type UpdateForcer interface {
	ForceUpdate(ctx context.Context) (errors []error)
}

Jump to

Keyboard shortcuts

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