utils

package
v0.7.0-pre3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractEventKey

func ExtractEventKey(inv *wamp.Invocation) (string, error)

func ExtractId

func ExtractId(inv *wamp.Invocation) (int, error)

func ExtractIntArg

func ExtractIntArg(inv *wamp.Invocation, pos int) (int, error)

extracts the argument on position pos (0-based) as an int

func NewClient

func NewClient() (*client.Client, error)

Types

type ParamAvgLap

type ParamAvgLap struct {
	EventID      int
	IntervalSecs int
}

func ExtractParamAvgLap

func ExtractParamAvgLap(inv *wamp.Invocation) (*ParamAvgLap, error)

type RangeTuple

type RangeTuple struct {
	EventID int
	TsBegin float64
	Num     int
}

func ExtractRangeTuple

func ExtractRangeTuple(inv *wamp.Invocation) (*RangeTuple, error)

Jump to

Keyboard shortcuts

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