server

package
v0.0.0-...-6aee27a Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

This file provides a rewrap of the relevant remux package. This is done to make migration easier, and to minimize the impact of this refactor

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func API

func API(r chi.Router, db *database.Connection, contentStore contentstore.Store, logger logging.Logger)

func Web

func Web(r chi.Router, db *database.Connection, contentStore contentstore.Store, config *WebConfig)

Types

type WebConfig

type WebConfig struct {
	DBConnection     *database.Connection
	AuthSchemes      []authschemes.AuthScheme
	CSRFAuthKey      []byte
	SessionStoreKey  []byte
	UseSecureCookies bool
	Logger           logging.Logger
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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