internal

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package internal contains all logic for monitoring service

Package internal contains all logic for monitoring service

Package internal contains all logic for monitoring service

Package internal contains all logic for monitoring service

Package internal contains all logic for monitoring service

Package internal contains all logic for monitoring service

Index

Constants

This section is empty.

Variables

View Source
var ProxyUrls = map[network]string{
	// contains filtered or unexported fields
}

ProxyUrls for proxy urls

View Source
var RelayURLS = map[network]string{
	// contains filtered or unexported fields
}

RelayURLS for relay urls

View Source
var SubstrateURLs = map[network][]string{
	// contains filtered or unexported fields
}

SubstrateURLs for substrate urls

Functions

func TryDecodeBase64OrElse

func TryDecodeBase64OrElse(possiblyEncoded string) []byte

TryDecodeBase64OrElse tries to decode a possibly base64 encoded string into a byte array or returns the string as a byte array assuming it was decoded already

Types

type GridProxyClient

type GridProxyClient struct {
	// contains filtered or unexported fields
}

GridProxyClient struct

func NewGridProxyClient

func NewGridProxyClient(endpoint string) (*GridProxyClient, error)

NewGridProxyClient generates a new proxy client for endpoint

func (GridProxyClient) Ping

func (r GridProxyClient) Ping() error

Ping send a GET request to grid proxy ping endpoint and checks the response for pong

type Identity

type Identity substrate.Identity

Identity is the user identity to be used in substrate

func NewIdentityFromSr25519Phrase

func NewIdentityFromSr25519Phrase(phrase string) (Identity, error)

NewIdentityFromSr25519Phrase generates a new Sr25519 identity from mnemonics

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

Monitor for bot monitoring

func NewMonitor

func NewMonitor(envPath string, jsonPath string) (Monitor, error)

NewMonitor creates a new instance of monitor

func (*Monitor) Start

func (m *Monitor) Start()

Start starting the monitoring service

Jump to

Keyboard shortcuts

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