Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface {
Packet() *radius.Request
RootPayload() Payload
ProtocolSettings() interface{}
GetProtocolState(p Type) interface{}
SetProtocolState(p Type, s interface{})
IsProtocolStart(p Type) bool
ResponseModifier
AddResponseModifier(func(r, q *radius.Packet) error)
HandleInnerEAP(Payload, StateManager) (Payload, error)
Inner(Payload, Type) Context
EndInnerProtocol(Status)
Log() Logger
}
type ProtocolConstructor ¶
type ProtocolConstructor func() Payload
type ResponseModifier ¶
type Settings ¶
type Settings struct {
Protocols []ProtocolConstructor
ProtocolPriority []Type
ProtocolSettings map[Type]interface{}
Logger Logger
}
type State ¶
type State struct {
Protocols []ProtocolConstructor
ProtocolIndex int
ProtocolPriority []Type
TypeState map[Type]any
}
func BlankState ¶
func (*State) GetNextProtocol ¶
type StateManager ¶
Click to show internal directories.
Click to hide internal directories.