Documentation ¶
Index ¶
- Constants
- Variables
- func CheckAll(tests []Test) bool
- func CheckBoardIds(boardIds map[string]string, addresses map[string]string) error
- func CheckId(id string) bool
- func CheckIp(ipStr string) bool
- func CheckMeasurementUnits(unitStr string) bool
- func CheckMessageId(id string) bool
- func CheckPacketType(kind string) bool
- func CheckPort(portStr string) bool
- func CheckRange(rangeStr string) bool
- func CheckUnit(unitStr string) bool
- func Every[T any](slice []T, predicate func(T) bool) bool
- func EveryMap[K comparable, V any](m map[K]V, predicate func(key K, value V) bool) bool
- func IsEnum(kind string) bool
- func Keys[K comparable, V any](m map[K]V) []K
- func Lint(file *excelize.File) bool
- func Map[T any, U any](slice []T, mapFn func(T) U) []U
- func NewMap[K comparable, V any](oldMap map[K]V) map[K]V
- func Reverse[T any](slice []T) []T
- func Some[T any](slice []T, predicate func(T) bool) bool
- type Board
- type Cell
- type Document
- type FalseTest
- type GlobalInfo
- type Logger
- type Measurement
- type Packet
- type Sheet
- type StackEntry
- type Structure
- type Table
- type Tables
- type Test
Constants ¶
View Source
const ( PacketTable = "Packets" MeasurementTable = "Measurements" Structures = "Structures" )
View Source
const ( Addresses = "addresses" Units = "units" Ports = "ports" BoardIds = "board_ids" MessageIds = "message_ids" BackendKey = "Backend" )
View Source
const ( GLOBAL_INFO = "GLOBAL INFO" BOARD_PREFIX = "BOARD " )
View Source
const TablePrefix = "[TABLE]"
Variables ¶
View Source
var ( UnitExp = regexp.MustCompile(fmt.Sprintf(`^(?:[/+*\-]%s+)+$`, FloatExp)) IpExp = regexp.MustCompile(`^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$`) IdExp = regexp.MustCompile(`^\d+$`) )
View Source
var FloatExp = `(?:\-?\d+(?:\.\d+)?)`
View Source
var Log = NewLogger()
View Source
var (
RangeExp = regexp.MustCompile(fmt.Sprintf(`^\[(?:(?:%s,%s)|(?:,%s)|(?:%s,))\]$`, FloatExp, FloatExp, FloatExp, FloatExp))
)
Functions ¶
func CheckBoardIds ¶
func CheckMeasurementUnits ¶
func CheckMessageId ¶
func CheckPacketType ¶
func CheckRange ¶
func EveryMap ¶
func EveryMap[K comparable, V any](m map[K]V, predicate func(key K, value V) bool) bool
func Keys ¶
func Keys[K comparable, V any](m map[K]V) []K
func NewMap ¶
func NewMap[K comparable, V any](oldMap map[K]V) map[K]V
Types ¶
type Board ¶
type Document ¶
func NewDocument ¶
func NewDocument() Document
type GlobalInfo ¶
type Measurement ¶
type Measurement struct {
// contains filtered or unexported fields
}
func (Measurement) Run ¶
func (m Measurement) Run() bool
type StackEntry ¶
type StackEntry struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.