types

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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"
)
View Source
const (
	// E2NodeType - used in topo device type
	E2NodeType = "E2Node"

	// E2NodeVersion100 - used in topo device version
	E2NodeVersion100 = "1.0.0"
)

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Cell added in v0.6.1

type Cell struct {
	Ecgi      *ECGI   `protobuf:"bytes,1,opt,name=ecgi,proto3" 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=maxUEs,proto3" json:"maxUEs,omitempty"`
	Neighbors []*ECGI `protobuf:"bytes,7,rep,name=neighbors,proto3" json:"neighbors,omitempty"`
	// The cell transmit power in decibels
	TxPowerdB float64 `protobuf:"fixed64,8,opt,name=txPowerdB,proto3" json:"txPowerdB,omitempty"`
	// crntis maps a ue's name to its crnti
	CrntiMap   map[Crnti]Imsi `` /* 187-byte string literal not displayed */
	CrntiIndex uint32         `protobuf:"varint,10,opt,name=crntiIndex,proto3" json:"crntiIndex,omitempty"`
	Port       uint32         `protobuf:"varint,11,opt,name=port,proto3" json:"port,omitempty"`
}

func (*Cell) Descriptor added in v0.6.1

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

func (*Cell) GetColor added in v0.6.1

func (m *Cell) GetColor() string

func (*Cell) GetCrntiIndex added in v0.6.1

func (m *Cell) GetCrntiIndex() uint32

func (*Cell) GetCrntiMap added in v0.6.1

func (m *Cell) GetCrntiMap() map[Crnti]Imsi

func (*Cell) GetEcgi added in v0.6.1

func (m *Cell) GetEcgi() *ECGI

func (*Cell) GetLocation added in v0.6.1

func (m *Cell) GetLocation() *Point

func (*Cell) GetMaxUEs added in v0.6.1

func (m *Cell) GetMaxUEs() uint32

func (*Cell) GetNeighbors added in v0.6.1

func (m *Cell) GetNeighbors() []*ECGI

func (*Cell) GetPort added in v0.6.1

func (m *Cell) GetPort() uint32

func (*Cell) GetSector added in v0.6.1

func (m *Cell) GetSector() *Sector

func (*Cell) GetTxPowerdB added in v0.6.1

func (m *Cell) GetTxPowerdB() float64

func (*Cell) Marshal added in v0.6.1

func (m *Cell) Marshal() (dAtA []byte, err error)

func (*Cell) MarshalTo added in v0.6.1

func (m *Cell) MarshalTo(dAtA []byte) (int, error)

func (*Cell) MarshalToSizedBuffer added in v0.6.1

func (m *Cell) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Cell) ProtoMessage added in v0.6.1

func (*Cell) ProtoMessage()

func (*Cell) Reset added in v0.6.1

func (m *Cell) Reset()

func (*Cell) Size added in v0.6.1

func (m *Cell) Size() (n int)

func (*Cell) String added in v0.6.1

func (m *Cell) String() string

func (*Cell) Unmarshal added in v0.6.1

func (m *Cell) Unmarshal(dAtA []byte) error

func (*Cell) XXX_DiscardUnknown added in v0.6.1

func (m *Cell) XXX_DiscardUnknown()

func (*Cell) XXX_Marshal added in v0.6.1

func (m *Cell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Cell) XXX_Merge added in v0.6.1

func (m *Cell) XXX_Merge(src proto.Message)

func (*Cell) XXX_Size added in v0.6.1

func (m *Cell) XXX_Size() int

func (*Cell) XXX_Unmarshal added in v0.6.1

func (m *Cell) XXX_Unmarshal(b []byte) error

type Crnti

type Crnti string

Crnti is a UE ID relative to a tower

type ECGI

type ECGI struct {
	EcID   EcID   `protobuf:"bytes,1,opt,name=ecID,proto3,casttype=EcID" json:"ecID,omitempty"`
	PlmnID PlmnID `protobuf:"bytes,2,opt,name=plmnID,proto3,casttype=PlmnID" json:"plmnID,omitempty"`
}

station's unique ID

func (*ECGI) Descriptor

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

func (*ECGI) GetEcID

func (m *ECGI) GetEcID() EcID

func (*ECGI) GetPlmnID

func (m *ECGI) GetPlmnID() PlmnID

func (*ECGI) Marshal

func (m *ECGI) Marshal() (dAtA []byte, err error)

func (*ECGI) MarshalTo

func (m *ECGI) MarshalTo(dAtA []byte) (int, error)

func (*ECGI) MarshalToSizedBuffer

func (m *ECGI) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ECGI) ProtoMessage

func (*ECGI) ProtoMessage()

func (*ECGI) Reset

func (m *ECGI) Reset()

func (*ECGI) Size

func (m *ECGI) Size() (n int)

func (*ECGI) String

func (m *ECGI) String() string

func (*ECGI) Unmarshal

func (m *ECGI) Unmarshal(dAtA []byte) error

func (*ECGI) XXX_DiscardUnknown

func (m *ECGI) XXX_DiscardUnknown()

func (*ECGI) XXX_Marshal

func (m *ECGI) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ECGI) XXX_Merge

func (m *ECGI) XXX_Merge(src proto.Message)

func (*ECGI) XXX_Size

func (m *ECGI) XXX_Size() int

func (*ECGI) XXX_Unmarshal

func (m *ECGI) XXX_Unmarshal(b []byte) error

type EcID

type EcID string

EcID is a tower ID

type Imsi

type Imsi uint64

Imsi is a UE unique identifier

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=showRoutes,proto3" json:"showRoutes,omitempty"`
	// Show power as circle on start
	ShowPower bool `protobuf:"varint,5,opt,name=showPower,proto3" json:"showPower,omitempty"`
	// 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"`
	// Ratio of random locations diameter to tower grid width
	LocationsScale float32 `protobuf:"fixed32,9,opt,name=locationsScale,proto3" json:"locationsScale,omitempty"`
}

func (*MapLayout) Descriptor

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

func (*MapLayout) GetCenter

func (m *MapLayout) GetCenter() *Point

func (*MapLayout) GetCurrentRoutes

func (m *MapLayout) GetCurrentRoutes() uint32

func (*MapLayout) GetFade

func (m *MapLayout) GetFade() bool

func (*MapLayout) GetLocationsScale added in v0.6.1

func (m *MapLayout) GetLocationsScale() float32

func (*MapLayout) GetMaxUes

func (m *MapLayout) GetMaxUes() uint32

func (*MapLayout) GetMinUes

func (m *MapLayout) GetMinUes() uint32

func (*MapLayout) GetShowPower

func (m *MapLayout) GetShowPower() bool

func (*MapLayout) GetShowRoutes

func (m *MapLayout) GetShowRoutes() bool

func (*MapLayout) GetZoom

func (m *MapLayout) GetZoom() float32

func (*MapLayout) Marshal

func (m *MapLayout) Marshal() (dAtA []byte, err error)

func (*MapLayout) MarshalTo

func (m *MapLayout) MarshalTo(dAtA []byte) (int, error)

func (*MapLayout) MarshalToSizedBuffer

func (m *MapLayout) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MapLayout) ProtoMessage

func (*MapLayout) ProtoMessage()

func (*MapLayout) Reset

func (m *MapLayout) Reset()

func (*MapLayout) Size

func (m *MapLayout) Size() (n int)

func (*MapLayout) String

func (m *MapLayout) String() string

func (*MapLayout) Unmarshal

func (m *MapLayout) Unmarshal(dAtA []byte) error

func (*MapLayout) XXX_DiscardUnknown

func (m *MapLayout) XXX_DiscardUnknown()

func (*MapLayout) XXX_Marshal

func (m *MapLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MapLayout) XXX_Merge

func (m *MapLayout) XXX_Merge(src proto.Message)

func (*MapLayout) XXX_Size

func (m *MapLayout) XXX_Size() int

func (*MapLayout) XXX_Unmarshal

func (m *MapLayout) XXX_Unmarshal(b []byte) error

type PlmnID

type PlmnID string

PlmnID is a network ID

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

func (*Point) GetLat

func (m *Point) GetLat() float64

func (*Point) GetLng

func (m *Point) GetLng() float64

func (*Point) Marshal

func (m *Point) Marshal() (dAtA []byte, err error)

func (*Point) MarshalTo

func (m *Point) MarshalTo(dAtA []byte) (int, error)

func (*Point) MarshalToSizedBuffer

func (m *Point) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) Reset

func (m *Point) Reset()

func (*Point) Size

func (m *Point) Size() (n int)

func (*Point) String

func (m *Point) String() string

func (*Point) Unmarshal

func (m *Point) Unmarshal(dAtA []byte) error

func (*Point) XXX_DiscardUnknown

func (m *Point) XXX_DiscardUnknown()

func (*Point) XXX_Marshal

func (m *Point) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Point) XXX_Merge

func (m *Point) XXX_Merge(src proto.Message)

func (*Point) XXX_Size

func (m *Point) XXX_Size() int

func (*Point) XXX_Unmarshal

func (m *Point) XXX_Unmarshal(b []byte) error

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

func (*Route) GetColor

func (m *Route) GetColor() string

func (*Route) GetRouteID

func (m *Route) GetRouteID() Imsi

func (*Route) GetWaypoints

func (m *Route) GetWaypoints() []*Point

func (*Route) Marshal

func (m *Route) Marshal() (dAtA []byte, err error)

func (*Route) MarshalTo

func (m *Route) MarshalTo(dAtA []byte) (int, error)

func (*Route) MarshalToSizedBuffer

func (m *Route) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) Size

func (m *Route) Size() (n int)

func (*Route) String

func (m *Route) String() string

func (*Route) Unmarshal

func (m *Route) Unmarshal(dAtA []byte) error

func (*Route) XXX_DiscardUnknown

func (m *Route) XXX_DiscardUnknown()

func (*Route) XXX_Marshal

func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Route) XXX_Merge

func (m *Route) XXX_Merge(src proto.Message)

func (*Route) XXX_Size

func (m *Route) XXX_Size() int

func (*Route) XXX_Unmarshal

func (m *Route) XXX_Unmarshal(b []byte) error

type Sector added in v0.6.1

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 added in v0.6.1

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

func (*Sector) GetArc added in v0.6.1

func (m *Sector) GetArc() int32

func (*Sector) GetAzimuth added in v0.6.1

func (m *Sector) GetAzimuth() int32

func (*Sector) GetCentroid added in v0.6.1

func (m *Sector) GetCentroid() *Point

func (*Sector) Marshal added in v0.6.1

func (m *Sector) Marshal() (dAtA []byte, err error)

func (*Sector) MarshalTo added in v0.6.1

func (m *Sector) MarshalTo(dAtA []byte) (int, error)

func (*Sector) MarshalToSizedBuffer added in v0.6.1

func (m *Sector) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Sector) ProtoMessage added in v0.6.1

func (*Sector) ProtoMessage()

func (*Sector) Reset added in v0.6.1

func (m *Sector) Reset()

func (*Sector) Size added in v0.6.1

func (m *Sector) Size() (n int)

func (*Sector) String added in v0.6.1

func (m *Sector) String() string

func (*Sector) Unmarshal added in v0.6.1

func (m *Sector) Unmarshal(dAtA []byte) error

func (*Sector) XXX_DiscardUnknown added in v0.6.1

func (m *Sector) XXX_DiscardUnknown()

func (*Sector) XXX_Marshal added in v0.6.1

func (m *Sector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sector) XXX_Merge added in v0.6.1

func (m *Sector) XXX_Merge(src proto.Message)

func (*Sector) XXX_Size added in v0.6.1

func (m *Sector) XXX_Size() int

func (*Sector) XXX_Unmarshal added in v0.6.1

func (m *Sector) XXX_Unmarshal(b []byte) error

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:"bytes,7,opt,name=serving_tower,json=servingTower,proto3" 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:"bytes,9,opt,name=tower1,proto3" json:"tower1,omitempty"`
	Tower1Strength       float64    `protobuf:"fixed64,10,opt,name=tower1_strength,json=tower1Strength,proto3" json:"tower1_strength,omitempty"`
	Tower2               *ECGI      `protobuf:"bytes,11,opt,name=tower2,proto3" json:"tower2,omitempty"`
	Tower2Strength       float64    `protobuf:"fixed64,12,opt,name=tower2_strength,json=tower2Strength,proto3" json:"tower2_strength,omitempty"`
	Tower3               *ECGI      `protobuf:"bytes,13,opt,name=tower3,proto3" json:"tower3,omitempty"`
	Tower3Strength       float64    `protobuf:"fixed64,14,opt,name=tower3_strength,json=tower3Strength,proto3" json:"tower3_strength,omitempty"`
	Crnti                Crnti      `protobuf:"bytes,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) Descriptor() ([]byte, []int)

func (*Ue) GetAdmitted

func (m *Ue) GetAdmitted() bool

func (*Ue) GetCrnti

func (m *Ue) GetCrnti() Crnti

func (*Ue) GetImsi

func (m *Ue) GetImsi() Imsi

func (*Ue) GetMetrics

func (m *Ue) GetMetrics() *UeMetrics

func (*Ue) GetPosition

func (m *Ue) GetPosition() *Point

func (*Ue) GetRotation

func (m *Ue) GetRotation() uint32

func (*Ue) GetServingTower

func (m *Ue) GetServingTower() *ECGI

func (*Ue) GetServingTowerStrength added in v0.6.5

func (m *Ue) GetServingTowerStrength() float64

func (*Ue) GetTower1

func (m *Ue) GetTower1() *ECGI

func (*Ue) GetTower1Strength added in v0.6.5

func (m *Ue) GetTower1Strength() float64

func (*Ue) GetTower2

func (m *Ue) GetTower2() *ECGI

func (*Ue) GetTower2Strength added in v0.6.5

func (m *Ue) GetTower2Strength() float64

func (*Ue) GetTower3

func (m *Ue) GetTower3() *ECGI

func (*Ue) GetTower3Strength added in v0.6.5

func (m *Ue) GetTower3Strength() float64

func (*Ue) GetType

func (m *Ue) GetType() string

func (*Ue) Marshal

func (m *Ue) Marshal() (dAtA []byte, err error)

func (*Ue) MarshalTo

func (m *Ue) MarshalTo(dAtA []byte) (int, error)

func (*Ue) MarshalToSizedBuffer

func (m *Ue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Ue) ProtoMessage

func (*Ue) ProtoMessage()

func (*Ue) Reset

func (m *Ue) Reset()

func (*Ue) Size

func (m *Ue) Size() (n int)

func (*Ue) String

func (m *Ue) String() string

func (*Ue) Unmarshal

func (m *Ue) Unmarshal(dAtA []byte) error

func (*Ue) XXX_DiscardUnknown

func (m *Ue) XXX_DiscardUnknown()

func (*Ue) XXX_Marshal

func (m *Ue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ue) XXX_Merge

func (m *Ue) XXX_Merge(src proto.Message)

func (*Ue) XXX_Size

func (m *Ue) XXX_Size() int

func (*Ue) XXX_Unmarshal

func (m *Ue) XXX_Unmarshal(b []byte) error

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=isFirst,proto3" json:"isFirst,omitempty"`
}

func (*UeMetrics) Descriptor

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

func (*UeMetrics) GetHoLatency

func (m *UeMetrics) GetHoLatency() int64

func (*UeMetrics) GetHoReportTimestamp

func (m *UeMetrics) GetHoReportTimestamp() int64

func (*UeMetrics) GetIsFirst

func (m *UeMetrics) GetIsFirst() bool

func (*UeMetrics) Marshal

func (m *UeMetrics) Marshal() (dAtA []byte, err error)

func (*UeMetrics) MarshalTo

func (m *UeMetrics) MarshalTo(dAtA []byte) (int, error)

func (*UeMetrics) MarshalToSizedBuffer

func (m *UeMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UeMetrics) ProtoMessage

func (*UeMetrics) ProtoMessage()

func (*UeMetrics) Reset

func (m *UeMetrics) Reset()

func (*UeMetrics) Size

func (m *UeMetrics) Size() (n int)

func (*UeMetrics) String

func (m *UeMetrics) String() string

func (*UeMetrics) Unmarshal

func (m *UeMetrics) Unmarshal(dAtA []byte) error

func (*UeMetrics) XXX_DiscardUnknown

func (m *UeMetrics) XXX_DiscardUnknown()

func (*UeMetrics) XXX_Marshal

func (m *UeMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UeMetrics) XXX_Merge

func (m *UeMetrics) XXX_Merge(src proto.Message)

func (*UeMetrics) XXX_Size

func (m *UeMetrics) XXX_Size() int

func (*UeMetrics) XXX_Unmarshal

func (m *UeMetrics) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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