 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func BytesToGatewayID(id []byte) (lorawan.EUI64, error)
- func Eui64FromString(str string) (lorawan.EUI64, error)
- func Eui64ToUint64(eui64 lorawan.EUI64) uint64
- func GatewayPublicKeyToID(pubKey []byte) (lorawan.EUI64, error)
- func HexStringToBigIntHook() mapstructure.DecodeHookFunc
- func IntToBigIntHook() mapstructure.DecodeHookFunc
- func RandUint32() uint32
- func StringToDuration() mapstructure.DecodeHookFunc
- func StringToEthereumAddressHook() mapstructure.DecodeHookFunc
- func StringToHashHook() mapstructure.DecodeHookFunc
- func StringToLogrusLevel() mapstructure.DecodeHookFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Eui64FromString ¶
Eui64FromString tries to read a lorawan.EUI64 from string. It returns an error if it doesn't succeed.
func Eui64ToUint64 ¶
Eui64ToUint64 converts a lorawan.EUI64 into an uint64 in BigEndian format.
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 RandUint32 ¶
func RandUint32() uint32
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.
 Click to show internal directories. 
   Click to hide internal directories.