httpz

package
v0.0.0-...-28a10b4 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package httpz provides the application's HTTP handler and other functionality.

It is named httpz to avoid a name conflict with the standard library's http package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(
	dbpool *pgxpool.Pool,
	logger *zerolog.Logger,
	csrfKey []byte,
	secureCookies bool,
	cookieAuthenticationKey []byte,
	cookieEncryptionKey []byte,
	assetManifest map[string]string,
) (http.Handler, error)

NewHandler returns an http.Handler that serves the web application.

Types

type RequestLoginSession

type RequestLoginSession struct {
	ID   uuid.UUID
	User *RequestUser
}

type RequestUser

type RequestUser struct {
	ID       uuid.UUID
	Username string
	System   bool
}

Jump to

Keyboard shortcuts

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