web

package
v0.0.0-...-460bf52 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed resources
	Resources embed.FS
)

Functions

func NewApp

func NewApp(addr string, client HTTPClient) (*http.Server, net.Listener)

Types

type App

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

func (*App) LoadHandlers

func (a *App) LoadHandlers() func(x *mux.Router)

type HTTPClient

type HTTPClient interface {
	Post(url, contentType string, body io.Reader) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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