18
internal/outpost/radius/eap/protocol/context.go
Normal file
18
internal/outpost/radius/eap/protocol/context.go
Normal file
@ -0,0 +1,18 @@
|
||||
package protocol
|
||||
|
||||
import (
|
||||
log "github.com/sirupsen/logrus"
|
||||
"layeh.com/radius"
|
||||
)
|
||||
|
||||
type Context[TState any, TSettings any] interface {
|
||||
// GlobalState()
|
||||
|
||||
ProtocolSettings() TSettings
|
||||
GetProtocolState(def func(Context[TState, TSettings]) TState) TState
|
||||
SetProtocolState(TState)
|
||||
|
||||
EndInnerProtocol(func(p *radius.Packet) *radius.Packet)
|
||||
|
||||
Log() *log.Entry
|
||||
}
|
||||
Reference in New Issue
Block a user