internal

package
v0.0.0-...-e0046dd Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package internal contains internal code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusThing

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

StatusThing is a statuspage application

func New

func New(store storers.StatusThingStorer, listenAddress string, logHandler slog.Handler, devMode bool) (*StatusThing, error)

New returns a new StatusThing

func (*StatusThing) Mux

func (st *StatusThing) Mux() chi.Router

Mux returns the configured mux for adding additiona routes

func (*StatusThing) Start

func (st *StatusThing) Start() error

Start starts the server

func (*StatusThing) Stop

func (st *StatusThing) Stop(ctx context.Context) error

Stop stops the server

Directories

Path Synopsis
Package filters contains a set of options that can be passed to various functions in a generic way
Package filters contains a set of options that can be passed to various functions in a generic way
Package handlers contains various handlers
Package handlers contains various handlers
Package serrors contains all custom error types
Package serrors contains all custom error types
Package services provides mechanisms for working with [statusthingv1.StatusThing] and related operations
Package services provides mechanisms for working with [statusthingv1.StatusThing] and related operations
Package session ...
Package session ...
Package storers contains code for storing various data used in the system
Package storers contains code for storing various data used in the system
internal
Package internal contains internal storer code
Package internal contains internal storer code
memdb
Package memdb implements the StatusThingStorer via a sqlite in-memory db
Package memdb implements the StatusThingStorer via a sqlite in-memory db
sqlite
Package sqlite implements a storer backed by sqlite3
Package sqlite implements a storer backed by sqlite3
sqlite/driver
Package driver is a package containing a custom sqlite3 driver that enforces fks
Package driver is a package containing a custom sqlite3 driver that enforces fks
unimplemented
Package unimplemented contains unimplemented implementations of storers
Package unimplemented contains unimplemented implementations of storers
Package templating contains code related to using go templates
Package templating contains code related to using go templates
Package testutils contains helpers for use in testing
Package testutils contains helpers for use in testing
Package validation contains consistent validation helpers
Package validation contains consistent validation helpers

Jump to

Keyboard shortcuts

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