middleware

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppErrorReporter

func AppErrorReporter() gin.HandlerFunc

AppErrorReporter reports errors.

func LocalMetaData

func LocalMetaData(localdata, defaultkey, globalkey string) gin.HandlerFunc

LocalMetaData middleware to inject all data found for MAC within local files

func RemoteMetaData

func RemoteMetaData() gin.HandlerFunc

RemoteMetaData middleware to inject all data found for MAC within local files

Types

type AppError

type AppError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

AppError for app specifics.

func (*AppError) Error

func (e *AppError) Error() string

type MacNotFoundError

type MacNotFoundError struct {
	Msg string
}

MacNotFoundError error thrown when mac is not found in arp table

func (*MacNotFoundError) Error

func (e *MacNotFoundError) Error() string

Jump to

Keyboard shortcuts

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