nds2parser

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandAuthorize = iota
	CommandProtocolVersion
	CommandProtocolRevision
	CommandQuit
	CommandNop
	CommandCountChannels
	CommandGetChannels
	CommandGetChannelCrc
	CommandSetEpoch
	CommandListEpochs
	CommandGetSourceList
	CommandGetSourceData
	CommandUnknown
)

Variables

This section is empty.

Functions

func CreateChannelListState

func CreateChannelListState(input string) *channelListState

Types

type BashPattern

type BashPattern struct {
	RePattern    string
	Pattern      *regexp.Regexp
	CommonPrefix string
}

func ParseBashPattern

func ParseBashPattern(input string) (BashPattern, error)

type Command

type Command struct {
	Command int
}

func CreateCommand

func CreateCommand(cmd int) Command

func (*Command) Get

func (c *Command) Get() int

func (*Command) Set

func (c *Command) Set(cmd int)

type NdsChannelListEntry

type NdsChannelListEntry struct {
	common.BasicChannel
	Spans []SourceSpan
}

func ChannelListLine

func ChannelListLine(input string) (NdsChannelListEntry, error)

func (*NdsChannelListEntry) Existence

func (cl *NdsChannelListEntry) Existence() common.TimeSpan

type ParsedCommand

type ParsedCommand struct {
	Command   Command
	Version   int
	Revision  int
	ClassType common.ClassType
	GpsTime   common.GpsSecond
	TimeSpan  common.TimeSpan
	Pattern   BashPattern
	Channels  []common.BasicChannel
}

func ParseCommand

func ParseCommand(input string) *ParsedCommand

type SourceSpan

type SourceSpan struct {
	FrameType string
	Start     common.GpsSecond
	End       common.GpsSecond
}

Jump to

Keyboard shortcuts

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