Documentation ¶
Index ¶
- type ClockSourceType
- type ClockState
- type DependingClockState
- type PMetric
- type PTPEventState
- func (p *PTPEventState) DeleteAllMetrics(m []*prometheus.GaugeVec)
- func (p *PTPEventState) PrintDependsOn() string
- func (p *PTPEventState) UnRegisterAllMetrics()
- func (p *PTPEventState) UnRegisterMetrics(processName string)
- func (p *PTPEventState) UpdateCurrentEventState(c ClockState, metrics map[string]*PMetric, help map[string]string) ptp.SyncState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClockSourceType ¶
type ClockSourceType string
ClockSourceType ...
const ( // GNSS ... ClockSourceType = "gnss" GNSS ClockSourceType = "gnss" // DPLL ... ClockSourceType = "dpll" DPLL ClockSourceType = "dpll" // GM ... ClockSourceType GM ClockSourceType = "GM" )
type ClockState ¶
type ClockState struct { State ptp.SyncState // gives over all state as LOCKED OR not Offset *float64 // for syne no offset for now until frequency offset is provided IFace *string // could be iface gnss , sync1 Process string //dpll //gnss ClockSource ClockSourceType Value map[string]int64 Metric map[string]*PMetric NodeName string HelpText map[string]string }
ClockState ...
func (*ClockState) PrintClockState ¶
func (c *ClockState) PrintClockState() string
PrintClockState ...
type PTPEventState ¶
type PTPEventState struct { sync.Mutex CurrentPTPStateEvent ptp.SyncState DependsOn map[string]DependingClockState // [dpll][]*ClockState Type ptp.EventType }
PTPEventState ...
func (*PTPEventState) DeleteAllMetrics ¶
func (p *PTPEventState) DeleteAllMetrics(m []*prometheus.GaugeVec)
DeleteAllMetrics ... delete all metrics
write a functions to delete meteric from dependson object
func (*PTPEventState) PrintDependsOn ¶
func (p *PTPEventState) PrintDependsOn() string
PrintDependsOn ...
func (*PTPEventState) UnRegisterAllMetrics ¶
func (p *PTPEventState) UnRegisterAllMetrics()
UnRegisterAllMetrics ... unregister all metrics
write a functions to unregister meteric from dependson object
func (*PTPEventState) UnRegisterMetrics ¶
func (p *PTPEventState) UnRegisterMetrics(processName string)
UnRegisterMetrics ... unregister metrics by processname
func (*PTPEventState) UpdateCurrentEventState ¶
func (p *PTPEventState) UpdateCurrentEventState(c ClockState, metrics map[string]*PMetric, help map[string]string) ptp.SyncState
UpdateCurrentEventState ...
Click to show internal directories.
Click to hide internal directories.