census

package
v1.49.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(cfg *config.Config, c cache.List, homepageClient homepage.Clienter, rend RenderClient) http.HandlerFunc

Handler handles requests to census endpoint

Types

type Clients

type Clients struct {
	Renderer RenderClient
}

Clients contains all the required Clients for Census hub page

type RenderClient

type RenderClient interface {
	BuildPage(w io.Writer, pageModel interface{}, templateName string)
	NewBasePageModel() model.Page
}

RenderClient is an interface with methods required for rendering a template from a page model

Jump to

Keyboard shortcuts

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