Documentation
¶
Index ¶
- Constants
- func GetBlockNumber(url string) (uint64, error)
- func PeekUrlHost(rawURL string) (string, error)
- func PrettyElapsed(elapsed time.Duration) string
- func ReplacePort(originalURL string, newPort string) (string, error)
- func SafeStartGoroutine(do func())
- func StartAction(action func(), wg *sync.WaitGroup)
- func StartDeamon(do func())
- type SizedWaitGroup
Constants ¶
View Source
const (
BlockChainRpc = "https://evmrpc-testnet.0g.ai"
)
Variables ¶
This section is empty.
Functions ¶
func GetBlockNumber ¶
func PeekUrlHost ¶
func PrettyElapsed ¶
func SafeStartGoroutine ¶
func SafeStartGoroutine(do func())
func StartAction ¶
func StartDeamon ¶
func StartDeamon(do func())
Types ¶
type SizedWaitGroup ¶
type SizedWaitGroup struct { Size int // contains filtered or unexported fields }
func NewSizedWaitGroup ¶
func NewSizedWaitGroup(limit int) SizedWaitGroup
func (*SizedWaitGroup) Add ¶
func (s *SizedWaitGroup) Add()
func (*SizedWaitGroup) AddWithContext ¶
func (s *SizedWaitGroup) AddWithContext(ctx context.Context) error
func (*SizedWaitGroup) Done ¶
func (s *SizedWaitGroup) Done()
func (*SizedWaitGroup) Wait ¶
func (s *SizedWaitGroup) Wait()
Click to show internal directories.
Click to hide internal directories.