http

package
v0.0.0-...-3a328fe Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Router

func Router(baseURL string) *chi.Mux

Router takes a base URL for prefixing all URLs returned to the client (so you don't need to burn a subdomain for this service) and returns an http.Handler that can accept all traffic

Types

type Payload

type Payload struct {
	SecondsPoll int
	NumCols     int
	Cards       []metrics.Card
}

Jump to

Keyboard shortcuts

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