web

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(processor processing.Processor) (api.ClientModule, error)

New returns a new api.ClientModule for web pages.

Types

type Module

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

Module implements the api.ClientModule interface for web pages.

func (*Module) NotFoundHandler

func (m *Module) NotFoundHandler(c *gin.Context)

NotFoundHandler serves a 404 html page instead of a blank 404 error.

func (*Module) Route

func (m *Module) Route(s router.Router) error

Route satisfies the RESTAPIModule interface

Jump to

Keyboard shortcuts

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