event

package
v0.0.0-...-319b14c Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 DependingClockState

type DependingClockState []*ClockState

DependingClockState ...

type PMetric

type PMetric struct {
	// contains filtered or unexported fields
}

PMetric ...

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

Jump to

Keyboard shortcuts

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