helpers

package
v0.0.0-...-aee11aa Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatVendor

func FormatVendor(vendor string) string

func FormatVersion

func FormatVersion(vendor string, version []byte) string

func GenerateBandsData

func GenerateBandsData(bins *models.Bins)

func GuessSNRGroupSize

func GuessSNRGroupSize(maxValidSNRIndex, maxValidBitsIndex, binCount int) int

func ParseHexadecimal

func ParseHexadecimal(str string) []byte

func ParseMode

func ParseMode(str string) models.Mode

func ParseStateTR06X

func ParseStateTR06X(str string) models.State

func SplitHostPort

func SplitHostPort(hostport string) (host string, port uint16, err error)

SplitHostPort is a wrapper around net.SplitHostPort which accepts inputs without a port. It also enforces brackets around IPv6 addresses.

Types

type BandDecider

type BandDecider struct {
	// contains filtered or unexported fields
}

func NewBandDecider

func NewBandDecider(bands models.BandsDownUp) (*BandDecider, error)

func (*BandDecider) IsDownstream

func (d *BandDecider) IsDownstream(num int) bool

Jump to

Keyboard shortcuts

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