sampleroute

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 sampleroute ...

Index

Constants

This section is empty.

Variables

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

Module is the sample route module.

Functions

This section is empty.

Types

type Parameter

type Parameter struct {
	fx.In

	Logger           *slog.Logger
	SampleMiddleware httpserver.Middleware `name:"sample_middleware"`
}

Parameter is the input parameter of the New function.

type Result

type Result struct {
	fx.Out

	Route httpserver.Route `group:"routes"`
}

Result the output result of the New function.

func New

func New(parameter Parameter) Result

New creates a new sample route.

Jump to

Keyboard shortcuts

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