web

package
v0.0.0-...-6d978cb Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 13 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 the web application.

func NewApp

func NewApp(logger *slog.Logger, port string, router chi.Router, h *Handlers) *App

NewApp creates a new web app.

func (*App) Run

func (s *App) Run() error

Run starts the web server.

func (*App) Stop

func (app *App) Stop() error

Stop stops the web server.

type Handlers

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

func NewHandlers

func NewHandlers(logger *slog.Logger, subtitler subtitler) *Handlers

Jump to

Keyboard shortcuts

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