binding

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RadiusAdminResponse

type RadiusAdminResponse struct {
	Password string `json:"config:Password-With-Header" binding:"required"`
	Class    string `json:"reply:Class"`
}

type RadiusRejectResponse

type RadiusRejectResponse struct {
	AuthType string `json:"control:Auth-Type" default:"Reject"`
}

type RadiusUserResponse

type RadiusUserResponse struct {
	TunnelType   string `json:"reply:Tunnel-Type" default:"VLAN"`
	TunnelMedium string `json:"reply:Tunnel-Medium-Type" default:"IEEE-802"`
	VLAN         uint16 `json:"reply:Tunnel-Private-Group-Id" default:"0"`
	Password     string `json:"config:Password-With-Header" binding:"required"`
}

type ServerStatus added in v1.0.0

type ServerStatus struct {
	Cache cache.Status `json:"cache"`
}

type UserRequest

type UserRequest struct {
	Username      string `json:"username" binding:"required"`
	Password      string `json:"password"`
	ClientIp      string `json:"ip" binding:"required"`
	VirtualServer string `json:"realm" binding:"required"`
	AuthType      string `json:"type"`
	Authenticator string `json:"called"`
	ClientMac     string `json:"calling"`
}

func (UserRequest) GetClientMac

func (r UserRequest) GetClientMac() string

Jump to

Keyboard shortcuts

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