utils

package
v0.0.0-...-82415a5 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterNonAccountAddresses

func FilterNonAccountAddresses(addresses []string) []string

FilterNonAccountAddresses filters all the non-account addresses from the given slice of addresses, returning a new slice containing only account addresses.

func IsModuleEnabled

func IsModuleEnabled(cfg juno.Config, moduleName string) bool

IsModuleEnabled returns true if the module having the given name is enabled inside the provided configuration

func WatchMethod

func WatchMethod(method func() error)

WatchMethod allows to watch for a method that returns an error. It executes the given method in a goroutine, logging any error that might raise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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