web

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package web contains code to run webservers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControllerRouter

func NewControllerRouter(cfg middleware.Config, be backend.Interface) (chi.Router, error)

Types

type Processor

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

func NewProcessor

func NewProcessor(cfg middleware.Config, be backend.Interface) *Processor

func (*Processor) Run

func (p *Processor) Run(ctx context.Context) error

Run starts a reaper and an invalidator goroutine, and returns any error that occurs while stopping.

func (*Processor) RunInvalidateOnce

func (p *Processor) RunInvalidateOnce(ctx context.Context) error

func (*Processor) RunOnce

func (p *Processor) RunOnce(ctx context.Context) error

func (*Processor) RunReaperOnce

func (p *Processor) RunReaperOnce(ctx context.Context) error

Directories

Path Synopsis
Package handler contains http handlers.
Package handler contains http handlers.
Package middleware contains various http middlewares.
Package middleware contains various http middlewares.

Jump to

Keyboard shortcuts

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