middleware

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LAST_IP string
)

Functions

func AnalyzeMutualMachines

func AnalyzeMutualMachines() gin.HandlerFunc

func EnsuredAuthorizationBearer

func EnsuredAuthorizationBearer() gin.HandlerFunc

func MachineAuthorization

func MachineAuthorization() gin.HandlerFunc

Types

type MachineAuthorizationRequest

type MachineAuthorizationRequest struct {
	Data string `json:"data"`
}

type MachineData

type MachineData struct {
	MachineId        string `json:"machine_id"`
	MachineName      string `json:"machine_name"`
	MachinePlataform string `json:"machine_plataform"`
	Expire           int    `json:"expire"`
}

Jump to

Keyboard shortcuts

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