Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2025-05-16 14:32:47 +02:00
parent ac88784089
commit 318443f270
5 changed files with 38 additions and 31 deletions

View File

@ -5,12 +5,12 @@ import (
"layeh.com/radius"
)
type Context[TState any, TSettings any] interface {
type Context interface {
// GlobalState()
ProtocolSettings() TSettings
GetProtocolState(def func(Context[TState, TSettings]) TState) TState
SetProtocolState(TState)
ProtocolSettings() interface{}
GetProtocolState(def func(Context) interface{}) interface{}
SetProtocolState(interface{})
EndInnerProtocol(func(p *radius.Packet) *radius.Packet)