Documentation ¶
Index ¶
- Constants
- type Compute
- type Connector
- func (pc *Connector) AdvanceAllUePosition(increment float32) (err error)
- func (pc *Connector) AdvanceUePosition(name string, increment float32) (err error)
- func (pc *Connector) CreateCompute(id string, name string, subType string, position string) (err error)
- func (pc *Connector) CreateDb(name string) (err error)
- func (pc *Connector) CreatePoa(id string, name string, subType string, position string, radius float32) (err error)
- func (pc *Connector) CreateTables() (err error)
- func (pc *Connector) CreateUe(id string, name string, position string, path string, mode string, ...) (err error)
- func (pc *Connector) DeleteAllCompute() (err error)
- func (pc *Connector) DeleteAllPoa() (err error)
- func (pc *Connector) DeleteAllUe() (err error)
- func (pc *Connector) DeleteCompute(name string) (err error)
- func (pc *Connector) DeletePoa(name string) (err error)
- func (pc *Connector) DeleteTable(tableName string) (err error)
- func (pc *Connector) DeleteTables() (err error)
- func (pc *Connector) DeleteUe(name string) (err error)
- func (pc *Connector) GetAllCompute() (computeMap map[string]*Compute, err error)
- func (pc *Connector) GetAllPoa() (poaMap map[string]*Poa, err error)
- func (pc *Connector) GetAllUe() (ueMap map[string]*Ue, err error)
- func (pc *Connector) GetCompute(name string) (compute *Compute, err error)
- func (pc *Connector) GetPoa(name string) (poa *Poa, err error)
- func (pc *Connector) GetUe(name string) (ue *Ue, err error)
- func (pc *Connector) SetListener(listener func(string, string)) error
- func (pc *Connector) UpdateCompute(name string, position string) (err error)
- func (pc *Connector) UpdatePoa(name string, position string, radius float32) (err error)
- func (pc *Connector) UpdateUe(name string, position string, path string, mode string, velocity float32) (err error)
- type Poa
- type PoaInfo
- type Ue
- type UePoaInfo
Constants ¶
const ( DbHost = "meep-postgis.default.svc.cluster.local" DbPort = "5432" DbUser = "" DbPassword = "" DbDefault = "postgres" DbMaxRetryCount int = 2 )
DB Config
const ( PathModeLoop = "LOOP" PathModeReverse = "REVERSE" )
Path modes
const ( UeTable = "ue" PoaTable = "poa" ComputeTable = "compute" )
DB Table Names
const ( TypeUe = "UE" TypePoa = "POA" TypeCompute = "COMPUTE" )
Asset Types
const ( PoaTypeGeneric = "POA" PoaTypeCell4g = "POA-CELL" PoaTypeCell5g = "POA-CELL-5G" PoaTypeWifi = "POA-WIFI" )
POA Types
const (
AllAssets = "ALL"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector - Implements a Postgis SQL DB connector
func NewConnector ¶
NewConnector - Creates and initializes a Postgis connector
func (*Connector) AdvanceAllUePosition ¶
AdvanceUePosition - Advance all UEs along path by provided number of increments
func (*Connector) AdvanceUePosition ¶
AdvanceUePosition - Advance UE along path by provided number of increments
func (*Connector) CreateCompute ¶
func (pc *Connector) CreateCompute(id string, name string, subType string, position string) (err error)
CreateCompute - Create new Compute
func (*Connector) CreatePoa ¶
func (pc *Connector) CreatePoa(id string, name string, subType string, position string, radius float32) (err error)
CreatePoa - Create new POA
func (*Connector) CreateTables ¶
func (*Connector) CreateUe ¶
func (pc *Connector) CreateUe(id string, name string, position string, path string, mode string, velocity float32) (err error)
CreateUe - Create new UE
func (*Connector) DeleteAllCompute ¶
DeleteAllCompute - Delete all Compute entries
func (*Connector) DeleteAllPoa ¶
DeleteAllPoa - Delete all POA entries
func (*Connector) DeleteAllUe ¶
DeleteAllUe - Delete all UE entries
func (*Connector) DeleteCompute ¶
DeleteCompute - Delete Compute entry
func (*Connector) DeleteTable ¶
DeleteTable - Delete postgis table with provided name
func (*Connector) DeleteTables ¶
DeleteTables - Delete all postgis tables
func (*Connector) GetAllCompute ¶
GetAllCompute - Get all Compute information
func (*Connector) GetCompute ¶
GetCompute - Get Compute information
func (*Connector) SetListener ¶
func (*Connector) UpdateCompute ¶
UpdateCompute - Update existing Compute