channel

package
v0.0.0-...-a6f45d6 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetKeys

func SetKeys(q query.Query, keys ...Key)

SetKeys sets the channel keys on the provided query. Calling SetKeys will override and previous keys set on the query. Use GetKeys to retrieve the keys.

Types

type Channel

type Channel struct {
	Key      Key
	DataRate telem.DataRate
	DataType telem.DataType
}

func (Channel) GorpKey

func (c Channel) GorpKey() Key

GorpKey implements the gorp.Entry interface.

func (Channel) SetOptions

func (c Channel) SetOptions() []interface{}

SetOptions implements the gorp.Entry interface.

type Key

type Key uint16

func ExtractKeys

func ExtractKeys(channels []Channel) []Key

ExtractKeys extracts the keys from the provided channel slice.

func GetKeys

func GetKeys(q query.Query) []Key

GetKeys retrieves the channel keys on the provided query. GetKeys will panic if SetKeys was not called on teh query.

func (Key) String

func (k Key) String() string

String implements the fmt.Stringer interface.

Jump to

Keyboard shortcuts

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