helpers

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Logger         = "logger"
	NetworkSrcVLAN = "network_src_vlan"
	NetworkSrcIP   = "network_src_ip"
	ClientIP       = "client_ip"
	ClientVLAN     = "client_vlan"
	ClientRequest  = "client_request"
	ClientUsername = "client_username"
	ClientMAC      = "client_mac"
)

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(defaultLogger *log.Entry, ctx *gin.Context) *log.Entry

func Ipv4ToInt

func Ipv4ToInt(ip net.IP) (uint32, error)

func RadiusAcceptAdmin

func RadiusAcceptAdmin(c *gin.Context, password string, class string, logger *logrus.Entry, args ...interface{})

func RadiusAcceptUser

func RadiusAcceptUser(c *gin.Context, password string, vlanId uint16, logger *logrus.Entry, args ...interface{})

func RadiusReject

func RadiusReject(c *gin.Context, logger *logrus.Entry, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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