Documentation ¶
Index ¶
- Variables
- func RegisterAccountingServer(s *grpc.Server, srv AccountingServer)
- func RegisterAuthenticatorServer(s *grpc.Server, srv AuthenticatorServer)
- func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer)
- func RegisterEapRouterServer(s *grpc.Server, srv EapRouterServer)
- type AccountingClient
- type AccountingServer
- type AcctResp
- type AddSessionsRequest
- func (*AddSessionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddSessionsRequest) GetSessions() []*Context
- func (*AddSessionsRequest) ProtoMessage()
- func (x *AddSessionsRequest) ProtoReflect() protoreflect.Message
- func (x *AddSessionsRequest) Reset()
- func (x *AddSessionsRequest) String() string
- type AuthenticatorClient
- type AuthenticatorServer
- type AuthorizationClient
- type AuthorizationServer
- type ChangeRequest
- func (*ChangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeRequest) GetCtx() *Context
- func (x *ChangeRequest) GetJsonTrficClasses() string
- func (*ChangeRequest) ProtoMessage()
- func (x *ChangeRequest) ProtoReflect() protoreflect.Message
- func (x *ChangeRequest) Reset()
- func (x *ChangeRequest) String() string
- type CoaResponse
- func (*CoaResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CoaResponse) GetCoaResponseType() CoaResponseCoaResponseTypeEnum
- func (x *CoaResponse) GetCtx() *Context
- func (*CoaResponse) ProtoMessage()
- func (x *CoaResponse) ProtoReflect() protoreflect.Message
- func (x *CoaResponse) Reset()
- func (x *CoaResponse) String() string
- type CoaResponseCoaResponseTypeEnum
- func (CoaResponseCoaResponseTypeEnum) Descriptor() protoreflect.EnumDescriptor
- func (x CoaResponseCoaResponseTypeEnum) Enum() *CoaResponseCoaResponseTypeEnum
- func (CoaResponseCoaResponseTypeEnum) EnumDescriptor() ([]byte, []int)deprecated
- func (x CoaResponseCoaResponseTypeEnum) Number() protoreflect.EnumNumber
- func (x CoaResponseCoaResponseTypeEnum) String() string
- func (CoaResponseCoaResponseTypeEnum) Type() protoreflect.EnumType
- type Context
- func (*Context) Descriptor() ([]byte, []int)deprecated
- func (x *Context) GetAcctSessionId() string
- func (x *Context) GetApn() string
- func (x *Context) GetAuthSessionId() string
- func (x *Context) GetIdentity() string
- func (x *Context) GetImsi() string
- func (x *Context) GetIpAddr() string
- func (x *Context) GetMacAddr() string
- func (x *Context) GetMsisdn() string
- func (x *Context) GetMsk() []byte
- func (x *Context) GetSessionId() string
- func (*Context) ProtoMessage()
- func (x *Context) ProtoReflect() protoreflect.Message
- func (x *Context) Reset()
- func (x *Context) String() string
- type CreateSessionResp
- type DisconnectRequest
- type Eap
- type EapCode
- type EapIdentity
- func (*EapIdentity) Descriptor() ([]byte, []int)deprecated
- func (x *EapIdentity) GetCtx() *Context
- func (x *EapIdentity) GetMethod() uint32
- func (x *EapIdentity) GetPayload() []byte
- func (*EapIdentity) ProtoMessage()
- func (x *EapIdentity) ProtoReflect() protoreflect.Message
- func (x *EapIdentity) Reset()
- func (x *EapIdentity) String() string
- type EapMethodList
- type EapRouterClient
- type EapRouterServer
- type EapType
- type StopRequest
- func (*StopRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StopRequest) GetCause() StopRequestTerminateCause
- func (x *StopRequest) GetCtx() *Context
- func (*StopRequest) ProtoMessage()
- func (x *StopRequest) ProtoReflect() protoreflect.Message
- func (x *StopRequest) Reset()
- func (x *StopRequest) String() string
- type StopRequestTerminateCause
- func (StopRequestTerminateCause) Descriptor() protoreflect.EnumDescriptor
- func (x StopRequestTerminateCause) Enum() *StopRequestTerminateCause
- func (StopRequestTerminateCause) EnumDescriptor() ([]byte, []int)deprecated
- func (x StopRequestTerminateCause) Number() protoreflect.EnumNumber
- func (x StopRequestTerminateCause) String() string
- func (StopRequestTerminateCause) Type() protoreflect.EnumType
- type TerminateSessionRequest
- func (*TerminateSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TerminateSessionRequest) GetImsi() string
- func (x *TerminateSessionRequest) GetRadiusSessionId() string
- func (*TerminateSessionRequest) ProtoMessage()
- func (x *TerminateSessionRequest) ProtoReflect() protoreflect.Message
- func (x *TerminateSessionRequest) Reset()
- func (x *TerminateSessionRequest) String() string
- type UnimplementedAccountingServer
- func (*UnimplementedAccountingServer) AddSessions(context.Context, *AddSessionsRequest) (*AcctResp, error)
- func (*UnimplementedAccountingServer) CreateSession(context.Context, *Context) (*CreateSessionResp, error)
- func (*UnimplementedAccountingServer) InterimUpdate(context.Context, *UpdateRequest) (*AcctResp, error)
- func (*UnimplementedAccountingServer) Start(context.Context, *Context) (*AcctResp, error)
- func (*UnimplementedAccountingServer) Stop(context.Context, *StopRequest) (*AcctResp, error)
- func (*UnimplementedAccountingServer) TerminateSession(context.Context, *TerminateSessionRequest) (*AcctResp, error)
- type UnimplementedAuthenticatorServer
- type UnimplementedAuthorizationServer
- type UnimplementedEapRouterServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetCtx() *Context
- func (x *UpdateRequest) GetOctetsIn() uint32
- func (x *UpdateRequest) GetOctetsOut() uint32
- func (x *UpdateRequest) GetPacketsIn() uint32
- func (x *UpdateRequest) GetPacketsOut() uint32
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type Void
Constants ¶
This section is empty.
Variables ¶
var ( StopRequestTerminateCause_name = map[int32]string{ 0: "UNDEFINED", 1: "USER_REQUEST", 2: "LOST_CARRIER", 3: "LOST_SERVICE", 4: "IDLE_TIMEOUT", 5: "SESSION_TIMEOUT", 6: "ADMIN_RESET", 7: "ADMIN_REBOOT", 8: "PORT_ERROR", 9: "NAS_ERROR", 10: "NAS_REQUEST", 11: "NAS_REBOOT", 12: "PORT_UNNEEDED", 13: "PORT_PREEMPTED", 14: "PORT_SUSPENDED", 15: "SERVICE_UNAVAILABLE", 16: "CALLBACK", 17: "USER_ERROR", 18: "HOST_REQUEST", } StopRequestTerminateCause_value = map[string]int32{ "UNDEFINED": 0, "USER_REQUEST": 1, "LOST_CARRIER": 2, "LOST_SERVICE": 3, "IDLE_TIMEOUT": 4, "SESSION_TIMEOUT": 5, "ADMIN_RESET": 6, "ADMIN_REBOOT": 7, "PORT_ERROR": 8, "NAS_ERROR": 9, "NAS_REQUEST": 10, "NAS_REBOOT": 11, "PORT_UNNEEDED": 12, "PORT_PREEMPTED": 13, "PORT_SUSPENDED": 14, "SERVICE_UNAVAILABLE": 15, "CALLBACK": 16, "USER_ERROR": 17, "HOST_REQUEST": 18, } )
Enum value maps for StopRequestTerminateCause.
var ( CoaResponseCoaResponseTypeEnum_name = map[int32]string{ 0: "NAK", 1: "ACK", } CoaResponseCoaResponseTypeEnum_value = map[string]int32{ "NAK": 0, "ACK": 1, } )
Enum value maps for CoaResponseCoaResponseTypeEnum.
var ( EapType_name = map[int32]string{ 0: "Reserved", 1: "Identity", 2: "Notification", 3: "Legacy_Nak", 4: "MD5_Challenge", 254: "Expanded", 255: "Experimental", 13: "TLS", 18: "SIM", 23: "AKA", 50: "AKAPrime", } EapType_value = map[string]int32{ "Reserved": 0, "Identity": 1, "Notification": 2, "Legacy_Nak": 3, "MD5_Challenge": 4, "Expanded": 254, "Experimental": 255, "TLS": 13, "SIM": 18, "AKA": 23, "AKAPrime": 50, } )
Enum value maps for EapType.
var ( EapCode_name = map[int32]string{ 0: "Undefined", 1: "Request", 2: "Response", 3: "Success", 4: "Failure", } EapCode_value = map[string]int32{ "Undefined": 0, "Request": 1, "Response": 2, "Success": 3, "Failure": 4, } )
Enum value maps for EapCode.
var File_accounting_proto protoreflect.FileDescriptor
var File_context_proto protoreflect.FileDescriptor
var File_eap_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountingServer ¶
func RegisterAccountingServer(s *grpc.Server, srv AccountingServer)
func RegisterAuthenticatorServer ¶
func RegisterAuthenticatorServer(s *grpc.Server, srv AuthenticatorServer)
func RegisterAuthorizationServer ¶
func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer)
func RegisterEapRouterServer ¶
func RegisterEapRouterServer(s *grpc.Server, srv EapRouterServer)
Types ¶
type AccountingClient ¶
type AccountingClient interface { // External Radius Server RPCs // // Acct-Status-Type Start Start(ctx context.Context, in *Context, opts ...grpc.CallOption) (*AcctResp, error) // Accounting Interim-Update InterimUpdate(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*AcctResp, error) // Acct-Status-Type Stop Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*AcctResp, error) // Local Session Management RPCs // // create_session is an "outbound" RPC for session manager which can be called from start() CreateSession(ctx context.Context, in *Context, opts ...grpc.CallOption) (*CreateSessionResp, error) // terminate_session is an "inbound" RPC from session manager to notify accounting of a client session termination TerminateSession(ctx context.Context, in *TerminateSessionRequest, opts ...grpc.CallOption) (*AcctResp, error) // add_sessions is an "inbound" RPC from session manager to bulk add existing sessions AddSessions(ctx context.Context, in *AddSessionsRequest, opts ...grpc.CallOption) (*AcctResp, error) }
AccountingClient is the client API for Accounting service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountingClient ¶
func NewAccountingClient(cc grpc.ClientConnInterface) AccountingClient
type AccountingServer ¶
type AccountingServer interface { // External Radius Server RPCs // // Acct-Status-Type Start Start(context.Context, *Context) (*AcctResp, error) // Accounting Interim-Update InterimUpdate(context.Context, *UpdateRequest) (*AcctResp, error) // Acct-Status-Type Stop Stop(context.Context, *StopRequest) (*AcctResp, error) // Local Session Management RPCs // // create_session is an "outbound" RPC for session manager which can be called from start() CreateSession(context.Context, *Context) (*CreateSessionResp, error) // terminate_session is an "inbound" RPC from session manager to notify accounting of a client session termination TerminateSession(context.Context, *TerminateSessionRequest) (*AcctResp, error) // add_sessions is an "inbound" RPC from session manager to bulk add existing sessions AddSessions(context.Context, *AddSessionsRequest) (*AcctResp, error) }
AccountingServer is the server API for Accounting service.
type AcctResp ¶
type AcctResp struct {
// contains filtered or unexported fields
}
acct_resp message - RPC message definition for Accounting-Response (currently empty) see: https://tools.ietf.org/html/rfc2866#section-4.2
func (*AcctResp) Descriptor
deprecated
func (*AcctResp) ProtoMessage ¶
func (*AcctResp) ProtoMessage()
func (*AcctResp) ProtoReflect ¶
func (x *AcctResp) ProtoReflect() protoreflect.Message
type AddSessionsRequest ¶
type AddSessionsRequest struct { Sessions []*Context `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"` // contains filtered or unexported fields }
func (*AddSessionsRequest) Descriptor
deprecated
func (*AddSessionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddSessionsRequest.ProtoReflect.Descriptor instead.
func (*AddSessionsRequest) GetSessions ¶
func (x *AddSessionsRequest) GetSessions() []*Context
func (*AddSessionsRequest) ProtoMessage ¶
func (*AddSessionsRequest) ProtoMessage()
func (*AddSessionsRequest) ProtoReflect ¶
func (x *AddSessionsRequest) ProtoReflect() protoreflect.Message
func (*AddSessionsRequest) Reset ¶
func (x *AddSessionsRequest) Reset()
func (*AddSessionsRequest) String ¶
func (x *AddSessionsRequest) String() string
type AuthenticatorClient ¶
type AuthenticatorClient interface { // handle_identity passes Identity EAP payload to corresponding method provider & returns corresponding // EAP result // NOTE: Identity Request is handled by APs & does not involve EAP Authenticator's support HandleIdentity(ctx context.Context, in *EapIdentity, opts ...grpc.CallOption) (*Eap, error) // handle handles passed EAP payload & returns corresponding EAP result Handle(ctx context.Context, in *Eap, opts ...grpc.CallOption) (*Eap, error) // supported_methods returns sorted list (ascending, by type) of registered EAP Provider Methods SupportedMethods(ctx context.Context, in *Void, opts ...grpc.CallOption) (*EapMethodList, error) }
AuthenticatorClient is the client API for Authenticator service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthenticatorClient ¶
func NewAuthenticatorClient(cc grpc.ClientConnInterface) AuthenticatorClient
type AuthenticatorServer ¶
type AuthenticatorServer interface { // handle_identity passes Identity EAP payload to corresponding method provider & returns corresponding // EAP result // NOTE: Identity Request is handled by APs & does not involve EAP Authenticator's support HandleIdentity(context.Context, *EapIdentity) (*Eap, error) // handle handles passed EAP payload & returns corresponding EAP result Handle(context.Context, *Eap) (*Eap, error) // supported_methods returns sorted list (ascending, by type) of registered EAP Provider Methods SupportedMethods(context.Context, *Void) (*EapMethodList, error) }
AuthenticatorServer is the server API for Authenticator service.
type AuthorizationClient ¶
type AuthorizationClient interface { Change(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*CoaResponse, error) Disconnect(ctx context.Context, in *DisconnectRequest, opts ...grpc.CallOption) (*CoaResponse, error) }
AuthorizationClient is the client API for Authorization service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthorizationClient ¶
func NewAuthorizationClient(cc grpc.ClientConnInterface) AuthorizationClient
type AuthorizationServer ¶
type AuthorizationServer interface { Change(context.Context, *ChangeRequest) (*CoaResponse, error) Disconnect(context.Context, *DisconnectRequest) (*CoaResponse, error) }
AuthorizationServer is the server API for Authorization service.
type ChangeRequest ¶
type ChangeRequest struct { Ctx *Context `protobuf:"bytes,1,opt,name=ctx,proto3" json:"ctx,omitempty"` JsonTrficClasses string `protobuf:"bytes,2,opt,name=json_trfic_classes,json=jsonTrficClasses,proto3" json:"json_trfic_classes,omitempty"` // contains filtered or unexported fields }
update_request with usages & included context
func (*ChangeRequest) Descriptor
deprecated
func (*ChangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangeRequest.ProtoReflect.Descriptor instead.
func (*ChangeRequest) GetCtx ¶
func (x *ChangeRequest) GetCtx() *Context
func (*ChangeRequest) GetJsonTrficClasses ¶
func (x *ChangeRequest) GetJsonTrficClasses() string
func (*ChangeRequest) ProtoMessage ¶
func (*ChangeRequest) ProtoMessage()
func (*ChangeRequest) ProtoReflect ¶
func (x *ChangeRequest) ProtoReflect() protoreflect.Message
func (*ChangeRequest) Reset ¶
func (x *ChangeRequest) Reset()
func (*ChangeRequest) String ¶
func (x *ChangeRequest) String() string
type CoaResponse ¶
type CoaResponse struct { CoaResponseType CoaResponseCoaResponseTypeEnum `` /* 156-byte string literal not displayed */ Ctx *Context `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"` // contains filtered or unexported fields }
func (*CoaResponse) Descriptor
deprecated
func (*CoaResponse) Descriptor() ([]byte, []int)
Deprecated: Use CoaResponse.ProtoReflect.Descriptor instead.
func (*CoaResponse) GetCoaResponseType ¶
func (x *CoaResponse) GetCoaResponseType() CoaResponseCoaResponseTypeEnum
func (*CoaResponse) GetCtx ¶
func (x *CoaResponse) GetCtx() *Context
func (*CoaResponse) ProtoMessage ¶
func (*CoaResponse) ProtoMessage()
func (*CoaResponse) ProtoReflect ¶
func (x *CoaResponse) ProtoReflect() protoreflect.Message
func (*CoaResponse) Reset ¶
func (x *CoaResponse) Reset()
func (*CoaResponse) String ¶
func (x *CoaResponse) String() string
type CoaResponseCoaResponseTypeEnum ¶
type CoaResponseCoaResponseTypeEnum int32
const ( CoaResponse_NAK CoaResponseCoaResponseTypeEnum = 0 CoaResponse_ACK CoaResponseCoaResponseTypeEnum = 1 )
func (CoaResponseCoaResponseTypeEnum) Descriptor ¶
func (CoaResponseCoaResponseTypeEnum) Descriptor() protoreflect.EnumDescriptor
func (CoaResponseCoaResponseTypeEnum) Enum ¶
func (x CoaResponseCoaResponseTypeEnum) Enum() *CoaResponseCoaResponseTypeEnum
func (CoaResponseCoaResponseTypeEnum) EnumDescriptor
deprecated
func (CoaResponseCoaResponseTypeEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use CoaResponseCoaResponseTypeEnum.Descriptor instead.
func (CoaResponseCoaResponseTypeEnum) Number ¶
func (x CoaResponseCoaResponseTypeEnum) Number() protoreflect.EnumNumber
func (CoaResponseCoaResponseTypeEnum) String ¶
func (x CoaResponseCoaResponseTypeEnum) String() string
func (CoaResponseCoaResponseTypeEnum) Type ¶
func (CoaResponseCoaResponseTypeEnum) Type() protoreflect.EnumType
type Context ¶
type Context struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` Imsi string `protobuf:"bytes,2,opt,name=imsi,proto3" json:"imsi,omitempty"` Msk []byte `protobuf:"bytes,3,opt,name=msk,proto3" json:"msk,omitempty"` Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` Msisdn string `protobuf:"bytes,5,opt,name=msisdn,proto3" json:"msisdn,omitempty"` Apn string `protobuf:"bytes,6,opt,name=apn,proto3" json:"apn,omitempty"` MacAddr string `protobuf:"bytes,7,opt,name=mac_addr,json=macAddr,proto3" json:"mac_addr,omitempty"` IpAddr string `protobuf:"bytes,8,opt,name=ip_addr,json=ipAddr,proto3" json:"ip_addr,omitempty"` AuthSessionId string `protobuf:"bytes,9,opt,name=auth_session_id,json=authSessionId,proto3" json:"auth_session_id,omitempty"` AcctSessionId string `protobuf:"bytes,10,opt,name=acct_session_id,json=acctSessionId,proto3" json:"acct_session_id,omitempty"` // contains filtered or unexported fields }
func (*Context) Descriptor
deprecated
func (*Context) GetAcctSessionId ¶
func (*Context) GetAuthSessionId ¶
func (*Context) GetIdentity ¶
func (*Context) GetMacAddr ¶
func (*Context) GetSessionId ¶
func (*Context) ProtoMessage ¶
func (*Context) ProtoMessage()
func (*Context) ProtoReflect ¶
func (x *Context) ProtoReflect() protoreflect.Message
type CreateSessionResp ¶
type CreateSessionResp struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*CreateSessionResp) Descriptor
deprecated
func (*CreateSessionResp) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionResp.ProtoReflect.Descriptor instead.
func (*CreateSessionResp) GetSessionId ¶
func (x *CreateSessionResp) GetSessionId() string
func (*CreateSessionResp) ProtoMessage ¶
func (*CreateSessionResp) ProtoMessage()
func (*CreateSessionResp) ProtoReflect ¶
func (x *CreateSessionResp) ProtoReflect() protoreflect.Message
func (*CreateSessionResp) Reset ¶
func (x *CreateSessionResp) Reset()
func (*CreateSessionResp) String ¶
func (x *CreateSessionResp) String() string
type DisconnectRequest ¶
type DisconnectRequest struct { Ctx *Context `protobuf:"bytes,1,opt,name=ctx,proto3" json:"ctx,omitempty"` // contains filtered or unexported fields }
func (*DisconnectRequest) Descriptor
deprecated
func (*DisconnectRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisconnectRequest.ProtoReflect.Descriptor instead.
func (*DisconnectRequest) GetCtx ¶
func (x *DisconnectRequest) GetCtx() *Context
func (*DisconnectRequest) ProtoMessage ¶
func (*DisconnectRequest) ProtoMessage()
func (*DisconnectRequest) ProtoReflect ¶
func (x *DisconnectRequest) ProtoReflect() protoreflect.Message
func (*DisconnectRequest) Reset ¶
func (x *DisconnectRequest) Reset()
func (*DisconnectRequest) String ¶
func (x *DisconnectRequest) String() string
type Eap ¶
type Eap struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Ctx *Context `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"` // contains filtered or unexported fields }
func (*Eap) Descriptor
deprecated
func (*Eap) GetPayload ¶
func (*Eap) ProtoMessage ¶
func (*Eap) ProtoMessage()
func (*Eap) ProtoReflect ¶
func (x *Eap) ProtoReflect() protoreflect.Message
type EapCode ¶
type EapCode int32
func (EapCode) Descriptor ¶
func (EapCode) Descriptor() protoreflect.EnumDescriptor
func (EapCode) EnumDescriptor
deprecated
func (EapCode) Number ¶
func (x EapCode) Number() protoreflect.EnumNumber
func (EapCode) Type ¶
func (EapCode) Type() protoreflect.EnumType
type EapIdentity ¶
type EapIdentity struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Ctx *Context `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"` Method uint32 `protobuf:"varint,3,opt,name=method,proto3" json:"method,omitempty"` // contains filtered or unexported fields }
func (*EapIdentity) Descriptor
deprecated
func (*EapIdentity) Descriptor() ([]byte, []int)
Deprecated: Use EapIdentity.ProtoReflect.Descriptor instead.
func (*EapIdentity) GetCtx ¶
func (x *EapIdentity) GetCtx() *Context
func (*EapIdentity) GetMethod ¶
func (x *EapIdentity) GetMethod() uint32
func (*EapIdentity) GetPayload ¶
func (x *EapIdentity) GetPayload() []byte
func (*EapIdentity) ProtoMessage ¶
func (*EapIdentity) ProtoMessage()
func (*EapIdentity) ProtoReflect ¶
func (x *EapIdentity) ProtoReflect() protoreflect.Message
func (*EapIdentity) Reset ¶
func (x *EapIdentity) Reset()
func (*EapIdentity) String ¶
func (x *EapIdentity) String() string
type EapMethodList ¶
type EapMethodList struct { Methods []byte `protobuf:"bytes,1,opt,name=methods,proto3" json:"methods,omitempty"` // contains filtered or unexported fields }
func (*EapMethodList) Descriptor
deprecated
func (*EapMethodList) Descriptor() ([]byte, []int)
Deprecated: Use EapMethodList.ProtoReflect.Descriptor instead.
func (*EapMethodList) GetMethods ¶
func (x *EapMethodList) GetMethods() []byte
func (*EapMethodList) ProtoMessage ¶
func (*EapMethodList) ProtoMessage()
func (*EapMethodList) ProtoReflect ¶
func (x *EapMethodList) ProtoReflect() protoreflect.Message
func (*EapMethodList) Reset ¶
func (x *EapMethodList) Reset()
func (*EapMethodList) String ¶
func (x *EapMethodList) String() string
type EapRouterClient ¶
type EapRouterClient interface { // handle_identity passes Identity EAP payload to corresponding method provider & returns corresponding // EAP result // NOTE: Identity Request is handled by APs & does not involve EAP Authenticator's support HandleIdentity(ctx context.Context, in *EapIdentity, opts ...grpc.CallOption) (*Eap, error) // handle handles passed EAP payload & returns corresponding EAP result Handle(ctx context.Context, in *Eap, opts ...grpc.CallOption) (*Eap, error) // supported_methods returns sorted list (ascending, by type) of registered EAP Provider Methods SupportedMethods(ctx context.Context, in *Void, opts ...grpc.CallOption) (*EapMethodList, error) }
EapRouterClient is the client API for EapRouter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEapRouterClient ¶
func NewEapRouterClient(cc grpc.ClientConnInterface) EapRouterClient
type EapRouterServer ¶
type EapRouterServer interface { // handle_identity passes Identity EAP payload to corresponding method provider & returns corresponding // EAP result // NOTE: Identity Request is handled by APs & does not involve EAP Authenticator's support HandleIdentity(context.Context, *EapIdentity) (*Eap, error) // handle handles passed EAP payload & returns corresponding EAP result Handle(context.Context, *Eap) (*Eap, error) // supported_methods returns sorted list (ascending, by type) of registered EAP Provider Methods SupportedMethods(context.Context, *Void) (*EapMethodList, error) }
EapRouterServer is the server API for EapRouter service.
type EapType ¶
type EapType int32
const ( // Mandatory EAP Method types EapType_Reserved EapType = 0 EapType_Identity EapType = 1 EapType_Notification EapType = 2 EapType_Legacy_Nak EapType = 3 EapType_MD5_Challenge EapType = 4 EapType_Expanded EapType = 254 EapType_Experimental EapType = 255 // EAP Method Authenticator types EapType_TLS EapType = 13 EapType_SIM EapType = 18 EapType_AKA EapType = 23 EapType_AKAPrime EapType = 50 )
func (EapType) Descriptor ¶
func (EapType) Descriptor() protoreflect.EnumDescriptor
func (EapType) EnumDescriptor
deprecated
func (EapType) Number ¶
func (x EapType) Number() protoreflect.EnumNumber
func (EapType) Type ¶
func (EapType) Type() protoreflect.EnumType
type StopRequest ¶
type StopRequest struct { Cause StopRequestTerminateCause `protobuf:"varint,1,opt,name=cause,proto3,enum=aaa.protos.StopRequestTerminateCause" json:"cause,omitempty"` Ctx *Context `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"` // contains filtered or unexported fields }
stop_request - ctx with termination cause: https://tools.ietf.org/html/rfc2866#page-20
func (*StopRequest) Descriptor
deprecated
func (*StopRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopRequest.ProtoReflect.Descriptor instead.
func (*StopRequest) GetCause ¶
func (x *StopRequest) GetCause() StopRequestTerminateCause
func (*StopRequest) GetCtx ¶
func (x *StopRequest) GetCtx() *Context
func (*StopRequest) ProtoMessage ¶
func (*StopRequest) ProtoMessage()
func (*StopRequest) ProtoReflect ¶
func (x *StopRequest) ProtoReflect() protoreflect.Message
func (*StopRequest) Reset ¶
func (x *StopRequest) Reset()
func (*StopRequest) String ¶
func (x *StopRequest) String() string
type StopRequestTerminateCause ¶
type StopRequestTerminateCause int32
const ( StopRequest_UNDEFINED StopRequestTerminateCause = 0 StopRequest_USER_REQUEST StopRequestTerminateCause = 1 // User Request StopRequest_LOST_CARRIER StopRequestTerminateCause = 2 // Lost Carrier StopRequest_LOST_SERVICE StopRequestTerminateCause = 3 // Lost Service StopRequest_IDLE_TIMEOUT StopRequestTerminateCause = 4 // Idle Timeout StopRequest_SESSION_TIMEOUT StopRequestTerminateCause = 5 // Session Timeout StopRequest_ADMIN_RESET StopRequestTerminateCause = 6 // Admin Reset StopRequest_ADMIN_REBOOT StopRequestTerminateCause = 7 // Admin Reboot StopRequest_PORT_ERROR StopRequestTerminateCause = 8 // Port Error StopRequest_NAS_ERROR StopRequestTerminateCause = 9 // NAS Error StopRequest_NAS_REQUEST StopRequestTerminateCause = 10 // NAS Request StopRequest_NAS_REBOOT StopRequestTerminateCause = 11 // NAS Reboot StopRequest_PORT_UNNEEDED StopRequestTerminateCause = 12 // Port Unneeded StopRequest_PORT_PREEMPTED StopRequestTerminateCause = 13 // Port Preempted StopRequest_PORT_SUSPENDED StopRequestTerminateCause = 14 // Port Suspended StopRequest_SERVICE_UNAVAILABLE StopRequestTerminateCause = 15 // Service Unavailable StopRequest_CALLBACK StopRequestTerminateCause = 16 // Callback StopRequest_USER_ERROR StopRequestTerminateCause = 17 // User Error StopRequest_HOST_REQUEST StopRequestTerminateCause = 18 // Host Request )
func (StopRequestTerminateCause) Descriptor ¶
func (StopRequestTerminateCause) Descriptor() protoreflect.EnumDescriptor
func (StopRequestTerminateCause) Enum ¶
func (x StopRequestTerminateCause) Enum() *StopRequestTerminateCause
func (StopRequestTerminateCause) EnumDescriptor
deprecated
func (StopRequestTerminateCause) EnumDescriptor() ([]byte, []int)
Deprecated: Use StopRequestTerminateCause.Descriptor instead.
func (StopRequestTerminateCause) Number ¶
func (x StopRequestTerminateCause) Number() protoreflect.EnumNumber
func (StopRequestTerminateCause) String ¶
func (x StopRequestTerminateCause) String() string
func (StopRequestTerminateCause) Type ¶
func (StopRequestTerminateCause) Type() protoreflect.EnumType
type TerminateSessionRequest ¶
type TerminateSessionRequest struct { RadiusSessionId string `protobuf:"bytes,1,opt,name=radius_session_id,json=radiusSessionId,proto3" json:"radius_session_id,omitempty"` Imsi string `protobuf:"bytes,2,opt,name=imsi,proto3" json:"imsi,omitempty"` // contains filtered or unexported fields }
func (*TerminateSessionRequest) Descriptor
deprecated
func (*TerminateSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use TerminateSessionRequest.ProtoReflect.Descriptor instead.
func (*TerminateSessionRequest) GetImsi ¶
func (x *TerminateSessionRequest) GetImsi() string
func (*TerminateSessionRequest) GetRadiusSessionId ¶
func (x *TerminateSessionRequest) GetRadiusSessionId() string
func (*TerminateSessionRequest) ProtoMessage ¶
func (*TerminateSessionRequest) ProtoMessage()
func (*TerminateSessionRequest) ProtoReflect ¶
func (x *TerminateSessionRequest) ProtoReflect() protoreflect.Message
func (*TerminateSessionRequest) Reset ¶
func (x *TerminateSessionRequest) Reset()
func (*TerminateSessionRequest) String ¶
func (x *TerminateSessionRequest) String() string
type UnimplementedAccountingServer ¶
type UnimplementedAccountingServer struct { }
UnimplementedAccountingServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountingServer) AddSessions ¶
func (*UnimplementedAccountingServer) AddSessions(context.Context, *AddSessionsRequest) (*AcctResp, error)
func (*UnimplementedAccountingServer) CreateSession ¶
func (*UnimplementedAccountingServer) CreateSession(context.Context, *Context) (*CreateSessionResp, error)
func (*UnimplementedAccountingServer) InterimUpdate ¶
func (*UnimplementedAccountingServer) InterimUpdate(context.Context, *UpdateRequest) (*AcctResp, error)
func (*UnimplementedAccountingServer) Stop ¶
func (*UnimplementedAccountingServer) Stop(context.Context, *StopRequest) (*AcctResp, error)
func (*UnimplementedAccountingServer) TerminateSession ¶
func (*UnimplementedAccountingServer) TerminateSession(context.Context, *TerminateSessionRequest) (*AcctResp, error)
type UnimplementedAuthenticatorServer ¶
type UnimplementedAuthenticatorServer struct { }
UnimplementedAuthenticatorServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthenticatorServer) HandleIdentity ¶
func (*UnimplementedAuthenticatorServer) HandleIdentity(context.Context, *EapIdentity) (*Eap, error)
func (*UnimplementedAuthenticatorServer) SupportedMethods ¶
func (*UnimplementedAuthenticatorServer) SupportedMethods(context.Context, *Void) (*EapMethodList, error)
type UnimplementedAuthorizationServer ¶
type UnimplementedAuthorizationServer struct { }
UnimplementedAuthorizationServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthorizationServer) Change ¶
func (*UnimplementedAuthorizationServer) Change(context.Context, *ChangeRequest) (*CoaResponse, error)
func (*UnimplementedAuthorizationServer) Disconnect ¶
func (*UnimplementedAuthorizationServer) Disconnect(context.Context, *DisconnectRequest) (*CoaResponse, error)
type UnimplementedEapRouterServer ¶
type UnimplementedEapRouterServer struct { }
UnimplementedEapRouterServer can be embedded to have forward compatible implementations.
func (*UnimplementedEapRouterServer) HandleIdentity ¶
func (*UnimplementedEapRouterServer) HandleIdentity(context.Context, *EapIdentity) (*Eap, error)
func (*UnimplementedEapRouterServer) SupportedMethods ¶
func (*UnimplementedEapRouterServer) SupportedMethods(context.Context, *Void) (*EapMethodList, error)
type UpdateRequest ¶
type UpdateRequest struct { OctetsIn uint32 `protobuf:"varint,1,opt,name=octets_in,json=octetsIn,proto3" json:"octets_in,omitempty"` OctetsOut uint32 `protobuf:"varint,2,opt,name=octets_out,json=octetsOut,proto3" json:"octets_out,omitempty"` PacketsIn uint32 `protobuf:"varint,3,opt,name=packets_in,json=packetsIn,proto3" json:"packets_in,omitempty"` PacketsOut uint32 `protobuf:"varint,4,opt,name=packets_out,json=packetsOut,proto3" json:"packets_out,omitempty"` Ctx *Context `protobuf:"bytes,5,opt,name=ctx,proto3" json:"ctx,omitempty"` // contains filtered or unexported fields }
update_request with usages & included context
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetCtx ¶
func (x *UpdateRequest) GetCtx() *Context
func (*UpdateRequest) GetOctetsIn ¶
func (x *UpdateRequest) GetOctetsIn() uint32
func (*UpdateRequest) GetOctetsOut ¶
func (x *UpdateRequest) GetOctetsOut() uint32
func (*UpdateRequest) GetPacketsIn ¶
func (x *UpdateRequest) GetPacketsIn() uint32
func (*UpdateRequest) GetPacketsOut ¶
func (x *UpdateRequest) GetPacketsOut() uint32
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type Void ¶
type Void struct {
// contains filtered or unexported fields
}
func (*Void) Descriptor
deprecated
func (*Void) ProtoMessage ¶
func (*Void) ProtoMessage()
func (*Void) ProtoReflect ¶
func (x *Void) ProtoReflect() protoreflect.Message