basic

package
v1.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Component = compogo.Component{
	Dependencies: compogo.Components{
		&basic.Component,
		&chi.Component,
	},
	PreExecute: compogo.StepFunc(func(container compogo.Container) error {
		return container.Invoke(func(r httpServer.Router, auth *basic.Auth) {
			r.Use(auth)
		})
	}),
}

Component — компонент Basic Auth для chi-роутера. Подключает Basic Auth middleware ко всем маршрутам роутера.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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