common

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eui64toInt

func Eui64toInt(e EUI64) int64

helper function to parse eui64 into a int64

func Eui64toUnsignedInt

func Eui64toUnsignedInt(e EUI64) uint64

helper function to parse eui64 into a int64

func GenX509KeyPair

func GenX509KeyPair() (tls.Certificate, error)

GenX509KeyPair generates the TLS keypair for the server

Types

type EUI64

type EUI64 [8]byte

EUI64 data type

func Eui64FromHexString

func Eui64FromHexString(in string) (EUI64, error)

helper function to parse a int64 formatted eui64

func Eui64FromInt

func Eui64FromInt(in int64) EUI64

helper function to parse a int64 formatted eui64

func Eui64FromUnsignedInt

func Eui64FromUnsignedInt(in uint64) EUI64

helper function to parse a int64 formatted eui64

func (EUI64) MarshalBinary

func (e EUI64) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler.

func (EUI64) MarshalText

func (e EUI64) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (EUI64) String

func (e EUI64) String() string

String implement fmt.Stringer.

func (*EUI64) ToInt

func (e *EUI64) ToInt() int64

helper function to parse eui64 into a int64

func (*EUI64) ToUnsignedInt

func (e *EUI64) ToUnsignedInt() uint64

helper function to parse eui64 into a uint64

func (*EUI64) UnmarshalBinary

func (e *EUI64) UnmarshalBinary(data []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler.

func (*EUI64) UnmarshalText

func (e *EUI64) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

Jump to

Keyboard shortcuts

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