utils

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToGatewayID

func BytesToGatewayID(id []byte) (lorawan.EUI64, error)

func GatewayPublicKeyToID

func GatewayPublicKeyToID(pubKey []byte) (lorawan.EUI64, error)

func HexStringToBigIntHook

func HexStringToBigIntHook() mapstructure.DecodeHookFunc

HexStringToBigIntHook converts from a string to a big.Int when required

func IntToBigIntHook

func IntToBigIntHook() mapstructure.DecodeHookFunc

IntToBigIntHook converts a int to a *big.Int when required

func StringToDuration

func StringToDuration() mapstructure.DecodeHookFunc

StringToDuration converts from a string into a time.Duration when required

func StringToEthereumAddressHook

func StringToEthereumAddressHook() mapstructure.DecodeHookFunc

StringToEthAddressHook converts from a string to an ethereum address when required

func StringToHashHook

func StringToHashHook() mapstructure.DecodeHookFunc

StringToHashHook converts from a string to a ecommon.Hash when required

func StringToLogrusLevel

func StringToLogrusLevel() mapstructure.DecodeHookFunc

StringToLogrusLevel converts from a string into a logrus.Level when required

Types

This section is empty.

Jump to

Keyboard shortcuts

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