types

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: 3 Imported by: 0

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 ConfigName

type ConfigName string

ConfigName ... config name

type EventPublisherType

type EventPublisherType struct {
	EventType ptp.EventType
	Resource  ptp.EventResource
	PubID     string
	Pub       *pubsub.PubSub
}

EventPublisherType ... define types of publishers

type IFace

type IFace string

IFace ... network interface name

type ProcessName

type ProcessName string

ProcessName ... process name either ptp4l or phc2sys

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

Jump to

Keyboard shortcuts

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