samplemiddleware

package
v0.0.0-...-5e472c2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package samplemiddleware ...

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"sample_middleware",
	fx.Provide(
		New,
	),
	fx.Decorate(
		wrapLogger,
	),
)

Module is the sample middleware module.

Functions

This section is empty.

Types

type Parameter

type Parameter struct {
	fx.In

	Logger *slog.Logger
}

Parameter is the input parameter for the sample middleware module.

type Result

type Result struct {
	fx.Out

	Middleware httpserver.Middleware `name:"sample_middleware"`
}

Result is the output result of the New function.

func New

func New(parameter Parameter) Result

New creates a new sample middleware.

Jump to

Keyboard shortcuts

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