app

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

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ContextKeyRequestId app_ctx.ContextKey = "request_id"

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Queries  *state.Queries
	Commands *commands.Commands
	Events   *events.Events
}

func New

func New(queries *state.Queries, commands *commands.Commands, events *events.Events) *App

func (*App) MakeServer

func (a *App) MakeServer() *http.ServeMux

type LoggingMiddleware

type LoggingMiddleware struct {
	Handler http.Handler
}

func NewLoggingMiddleware

func NewLoggingMiddleware(handler http.Handler) *LoggingMiddleware

func (*LoggingMiddleware) ServeHTTP

func (m *LoggingMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RequestIDMiddleware

type RequestIDMiddleware struct {
	Handler http.Handler
	// contains filtered or unexported fields
}

func NewRequestIDMiddleware

func NewRequestIDMiddleware(handler http.Handler, request_id_inc *int) *RequestIDMiddleware

func (*RequestIDMiddleware) ServeHTTP

func (m *RequestIDMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778

Jump to

Keyboard shortcuts

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