middleware

package
v0.0.146 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigProvider

func ConfigProvider(config *config.Config) gin.HandlerFunc

func DatabaseProvider

func DatabaseProvider(db *gorm.DB) gin.HandlerFunc

func NetworkStats

func NetworkStats(stats *bandwidth.StatCounterManager) gin.HandlerFunc

func OLSRDProvider

func OLSRDProvider(parser *olsrd.HostsParser) gin.HandlerFunc

func OLSRDServicesProvider added in v0.0.80

func OLSRDServicesProvider(parser *olsrd.ServicesParser) gin.HandlerFunc

func PaginatedDatabaseProvider

func PaginatedDatabaseProvider(db *gorm.DB, config PaginationConfig) gin.HandlerFunc

func RequireLogin

func RequireLogin(config *config.Config) gin.HandlerFunc

func TracingProvider

func TracingProvider(config *config.Config) gin.HandlerFunc

func VTunClientWatcherProvider added in v0.0.35

func VTunClientWatcherProvider(clientWatcher *vtun.VTunClientWatcher) gin.HandlerFunc

func VersionProvider added in v0.0.139

func VersionProvider(version string) gin.HandlerFunc

func WireguardManagerProvider added in v0.0.100

func WireguardManagerProvider(manager *wireguard.Manager) gin.HandlerFunc

Types

type PaginationConfig

type PaginationConfig struct {
	DefaultLimit int
	MaxLimit     int
}

Jump to

Keyboard shortcuts

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