Documentation ¶
Index ¶
- Variables
- func RegisterCellServiceServer(s grpc.ServiceRegistrar, srv CellServiceServer)
- type Cell
- func (*Cell) Descriptor() ([]byte, []int)deprecated
- func (x *Cell) GetCfo() float64
- func (x *Cell) GetCid() int64
- func (x *Cell) GetClassification() CellLabel
- func (x *Cell) GetCreatedAt() string
- func (x *Cell) GetEarfcn() int64
- func (x *Cell) GetEnodebId() int64
- func (x *Cell) GetEstDist() float64
- func (x *Cell) GetFrequency() float64
- func (x *Cell) GetId() string
- func (x *Cell) GetLocation() *CellLocation
- func (x *Cell) GetMcc() int64
- func (x *Cell) GetMeta() *CellMeta
- func (x *Cell) GetMnc() int64
- func (x *Cell) GetPhyid() int64
- func (x *Cell) GetRawSib1() string
- func (x *Cell) GetRsrp() float64
- func (x *Cell) GetRsrq() float64
- func (x *Cell) GetRssi() float64
- func (x *Cell) GetSectorId() int64
- func (x *Cell) GetSnr() float64
- func (x *Cell) GetSource() CellSource
- func (x *Cell) GetSuspiciousness() int64
- func (x *Cell) GetTac() int64
- func (x *Cell) GetTimestamp() int64
- func (x *Cell) GetTxPwr() float64
- func (*Cell) ProtoMessage()
- func (x *Cell) ProtoReflect() protoreflect.Message
- func (x *Cell) Reset()
- func (x *Cell) String() string
- type CellLabel
- type CellList
- type CellLocation
- func (*CellLocation) Descriptor() ([]byte, []int)deprecated
- func (x *CellLocation) GetLat() float64
- func (x *CellLocation) GetLon() float64
- func (*CellLocation) ProtoMessage()
- func (x *CellLocation) ProtoReflect() protoreflect.Message
- func (x *CellLocation) Reset()
- func (x *CellLocation) String() string
- type CellMeta
- func (*CellMeta) Descriptor() ([]byte, []int)deprecated
- func (x *CellMeta) GetDescription() string
- func (x *CellMeta) GetName() string
- func (x *CellMeta) GetNotes() string
- func (x *CellMeta) GetOperator() string
- func (*CellMeta) ProtoMessage()
- func (x *CellMeta) ProtoReflect() protoreflect.Message
- func (x *CellMeta) Reset()
- func (x *CellMeta) String() string
- type CellQueryParams
- func (*CellQueryParams) Descriptor() ([]byte, []int)deprecated
- func (x *CellQueryParams) GetCell() *Cell
- func (x *CellQueryParams) GetLimit() int64
- func (x *CellQueryParams) GetPage() int64
- func (*CellQueryParams) ProtoMessage()
- func (x *CellQueryParams) ProtoReflect() protoreflect.Message
- func (x *CellQueryParams) Reset()
- func (x *CellQueryParams) String() string
- type CellServiceClient
- type CellServiceServer
- type CellService_StreamClient
- type CellService_StreamServer
- type CellSource
- type UnimplementedCellServiceServer
- func (UnimplementedCellServiceServer) Create(context.Context, *Cell) (*v1.GenericResponse, error)
- func (UnimplementedCellServiceServer) Delete(context.Context, *Cell) (*v1.GenericResponse, error)
- func (UnimplementedCellServiceServer) Get(context.Context, *CellQueryParams) (*Cell, error)
- func (UnimplementedCellServiceServer) List(context.Context, *CellQueryParams) (*CellList, error)
- func (UnimplementedCellServiceServer) Stream(*CellQueryParams, CellService_StreamServer) error
- func (UnimplementedCellServiceServer) Update(context.Context, *Cell) (*v1.GenericResponse, error)
- type UnsafeCellServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( CellLabel_name = map[int32]string{ 0: "CELL_LABEL_UNSPECIFIED", 1: "CELL_LABEL_UNKNOWN", 2: "CELL_LABEL_LEGITIMATE", 3: "CELL_LABEL_SMALL_CELL", 4: "CELL_LABEL_SUSPICIOUS", 5: "CELL_LABEL_CSS", } CellLabel_value = map[string]int32{ "CELL_LABEL_UNSPECIFIED": 0, "CELL_LABEL_UNKNOWN": 1, "CELL_LABEL_LEGITIMATE": 2, "CELL_LABEL_SMALL_CELL": 3, "CELL_LABEL_SUSPICIOUS": 4, "CELL_LABEL_CSS": 5, } )
Enum value maps for CellLabel.
var ( CellSource_name = map[int32]string{ 0: "CELL_SOURCE_UNSPECIFIED", 1: "CELL_SOURCE_UNKNOWN", 2: "CELL_SOURCE_WIGGLE", 3: "CELL_SOURCE_OPENCELLID", } CellSource_value = map[string]int32{ "CELL_SOURCE_UNSPECIFIED": 0, "CELL_SOURCE_UNKNOWN": 1, "CELL_SOURCE_WIGGLE": 2, "CELL_SOURCE_OPENCELLID": 3, } )
Enum value maps for CellSource.
var CellService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "c.cell.v1.CellService", HandlerType: (*CellServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _CellService_Create_Handler, }, { MethodName: "Update", Handler: _CellService_Update_Handler, }, { MethodName: "Get", Handler: _CellService_Get_Handler, }, { MethodName: "List", Handler: _CellService_List_Handler, }, { MethodName: "Delete", Handler: _CellService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Stream", Handler: _CellService_Stream_Handler, ServerStreams: true, }, }, Metadata: "flyinghorses/cell/v1/cell.proto", }
CellService_ServiceDesc is the grpc.ServiceDesc for CellService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_flyinghorses_cell_v1_cell_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCellServiceServer ¶
func RegisterCellServiceServer(s grpc.ServiceRegistrar, srv CellServiceServer)
Types ¶
type Cell ¶
type Cell struct { // Mobile Country Code Mcc int64 `protobuf:"varint,1,opt,name=mcc,proto3" json:"mcc,omitempty"` // Mobile Network Code Mnc int64 `protobuf:"varint,2,opt,name=mnc,proto3" json:"mnc,omitempty"` // Tracking Area Code Tac int64 `protobuf:"varint,3,opt,name=tac,proto3" json:"tac,omitempty"` // Cell ID Cid int64 `protobuf:"varint,4,opt,name=cid,proto3" json:"cid,omitempty"` // PHY-layer Cell ID Phyid int64 `protobuf:"varint,5,opt,name=phyid,proto3" json:"phyid,omitempty"` // E-UTRA Absolute Radio Frequency Channel Earfcn int64 `protobuf:"varint,6,opt,name=earfcn,proto3" json:"earfcn,omitempty"` // Received Signal Strength Indicator Rssi float64 `protobuf:"fixed64,7,opt,name=rssi,proto3" json:"rssi,omitempty"` // Transmitting Frequency Frequency float64 `protobuf:"fixed64,8,opt,name=frequency,proto3" json:"frequency,omitempty"` // Enodeb ID EnodebId int64 `protobuf:"varint,9,opt,name=enodeb_id,json=enodebId,proto3" json:"enodeb_id,omitempty"` // Sector ID SectorId int64 `protobuf:"varint,10,opt,name=sector_id,json=sectorId,proto3" json:"sector_id,omitempty"` // Carrier Frequency Offset Cfo float64 `protobuf:"fixed64,11,opt,name=cfo,proto3" json:"cfo,omitempty"` // Reference Signal Received Quality (N*(RSRP/RSSI)) Rsrq float64 `protobuf:"fixed64,12,opt,name=rsrq,proto3" json:"rsrq,omitempty"` // Signal Noise Ratio Snr float64 `protobuf:"fixed64,13,opt,name=snr,proto3" json:"snr,omitempty"` // Reference Signal Received Power Rsrp float64 `protobuf:"fixed64,14,opt,name=rsrp,proto3" json:"rsrp,omitempty"` // Transmitting Power TxPwr float64 `protobuf:"fixed64,15,opt,name=tx_pwr,json=txPwr,proto3" json:"tx_pwr,omitempty"` // Estimated Distance EstDist float64 `protobuf:"fixed64,16,opt,name=est_dist,json=estDist,proto3" json:"est_dist,omitempty"` // Raw Cell Access Related Information RawSib1 string `protobuf:"bytes,17,opt,name=raw_sib1,json=rawSib1,proto3" json:"raw_sib1,omitempty"` // Timestamp Timestamp int64 `protobuf:"varint,18,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Cell ID Id string `protobuf:"bytes,19,opt,name=id,proto3" json:"id,omitempty"` // Cell Created at Datetim CreatedAt string `protobuf:"bytes,20,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Cell Suspiciousness (0-100) Suspiciousness int64 `protobuf:"varint,21,opt,name=suspiciousness,proto3" json:"suspiciousness,omitempty"` // Cell Location Location *CellLocation `protobuf:"bytes,22,opt,name=location,proto3" json:"location,omitempty"` // Cell Classified Label Classification CellLabel `protobuf:"varint,23,opt,name=classification,proto3,enum=c.cell.v1.CellLabel" json:"classification,omitempty"` // Cell Source Source CellSource `protobuf:"varint,24,opt,name=source,proto3,enum=c.cell.v1.CellSource" json:"source,omitempty"` // Cell Meta Meta *CellMeta `protobuf:"bytes,25,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*Cell) Descriptor
deprecated
func (*Cell) GetClassification ¶
func (*Cell) GetCreatedAt ¶
func (*Cell) GetEnodebId ¶
func (*Cell) GetEstDist ¶
func (*Cell) GetFrequency ¶
func (*Cell) GetLocation ¶
func (x *Cell) GetLocation() *CellLocation
func (*Cell) GetRawSib1 ¶
func (*Cell) GetSectorId ¶
func (*Cell) GetSource ¶
func (x *Cell) GetSource() CellSource
func (*Cell) GetSuspiciousness ¶
func (*Cell) GetTimestamp ¶
func (*Cell) ProtoMessage ¶
func (*Cell) ProtoMessage()
func (*Cell) ProtoReflect ¶
func (x *Cell) ProtoReflect() protoreflect.Message
type CellLabel ¶
type CellLabel int32
func (CellLabel) Descriptor ¶
func (CellLabel) Descriptor() protoreflect.EnumDescriptor
func (CellLabel) EnumDescriptor
deprecated
func (CellLabel) Number ¶
func (x CellLabel) Number() protoreflect.EnumNumber
func (CellLabel) Type ¶
func (CellLabel) Type() protoreflect.EnumType
type CellList ¶
type CellList struct { Data []*Cell `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` Pagination *v1.Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*CellList) Descriptor
deprecated
func (*CellList) GetPagination ¶
func (x *CellList) GetPagination() *v1.Pagination
func (*CellList) ProtoMessage ¶
func (*CellList) ProtoMessage()
func (*CellList) ProtoReflect ¶
func (x *CellList) ProtoReflect() protoreflect.Message
type CellLocation ¶
type CellLocation struct { // Approximate Latitude obtained via GPSD Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"` // Approximate Longitude obtained via GPSD Lon float64 `protobuf:"fixed64,2,opt,name=lon,proto3" json:"lon,omitempty"` // contains filtered or unexported fields }
func (*CellLocation) Descriptor
deprecated
func (*CellLocation) Descriptor() ([]byte, []int)
Deprecated: Use CellLocation.ProtoReflect.Descriptor instead.
func (*CellLocation) GetLat ¶
func (x *CellLocation) GetLat() float64
func (*CellLocation) GetLon ¶
func (x *CellLocation) GetLon() float64
func (*CellLocation) ProtoMessage ¶
func (*CellLocation) ProtoMessage()
func (*CellLocation) ProtoReflect ¶
func (x *CellLocation) ProtoReflect() protoreflect.Message
func (*CellLocation) Reset ¶
func (x *CellLocation) Reset()
func (*CellLocation) String ¶
func (x *CellLocation) String() string
type CellMeta ¶
type CellMeta struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` Operator string `protobuf:"bytes,4,opt,name=operator,proto3" json:"operator,omitempty"` // contains filtered or unexported fields }
func (*CellMeta) Descriptor
deprecated
func (*CellMeta) GetDescription ¶
func (*CellMeta) GetOperator ¶
func (*CellMeta) ProtoMessage ¶
func (*CellMeta) ProtoMessage()
func (*CellMeta) ProtoReflect ¶
func (x *CellMeta) ProtoReflect() protoreflect.Message
type CellQueryParams ¶
type CellQueryParams struct { Cell *Cell `protobuf:"bytes,1,opt,name=cell,proto3" json:"cell,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Page int64 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*CellQueryParams) Descriptor
deprecated
func (*CellQueryParams) Descriptor() ([]byte, []int)
Deprecated: Use CellQueryParams.ProtoReflect.Descriptor instead.
func (*CellQueryParams) GetCell ¶
func (x *CellQueryParams) GetCell() *Cell
func (*CellQueryParams) GetLimit ¶
func (x *CellQueryParams) GetLimit() int64
func (*CellQueryParams) GetPage ¶
func (x *CellQueryParams) GetPage() int64
func (*CellQueryParams) ProtoMessage ¶
func (*CellQueryParams) ProtoMessage()
func (*CellQueryParams) ProtoReflect ¶
func (x *CellQueryParams) ProtoReflect() protoreflect.Message
func (*CellQueryParams) Reset ¶
func (x *CellQueryParams) Reset()
func (*CellQueryParams) String ¶
func (x *CellQueryParams) String() string
type CellServiceClient ¶
type CellServiceClient interface { Stream(ctx context.Context, in *CellQueryParams, opts ...grpc.CallOption) (CellService_StreamClient, error) Create(ctx context.Context, in *Cell, opts ...grpc.CallOption) (*v1.GenericResponse, error) Update(ctx context.Context, in *Cell, opts ...grpc.CallOption) (*v1.GenericResponse, error) Get(ctx context.Context, in *CellQueryParams, opts ...grpc.CallOption) (*Cell, error) List(ctx context.Context, in *CellQueryParams, opts ...grpc.CallOption) (*CellList, error) Delete(ctx context.Context, in *Cell, opts ...grpc.CallOption) (*v1.GenericResponse, error) }
CellServiceClient is the client API for CellService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCellServiceClient ¶
func NewCellServiceClient(cc grpc.ClientConnInterface) CellServiceClient
type CellServiceServer ¶
type CellServiceServer interface { Stream(*CellQueryParams, CellService_StreamServer) error Create(context.Context, *Cell) (*v1.GenericResponse, error) Update(context.Context, *Cell) (*v1.GenericResponse, error) Get(context.Context, *CellQueryParams) (*Cell, error) List(context.Context, *CellQueryParams) (*CellList, error) Delete(context.Context, *Cell) (*v1.GenericResponse, error) }
CellServiceServer is the server API for CellService service. All implementations should embed UnimplementedCellServiceServer for forward compatibility
type CellService_StreamClient ¶
type CellService_StreamClient interface { Recv() (*Cell, error) grpc.ClientStream }
type CellService_StreamServer ¶
type CellService_StreamServer interface { Send(*Cell) error grpc.ServerStream }
type CellSource ¶
type CellSource int32
const ( CellSource_CELL_SOURCE_UNSPECIFIED CellSource = 0 CellSource_CELL_SOURCE_UNKNOWN CellSource = 1 CellSource_CELL_SOURCE_WIGGLE CellSource = 2 CellSource_CELL_SOURCE_OPENCELLID CellSource = 3 )
func (CellSource) Descriptor ¶
func (CellSource) Descriptor() protoreflect.EnumDescriptor
func (CellSource) Enum ¶
func (x CellSource) Enum() *CellSource
func (CellSource) EnumDescriptor
deprecated
func (CellSource) EnumDescriptor() ([]byte, []int)
Deprecated: Use CellSource.Descriptor instead.
func (CellSource) Number ¶
func (x CellSource) Number() protoreflect.EnumNumber
func (CellSource) String ¶
func (x CellSource) String() string
func (CellSource) Type ¶
func (CellSource) Type() protoreflect.EnumType
type UnimplementedCellServiceServer ¶
type UnimplementedCellServiceServer struct { }
UnimplementedCellServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedCellServiceServer) Create ¶
func (UnimplementedCellServiceServer) Create(context.Context, *Cell) (*v1.GenericResponse, error)
func (UnimplementedCellServiceServer) Delete ¶
func (UnimplementedCellServiceServer) Delete(context.Context, *Cell) (*v1.GenericResponse, error)
func (UnimplementedCellServiceServer) Get ¶
func (UnimplementedCellServiceServer) Get(context.Context, *CellQueryParams) (*Cell, error)
func (UnimplementedCellServiceServer) List ¶
func (UnimplementedCellServiceServer) List(context.Context, *CellQueryParams) (*CellList, error)
func (UnimplementedCellServiceServer) Stream ¶
func (UnimplementedCellServiceServer) Stream(*CellQueryParams, CellService_StreamServer) error
func (UnimplementedCellServiceServer) Update ¶
func (UnimplementedCellServiceServer) Update(context.Context, *Cell) (*v1.GenericResponse, error)
type UnsafeCellServiceServer ¶
type UnsafeCellServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCellServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CellServiceServer will result in compilation errors.