cellv1

package
v0.0.0-...-d78745c Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Cell.ProtoReflect.Descriptor instead.

func (*Cell) GetCfo

func (x *Cell) GetCfo() float64

func (*Cell) GetCid

func (x *Cell) GetCid() int64

func (*Cell) GetClassification

func (x *Cell) GetClassification() CellLabel

func (*Cell) GetCreatedAt

func (x *Cell) GetCreatedAt() string

func (*Cell) GetEarfcn

func (x *Cell) GetEarfcn() int64

func (*Cell) GetEnodebId

func (x *Cell) GetEnodebId() int64

func (*Cell) GetEstDist

func (x *Cell) GetEstDist() float64

func (*Cell) GetFrequency

func (x *Cell) GetFrequency() float64

func (*Cell) GetId

func (x *Cell) GetId() string

func (*Cell) GetLocation

func (x *Cell) GetLocation() *CellLocation

func (*Cell) GetMcc

func (x *Cell) GetMcc() int64

func (*Cell) GetMeta

func (x *Cell) GetMeta() *CellMeta

func (*Cell) GetMnc

func (x *Cell) GetMnc() int64

func (*Cell) GetPhyid

func (x *Cell) GetPhyid() int64

func (*Cell) GetRawSib1

func (x *Cell) GetRawSib1() string

func (*Cell) GetRsrp

func (x *Cell) GetRsrp() float64

func (*Cell) GetRsrq

func (x *Cell) GetRsrq() float64

func (*Cell) GetRssi

func (x *Cell) GetRssi() float64

func (*Cell) GetSectorId

func (x *Cell) GetSectorId() int64

func (*Cell) GetSnr

func (x *Cell) GetSnr() float64

func (*Cell) GetSource

func (x *Cell) GetSource() CellSource

func (*Cell) GetSuspiciousness

func (x *Cell) GetSuspiciousness() int64

func (*Cell) GetTac

func (x *Cell) GetTac() int64

func (*Cell) GetTimestamp

func (x *Cell) GetTimestamp() int64

func (*Cell) GetTxPwr

func (x *Cell) GetTxPwr() float64

func (*Cell) ProtoMessage

func (*Cell) ProtoMessage()

func (*Cell) ProtoReflect

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

func (*Cell) Reset

func (x *Cell) Reset()

func (*Cell) String

func (x *Cell) String() string

type CellLabel

type CellLabel int32
const (
	CellLabel_CELL_LABEL_UNSPECIFIED CellLabel = 0
	CellLabel_CELL_LABEL_UNKNOWN     CellLabel = 1
	CellLabel_CELL_LABEL_LEGITIMATE  CellLabel = 2
	CellLabel_CELL_LABEL_SMALL_CELL  CellLabel = 3
	CellLabel_CELL_LABEL_SUSPICIOUS  CellLabel = 4
	CellLabel_CELL_LABEL_CSS         CellLabel = 5
)

func (CellLabel) Descriptor

func (CellLabel) Descriptor() protoreflect.EnumDescriptor

func (CellLabel) Enum

func (x CellLabel) Enum() *CellLabel

func (CellLabel) EnumDescriptor deprecated

func (CellLabel) EnumDescriptor() ([]byte, []int)

Deprecated: Use CellLabel.Descriptor instead.

func (CellLabel) Number

func (x CellLabel) Number() protoreflect.EnumNumber

func (CellLabel) String

func (x CellLabel) String() string

func (CellLabel) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use CellList.ProtoReflect.Descriptor instead.

func (*CellList) GetData

func (x *CellList) GetData() []*Cell

func (*CellList) GetPagination

func (x *CellList) GetPagination() *v1.Pagination

func (*CellList) ProtoMessage

func (*CellList) ProtoMessage()

func (*CellList) ProtoReflect

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

func (*CellList) Reset

func (x *CellList) Reset()

func (*CellList) String

func (x *CellList) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use CellMeta.ProtoReflect.Descriptor instead.

func (*CellMeta) GetDescription

func (x *CellMeta) GetDescription() string

func (*CellMeta) GetName

func (x *CellMeta) GetName() string

func (*CellMeta) GetNotes

func (x *CellMeta) GetNotes() string

func (*CellMeta) GetOperator

func (x *CellMeta) GetOperator() string

func (*CellMeta) ProtoMessage

func (*CellMeta) ProtoMessage()

func (*CellMeta) ProtoReflect

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

func (*CellMeta) Reset

func (x *CellMeta) Reset()

func (*CellMeta) String

func (x *CellMeta) String() string

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.

type CellServiceServer

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

type UnimplementedCellServiceServer

type UnimplementedCellServiceServer struct {
}

UnimplementedCellServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedCellServiceServer) Create

func (UnimplementedCellServiceServer) Delete

func (UnimplementedCellServiceServer) Get

func (UnimplementedCellServiceServer) List

func (UnimplementedCellServiceServer) Stream

func (UnimplementedCellServiceServer) Update

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.

Jump to

Keyboard shortcuts

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