Documentation ¶
Overview ¶
Package types ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PtpRoleMappings = map[string]PtpPortRole{ "PASSIVE": PASSIVE, "SLAVE": SLAVE, "MASTER": MASTER, "FAULTY": FAULTY, "UNKNOWN": UNKNOWN, "LISTENING": LISTENING, }
PtpRoleMappings ... set ptp role mapping
Functions ¶
This section is empty.
Types ¶
type EventPublisherType ¶
type EventPublisherType struct { EventType ptp.EventType Resource ptp.EventResource PubID string Pub *pubsub.PubSub }
EventPublisherType ... define types of publishers
type PtpPortRole ¶
type PtpPortRole int
PtpPortRole ...ptp port role
const ( // PASSIVE when two slave are configure other will be passive PASSIVE PtpPortRole = iota // SLAVE interface SLAVE // MASTER interface MASTER // FAULTY Interface role FAULTY // UNKNOWN role UNKNOWN // LISTENING ... LISTENING )
func (PtpPortRole) String ¶
func (r PtpPortRole) String() string
Click to show internal directories.
Click to hide internal directories.