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