protos

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ue_sim_proto protoreflect.FileDescriptor

Functions

func RegisterUESimServer

func RegisterUESimServer(s *grpc.Server, srv UESimServer)

Types

type AuthenticateRequest

type AuthenticateRequest struct {
	Imsi            string `protobuf:"bytes,1,opt,name=imsi,proto3" json:"imsi,omitempty"`
	CalledStationID string `protobuf:"bytes,2,opt,name=calledStationID,proto3" json:"calledStationID,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateRequest) Descriptor deprecated

func (*AuthenticateRequest) Descriptor() ([]byte, []int)

Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.

func (*AuthenticateRequest) GetCalledStationID

func (x *AuthenticateRequest) GetCalledStationID() string

func (*AuthenticateRequest) GetImsi

func (x *AuthenticateRequest) GetImsi() string

func (*AuthenticateRequest) ProtoMessage

func (*AuthenticateRequest) ProtoMessage()

func (*AuthenticateRequest) ProtoReflect

func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message

func (*AuthenticateRequest) Reset

func (x *AuthenticateRequest) Reset()

func (*AuthenticateRequest) String

func (x *AuthenticateRequest) String() string

type AuthenticateResponse

type AuthenticateResponse struct {
	RadiusPacket []byte `protobuf:"bytes,1,opt,name=radiusPacket,proto3" json:"radiusPacket,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateResponse) Descriptor deprecated

func (*AuthenticateResponse) Descriptor() ([]byte, []int)

Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.

func (*AuthenticateResponse) GetRadiusPacket

func (x *AuthenticateResponse) GetRadiusPacket() []byte

func (*AuthenticateResponse) ProtoMessage

func (*AuthenticateResponse) ProtoMessage()

func (*AuthenticateResponse) ProtoReflect

func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message

func (*AuthenticateResponse) Reset

func (x *AuthenticateResponse) Reset()

func (*AuthenticateResponse) String

func (x *AuthenticateResponse) String() string

type DisconnectRequest

type DisconnectRequest struct {
	Imsi            string `protobuf:"bytes,1,opt,name=imsi,proto3" json:"imsi,omitempty"`
	CalledStationID string `protobuf:"bytes,2,opt,name=calledStationID,proto3" json:"calledStationID,omitempty"`
	// contains filtered or unexported fields
}

func (*DisconnectRequest) Descriptor deprecated

func (*DisconnectRequest) Descriptor() ([]byte, []int)

Deprecated: Use DisconnectRequest.ProtoReflect.Descriptor instead.

func (*DisconnectRequest) GetCalledStationID

func (x *DisconnectRequest) GetCalledStationID() string

func (*DisconnectRequest) GetImsi

func (x *DisconnectRequest) GetImsi() string

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 DisconnectResponse

type DisconnectResponse struct {
	RadiusPacket []byte `protobuf:"bytes,1,opt,name=radiusPacket,proto3" json:"radiusPacket,omitempty"`
	// contains filtered or unexported fields
}

func (*DisconnectResponse) Descriptor deprecated

func (*DisconnectResponse) Descriptor() ([]byte, []int)

Deprecated: Use DisconnectResponse.ProtoReflect.Descriptor instead.

func (*DisconnectResponse) GetRadiusPacket

func (x *DisconnectResponse) GetRadiusPacket() []byte

func (*DisconnectResponse) ProtoMessage

func (*DisconnectResponse) ProtoMessage()

func (*DisconnectResponse) ProtoReflect

func (x *DisconnectResponse) ProtoReflect() protoreflect.Message

func (*DisconnectResponse) Reset

func (x *DisconnectResponse) Reset()

func (*DisconnectResponse) String

func (x *DisconnectResponse) String() string

type GenTrafficRequest

type GenTrafficRequest struct {
	Imsi                    string                `protobuf:"bytes,1,opt,name=imsi,proto3" json:"imsi,omitempty"`
	Volume                  *wrappers.StringValue `protobuf:"bytes,2,opt,name=volume,proto3" json:"volume,omitempty"`
	Bitrate                 *wrappers.StringValue `protobuf:"bytes,3,opt,name=bitrate,proto3" json:"bitrate,omitempty"`
	TimeInSecs              uint64                `protobuf:"varint,4,opt,name=timeInSecs,proto3" json:"timeInSecs,omitempty"`
	ReportingIntervalInSecs uint64                `protobuf:"varint,5,opt,name=reportingIntervalInSecs,proto3" json:"reportingIntervalInSecs,omitempty"`
	ReverseMode             bool                  `protobuf:"varint,6,opt,name=reverseMode,proto3" json:"reverseMode,omitempty"`
	// Configure a max timeout iperf client will run
	Timeout uint32 `protobuf:"varint,7,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// Enables/Disable a function to check if server is alive before sending any traffic
	DisableServerReachabilityCheck bool `protobuf:"varint,8,opt,name=disableServerReachabilityCheck,proto3" json:"disableServerReachabilityCheck,omitempty"`
	// contains filtered or unexported fields
}

func (*GenTrafficRequest) Descriptor deprecated

func (*GenTrafficRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenTrafficRequest.ProtoReflect.Descriptor instead.

func (*GenTrafficRequest) GetBitrate

func (x *GenTrafficRequest) GetBitrate() *wrappers.StringValue

func (*GenTrafficRequest) GetDisableServerReachabilityCheck

func (x *GenTrafficRequest) GetDisableServerReachabilityCheck() bool

func (*GenTrafficRequest) GetImsi

func (x *GenTrafficRequest) GetImsi() string

func (*GenTrafficRequest) GetReportingIntervalInSecs

func (x *GenTrafficRequest) GetReportingIntervalInSecs() uint64

func (*GenTrafficRequest) GetReverseMode

func (x *GenTrafficRequest) GetReverseMode() bool

func (*GenTrafficRequest) GetTimeInSecs

func (x *GenTrafficRequest) GetTimeInSecs() uint64

func (*GenTrafficRequest) GetTimeout

func (x *GenTrafficRequest) GetTimeout() uint32

func (*GenTrafficRequest) GetVolume

func (x *GenTrafficRequest) GetVolume() *wrappers.StringValue

func (*GenTrafficRequest) ProtoMessage

func (*GenTrafficRequest) ProtoMessage()

func (*GenTrafficRequest) ProtoReflect

func (x *GenTrafficRequest) ProtoReflect() protoreflect.Message

func (*GenTrafficRequest) Reset

func (x *GenTrafficRequest) Reset()

func (*GenTrafficRequest) String

func (x *GenTrafficRequest) String() string

type GenTrafficResponse

type GenTrafficResponse struct {
	Output []byte `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*GenTrafficResponse) Descriptor deprecated

func (*GenTrafficResponse) Descriptor() ([]byte, []int)

Deprecated: Use GenTrafficResponse.ProtoReflect.Descriptor instead.

func (*GenTrafficResponse) GetOutput

func (x *GenTrafficResponse) GetOutput() []byte

func (*GenTrafficResponse) ProtoMessage

func (*GenTrafficResponse) ProtoMessage()

func (*GenTrafficResponse) ProtoReflect

func (x *GenTrafficResponse) ProtoReflect() protoreflect.Message

func (*GenTrafficResponse) Reset

func (x *GenTrafficResponse) Reset()

func (*GenTrafficResponse) String

func (x *GenTrafficResponse) String() string

type UEConfig

type UEConfig struct {

	// Unique identifier for the UE.
	Imsi string `protobuf:"bytes,1,opt,name=imsi,proto3" json:"imsi,omitempty"`
	// Authentication key (k).
	AuthKey []byte `protobuf:"bytes,2,opt,name=auth_key,json=authKey,proto3" json:"auth_key,omitempty"`
	// Operator configuration field (Op) signed with authentication key (k).
	AuthOpc []byte `protobuf:"bytes,3,opt,name=auth_opc,json=authOpc,proto3" json:"auth_opc,omitempty"`
	// Sequence Number (SEQ).
	Seq uint64 `protobuf:"varint,4,opt,name=seq,proto3" json:"seq,omitempty"`
	// contains filtered or unexported fields
}

-------------------------------------------------------------------------- UE config --------------------------------------------------------------------------

func (*UEConfig) Descriptor deprecated

func (*UEConfig) Descriptor() ([]byte, []int)

Deprecated: Use UEConfig.ProtoReflect.Descriptor instead.

func (*UEConfig) GetAuthKey

func (x *UEConfig) GetAuthKey() []byte

func (*UEConfig) GetAuthOpc

func (x *UEConfig) GetAuthOpc() []byte

func (*UEConfig) GetImsi

func (x *UEConfig) GetImsi() string

func (*UEConfig) GetSeq

func (x *UEConfig) GetSeq() uint64

func (*UEConfig) ProtoMessage

func (*UEConfig) ProtoMessage()

func (*UEConfig) ProtoReflect

func (x *UEConfig) ProtoReflect() protoreflect.Message

func (*UEConfig) Reset

func (x *UEConfig) Reset()

func (*UEConfig) String

func (x *UEConfig) String() string

type UESimClient

type UESimClient interface {
	// Adds a new UE to the store.
	//
	AddUE(ctx context.Context, in *UEConfig, opts ...grpc.CallOption) (*protos.Void, error)
	// Triggers an authentication for the UE with the specified imsi.
	//
	Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
	Disconnect(ctx context.Context, in *DisconnectRequest, opts ...grpc.CallOption) (*DisconnectResponse, error)
	// Triggers iperf traffic towards the CWAG
	GenTraffic(ctx context.Context, in *GenTrafficRequest, opts ...grpc.CallOption) (*GenTrafficResponse, error)
}

UESimClient is the client API for UESim service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUESimClient

func NewUESimClient(cc grpc.ClientConnInterface) UESimClient

type UESimServer

type UESimServer interface {
	// Adds a new UE to the store.
	//
	AddUE(context.Context, *UEConfig) (*protos.Void, error)
	// Triggers an authentication for the UE with the specified imsi.
	//
	Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
	Disconnect(context.Context, *DisconnectRequest) (*DisconnectResponse, error)
	// Triggers iperf traffic towards the CWAG
	GenTraffic(context.Context, *GenTrafficRequest) (*GenTrafficResponse, error)
}

UESimServer is the server API for UESim service.

type UnimplementedUESimServer

type UnimplementedUESimServer struct {
}

UnimplementedUESimServer can be embedded to have forward compatible implementations.

func (*UnimplementedUESimServer) AddUE

func (*UnimplementedUESimServer) Authenticate

func (*UnimplementedUESimServer) Disconnect

func (*UnimplementedUESimServer) GenTraffic

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL