Documentation ¶
Index ¶
- Constants
- Variables
- func DecodePlmnID(plmnID string) (mcc string, mnc string)
- func EncodePlmnID(mcc string, mnc string) string
- func PlmnIDToString(plmnID PlmnID) string
- func Uint24ToUint32(val []byte) uint32
- type CRNTI
- type Cell
- func (*Cell) Descriptor() ([]byte, []int)
- func (m *Cell) GetColor() string
- func (m *Cell) GetCrntiIndex() uint32
- func (m *Cell) GetCrntiMap() map[CRNTI]IMSI
- func (m *Cell) GetECGI() ECGI
- func (m *Cell) GetLocation() *Point
- func (m *Cell) GetMaxUEs() uint32
- func (m *Cell) GetNeighbors() []ECGI
- func (m *Cell) GetPort() uint32
- func (m *Cell) GetSector() *Sector
- func (m *Cell) GetTxPowerdB() float64
- func (m *Cell) Marshal() (dAtA []byte, err error)
- func (m *Cell) MarshalTo(dAtA []byte) (int, error)
- func (m *Cell) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Cell) ProtoMessage()
- func (m *Cell) Reset()
- func (m *Cell) Size() (n int)
- func (m *Cell) String() string
- func (m *Cell) Unmarshal(dAtA []byte) error
- func (m *Cell) XXX_DiscardUnknown()
- func (m *Cell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cell) XXX_Merge(src proto.Message)
- func (m *Cell) XXX_Size() int
- func (m *Cell) XXX_Unmarshal(b []byte) error
- type CellID
- type ECGI
- type ECI
- type EnbID
- type GEnbID
- type IMSI
- type MSIN
- type MapLayout
- func (*MapLayout) Descriptor() ([]byte, []int)
- func (m *MapLayout) GetCenter() *Point
- func (m *MapLayout) GetCurrentRoutes() uint32
- func (m *MapLayout) GetFade() bool
- func (m *MapLayout) GetLocationsScale() float32
- func (m *MapLayout) GetMaxUes() uint32
- func (m *MapLayout) GetMinUes() uint32
- func (m *MapLayout) GetShowPower() bool
- func (m *MapLayout) GetShowRoutes() bool
- func (m *MapLayout) GetZoom() float32
- func (m *MapLayout) Marshal() (dAtA []byte, err error)
- func (m *MapLayout) MarshalTo(dAtA []byte) (int, error)
- func (m *MapLayout) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MapLayout) ProtoMessage()
- func (m *MapLayout) Reset()
- func (m *MapLayout) Size() (n int)
- func (m *MapLayout) String() string
- func (m *MapLayout) Unmarshal(dAtA []byte) error
- func (m *MapLayout) XXX_DiscardUnknown()
- func (m *MapLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MapLayout) XXX_Merge(src proto.Message)
- func (m *MapLayout) XXX_Size() int
- func (m *MapLayout) XXX_Unmarshal(b []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetCellECGIs() []ECGI
- func (m *Node) GetControllers() []string
- func (m *Node) GetEnbID() EnbID
- func (m *Node) GetServiceModels() []string
- func (m *Node) GetStatus() string
- func (m *Node) Marshal() (dAtA []byte, err error)
- func (m *Node) MarshalTo(dAtA []byte) (int, error)
- func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) Size() (n int)
- func (m *Node) String() string
- func (m *Node) Unmarshal(dAtA []byte) error
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type PlmnID
- type Point
- func (*Point) Descriptor() ([]byte, []int)
- func (m *Point) GetLat() float64
- func (m *Point) GetLng() float64
- func (m *Point) Marshal() (dAtA []byte, err error)
- func (m *Point) MarshalTo(dAtA []byte) (int, error)
- func (m *Point) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Point) ProtoMessage()
- func (m *Point) Reset()
- func (m *Point) Size() (n int)
- func (m *Point) String() string
- func (m *Point) Unmarshal(dAtA []byte) error
- func (m *Point) XXX_DiscardUnknown()
- func (m *Point) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Point) XXX_Merge(src proto.Message)
- func (m *Point) XXX_Size() int
- func (m *Point) XXX_Unmarshal(b []byte) error
- type Route
- func (*Route) Descriptor() ([]byte, []int)
- func (m *Route) GetColor() string
- func (m *Route) GetRouteID() IMSI
- func (m *Route) GetWaypoints() []*Point
- func (m *Route) Marshal() (dAtA []byte, err error)
- func (m *Route) MarshalTo(dAtA []byte) (int, error)
- func (m *Route) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Route) ProtoMessage()
- func (m *Route) Reset()
- func (m *Route) Size() (n int)
- func (m *Route) String() string
- func (m *Route) Unmarshal(dAtA []byte) error
- func (m *Route) XXX_DiscardUnknown()
- func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Route) XXX_Merge(src proto.Message)
- func (m *Route) XXX_Size() int
- func (m *Route) XXX_Unmarshal(b []byte) error
- type Sector
- func (*Sector) Descriptor() ([]byte, []int)
- func (m *Sector) GetArc() int32
- func (m *Sector) GetAzimuth() int32
- func (m *Sector) GetCentroid() *Point
- func (m *Sector) Marshal() (dAtA []byte, err error)
- func (m *Sector) MarshalTo(dAtA []byte) (int, error)
- func (m *Sector) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Sector) ProtoMessage()
- func (m *Sector) Reset()
- func (m *Sector) Size() (n int)
- func (m *Sector) String() string
- func (m *Sector) Unmarshal(dAtA []byte) error
- func (m *Sector) XXX_DiscardUnknown()
- func (m *Sector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Sector) XXX_Merge(src proto.Message)
- func (m *Sector) XXX_Size() int
- func (m *Sector) XXX_Unmarshal(b []byte) error
- type Ue
- func (*Ue) Descriptor() ([]byte, []int)
- func (m *Ue) GetAdmitted() bool
- func (m *Ue) GetCRNTI() CRNTI
- func (m *Ue) GetIMSI() IMSI
- func (m *Ue) GetMetrics() *UeMetrics
- func (m *Ue) GetPosition() *Point
- func (m *Ue) GetRotation() uint32
- func (m *Ue) GetServingTower() ECGI
- func (m *Ue) GetServingTowerStrength() float64
- func (m *Ue) GetTower1() ECGI
- func (m *Ue) GetTower1Strength() float64
- func (m *Ue) GetTower2() ECGI
- func (m *Ue) GetTower2Strength() float64
- func (m *Ue) GetTower3() ECGI
- func (m *Ue) GetTower3Strength() float64
- func (m *Ue) GetType() string
- func (m *Ue) Marshal() (dAtA []byte, err error)
- func (m *Ue) MarshalTo(dAtA []byte) (int, error)
- func (m *Ue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Ue) ProtoMessage()
- func (m *Ue) Reset()
- func (m *Ue) Size() (n int)
- func (m *Ue) String() string
- func (m *Ue) Unmarshal(dAtA []byte) error
- func (m *Ue) XXX_DiscardUnknown()
- func (m *Ue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ue) XXX_Merge(src proto.Message)
- func (m *Ue) XXX_Size() int
- func (m *Ue) XXX_Unmarshal(b []byte) error
- type UeMetrics
- func (*UeMetrics) Descriptor() ([]byte, []int)
- func (m *UeMetrics) GetHoLatency() int64
- func (m *UeMetrics) GetHoReportTimestamp() int64
- func (m *UeMetrics) GetIsFirst() bool
- func (m *UeMetrics) Marshal() (dAtA []byte, err error)
- func (m *UeMetrics) MarshalTo(dAtA []byte) (int, error)
- func (m *UeMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UeMetrics) ProtoMessage()
- func (m *UeMetrics) Reset()
- func (m *UeMetrics) Size() (n int)
- func (m *UeMetrics) String() string
- func (m *UeMetrics) Unmarshal(dAtA []byte) error
- func (m *UeMetrics) XXX_DiscardUnknown()
- func (m *UeMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UeMetrics) XXX_Merge(src proto.Message)
- func (m *UeMetrics) XXX_Size() int
- func (m *UeMetrics) XXX_Unmarshal(b []byte) error
- type Uint24
Constants ¶
View Source
const ( // AzimuthKey - used in topo device attributes AzimuthKey = "azimuth" // ArcKey - used in topo device attributes ArcKey = "arc" // LatitudeKey - used in topo device attributes LatitudeKey = "latitude" // LongitudeKey - used in topo device attributes LongitudeKey = "longitude" // EcidKey - used in topo device attributes EcidKey = "ecid" // PlmnIDKey - used in topo device attributes PlmnIDKey = "plmnid" // GrpcPortKey - used in topo device attributes GrpcPortKey = "grpcport" // AddressKey ... AddressKey = "address" )
View Source
const ( // E2NodeType - used in topo device type E2NodeType = "E2Node" // E2NodeVersion100 - used in topo device version E2NodeVersion100 = "1.0.0" )
View Source
const (
// MaxUint24 maximum value of uint24 variable
MaxUint24 = 1<<24 - 1
)
Variables ¶
Functions ¶
func DecodePlmnID ¶ added in v0.7.12
DecodePlmnID decodes MCC and MNC strings from PLMNID hex string
func EncodePlmnID ¶ added in v0.7.12
EncodePlmnID encodes MCC and MNC strings into a PLMNID hex string
func PlmnIDToString ¶ added in v0.7.13
PlmnIDToString generates the MCC-MCN catenation format from the specified numeric PLMNID
func Uint24ToUint32 ¶ added in v0.7.14
Uint24ToUint32 converts uint24 uint32
Types ¶
type Cell ¶
type Cell struct { ECGI ECGI `protobuf:"varint,1,opt,name=ecgi,proto3,casttype=ECGI" json:"ecgi,omitempty"` Location *Point `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"` Sector *Sector `protobuf:"bytes,4,opt,name=sector,proto3" json:"sector,omitempty"` Color string `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"` MaxUEs uint32 `protobuf:"varint,6,opt,name=max_ues,json=maxUes,proto3" json:"max_ues,omitempty"` Neighbors []ECGI `protobuf:"varint,7,rep,packed,name=neighbors,proto3,casttype=ECGI" json:"neighbors,omitempty"` // The cell transmit power in decibels TxPowerdB float64 `protobuf:"fixed64,8,opt,name=tx_power_db,json=txPowerDb,proto3" json:"tx_power_db,omitempty"` // crntis maps a ue's name to its crnti CrntiMap map[CRNTI]IMSI `` /* 204-byte string literal not displayed */ CrntiIndex uint32 `protobuf:"varint,10,opt,name=crnti_index,json=crntiIndex,proto3" json:"crnti_index,omitempty"` Port uint32 `protobuf:"varint,11,opt,name=port,proto3" json:"port,omitempty"` }
func (*Cell) Descriptor ¶
func (*Cell) GetCrntiIndex ¶
func (*Cell) GetCrntiMap ¶
func (*Cell) GetLocation ¶
func (*Cell) GetNeighbors ¶
func (*Cell) GetTxPowerdB ¶
func (*Cell) ProtoMessage ¶
func (*Cell) ProtoMessage()
func (*Cell) XXX_DiscardUnknown ¶
func (m *Cell) XXX_DiscardUnknown()
func (*Cell) XXX_Unmarshal ¶
type MapLayout ¶
type MapLayout struct { // Map center latitude and longitude Center *Point `protobuf:"bytes,1,opt,name=center,proto3" json:"center,omitempty"` // The starting Zoom level Zoom float32 `protobuf:"fixed32,2,opt,name=zoom,proto3" json:"zoom,omitempty"` // Show map as faded on start Fade bool `protobuf:"varint,3,opt,name=fade,proto3" json:"fade,omitempty"` // Show routes on start ShowRoutes bool `protobuf:"varint,4,opt,name=show_routes,json=showRoutes,proto3" json:"show_routes,omitempty"` // Show power as circle on start ShowPower bool `protobuf:"varint,5,opt,name=show_power,json=showPower,proto3" json:"show_power,omitempty"` // Ratio of random locations diameter to tower grid width LocationsScale float32 `protobuf:"fixed32,9,opt,name=locations_scale,json=locationsScale,proto3" json:"locations_scale,omitempty"` // FIXME: These are deprecated; remove // Max number of UEs for complete simulation MinUes uint32 `protobuf:"varint,6,opt,name=min_ues,json=minUes,proto3" json:"min_ues,omitempty"` // Max number of UEs for complete simulation MaxUes uint32 `protobuf:"varint,7,opt,name=max_ues,json=maxUes,proto3" json:"max_ues,omitempty"` // the current number of routes CurrentRoutes uint32 `protobuf:"varint,8,opt,name=current_routes,json=currentRoutes,proto3" json:"current_routes,omitempty"` }
func (*MapLayout) Descriptor ¶
func (*MapLayout) GetCurrentRoutes ¶
func (*MapLayout) GetLocationsScale ¶
func (*MapLayout) GetShowPower ¶
func (*MapLayout) GetShowRoutes ¶
func (*MapLayout) MarshalToSizedBuffer ¶
func (*MapLayout) ProtoMessage ¶
func (*MapLayout) ProtoMessage()
func (*MapLayout) XXX_DiscardUnknown ¶
func (m *MapLayout) XXX_DiscardUnknown()
func (*MapLayout) XXX_Marshal ¶
func (*MapLayout) XXX_Unmarshal ¶
type Node ¶
type Node struct { EnbID EnbID `protobuf:"varint,1,opt,name=enbid,proto3,casttype=EnbID" json:"enbid,omitempty"` Controllers []string `protobuf:"bytes,2,rep,name=controllers,proto3" json:"controllers,omitempty"` ServiceModels []string `protobuf:"bytes,3,rep,name=service_models,json=serviceModels,proto3" json:"service_models,omitempty"` CellECGIs []ECGI `protobuf:"varint,4,rep,packed,name=cell_ecgis,json=cellEcgis,proto3,casttype=ECGI" json:"cell_ecgis,omitempty"` Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` }
func (*Node) Descriptor ¶
func (*Node) GetCellECGIs ¶
func (*Node) GetControllers ¶
func (*Node) GetServiceModels ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type PlmnID ¶
type PlmnID uint32
PlmnID is a globally unique network identifier (Public Land Mobile Network)
func PlmnIDFromHexString ¶ added in v0.7.12
PlmnIDFromHexString converts string form of PLMNID in its hex form into a numeric one suitable for APIs
func PlmnIDFromString ¶ added in v0.7.12
PlmnIDFromString converts string form of PLMNID given as a simple MCC-MCN catenation into a numeric one suitable for APIs
type Point ¶
type Point struct { Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"` Lng float64 `protobuf:"fixed64,2,opt,name=lng,proto3" json:"lng,omitempty"` }
func (*Point) Descriptor ¶
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
func (*Point) XXX_DiscardUnknown ¶
func (m *Point) XXX_DiscardUnknown()
func (*Point) XXX_Marshal ¶
func (*Point) XXX_Unmarshal ¶
type Route ¶
type Route struct { RouteID IMSI `protobuf:"varint,1,opt,name=name,proto3,casttype=IMSI" json:"name,omitempty"` Waypoints []*Point `protobuf:"bytes,2,rep,name=waypoints,proto3" json:"waypoints,omitempty"` Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` }
func (*Route) Descriptor ¶
func (*Route) GetRouteID ¶
func (*Route) GetWaypoints ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) XXX_DiscardUnknown ¶
func (m *Route) XXX_DiscardUnknown()
func (*Route) XXX_Marshal ¶
func (*Route) XXX_Unmarshal ¶
type Sector ¶
type Sector struct { Azimuth int32 `protobuf:"varint,1,opt,name=azimuth,proto3" json:"azimuth,omitempty"` Arc int32 `protobuf:"varint,2,opt,name=arc,proto3" json:"arc,omitempty"` Centroid *Point `protobuf:"bytes,3,opt,name=centroid,proto3" json:"centroid,omitempty"` }
func (*Sector) Descriptor ¶
func (*Sector) GetAzimuth ¶
func (*Sector) GetCentroid ¶
func (*Sector) MarshalToSizedBuffer ¶
func (*Sector) ProtoMessage ¶
func (*Sector) ProtoMessage()
func (*Sector) XXX_DiscardUnknown ¶
func (m *Sector) XXX_DiscardUnknown()
func (*Sector) XXX_Marshal ¶
func (*Sector) XXX_Unmarshal ¶
type Ue ¶
type Ue struct { IMSI IMSI `protobuf:"varint,1,opt,name=imsi,proto3,casttype=IMSI" json:"imsi,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Position *Point `protobuf:"bytes,4,opt,name=position,proto3" json:"position,omitempty"` Rotation uint32 `protobuf:"varint,5,opt,name=rotation,proto3" json:"rotation,omitempty"` ServingTower ECGI `protobuf:"varint,7,opt,name=serving_tower,json=servingTower,proto3,casttype=ECGI" json:"serving_tower,omitempty"` ServingTowerStrength float64 `protobuf:"fixed64,8,opt,name=serving_tower_strength,json=servingTowerStrength,proto3" json:"serving_tower_strength,omitempty"` Tower1 ECGI `protobuf:"varint,9,opt,name=tower1,proto3,casttype=ECGI" json:"tower1,omitempty"` Tower1Strength float64 `protobuf:"fixed64,10,opt,name=tower1_strength,json=tower1Strength,proto3" json:"tower1_strength,omitempty"` Tower2 ECGI `protobuf:"varint,11,opt,name=tower2,proto3,casttype=ECGI" json:"tower2,omitempty"` Tower2Strength float64 `protobuf:"fixed64,12,opt,name=tower2_strength,json=tower2Strength,proto3" json:"tower2_strength,omitempty"` Tower3 ECGI `protobuf:"varint,13,opt,name=tower3,proto3,casttype=ECGI" json:"tower3,omitempty"` Tower3Strength float64 `protobuf:"fixed64,14,opt,name=tower3_strength,json=tower3Strength,proto3" json:"tower3_strength,omitempty"` CRNTI CRNTI `protobuf:"varint,15,opt,name=crnti,proto3,casttype=CRNTI" json:"crnti,omitempty"` Admitted bool `protobuf:"varint,16,opt,name=admitted,proto3" json:"admitted,omitempty"` Metrics *UeMetrics `protobuf:"bytes,17,opt,name=metrics,proto3" json:"metrics,omitempty"` }
func (*Ue) Descriptor ¶
func (*Ue) GetAdmitted ¶
func (*Ue) GetMetrics ¶
func (*Ue) GetPosition ¶
func (*Ue) GetRotation ¶
func (*Ue) GetServingTower ¶
func (*Ue) GetServingTowerStrength ¶
func (*Ue) GetTower1Strength ¶
func (*Ue) GetTower2Strength ¶
func (*Ue) GetTower3Strength ¶
func (*Ue) ProtoMessage ¶
func (*Ue) ProtoMessage()
func (*Ue) XXX_DiscardUnknown ¶
func (m *Ue) XXX_DiscardUnknown()
func (*Ue) XXX_Unmarshal ¶
type UeMetrics ¶
type UeMetrics struct { // Latency (in nanoseconds) of the most recent hand-over HoLatency int64 `protobuf:"varint,1,opt,name=ho_latency,json=hoLatency,proto3" json:"ho_latency,omitempty"` // Handover report timestamp (in nanoseconds since epoch) HoReportTimestamp int64 `protobuf:"varint,2,opt,name=ho_report_timestamp,json=hoReportTimestamp,proto3" json:"ho_report_timestamp,omitempty"` // flag to indicate the first measurement IsFirst bool `protobuf:"varint,3,opt,name=is_first,json=isFirst,proto3" json:"is_first,omitempty"` }
func (*UeMetrics) Descriptor ¶
func (*UeMetrics) GetHoLatency ¶
func (*UeMetrics) GetHoReportTimestamp ¶
func (*UeMetrics) GetIsFirst ¶
func (*UeMetrics) MarshalToSizedBuffer ¶
func (*UeMetrics) ProtoMessage ¶
func (*UeMetrics) ProtoMessage()
func (*UeMetrics) XXX_DiscardUnknown ¶
func (m *UeMetrics) XXX_DiscardUnknown()
func (*UeMetrics) XXX_Marshal ¶
func (*UeMetrics) XXX_Unmarshal ¶
type Uint24 ¶ added in v0.7.14
type Uint24 [3]uint8
Uint24 unti24 type
Click to show internal directories.
Click to hide internal directories.