Documentation ¶
Index ¶
- Constants
- func CreateDBClients(config DBConfig) (*sql.DB, error)
- func Monitor(config Config)
- func MustMonitorFromViper()
- func ParallelQueryRpc[T any](ctx context.Context, nodes []string, ...) (map[string]*QueryRpcResult[T], error)
- type Config
- type DBConfig
- type KvNode
- type QueryRpcResult
- type StorageNode
Constants ¶
View Source
const ( NodeDisconnected string = "DISCONNECTED" NodeConnected string = "CONNECTED" )
View Source
const DefaultTimeout = 2 * time.Second
View Source
const ValidatorFile = "data/validator_rpcs.csv"
Variables ¶
This section is empty.
Functions ¶
func MustMonitorFromViper ¶
func MustMonitorFromViper()
Types ¶
type KvNode ¶
type KvNode struct {
// contains filtered or unexported fields
}
func MustNewKvNode ¶
func (*KvNode) CheckStatus ¶
func (kvNode *KvNode) CheckStatus(config health.TimedCounterConfig)
func (*KvNode) CheckStatusSilence ¶
func (kvNode *KvNode) CheckStatusSilence(config health.TimedCounterConfig, db *sql.DB)
type StorageNode ¶
type StorageNode struct {
// contains filtered or unexported fields
}
func MustNewStorageNode ¶
func MustNewStorageNode(discordId, validatorAddress, ip string) *StorageNode
func NewStorageNode ¶
func NewStorageNode(discordId, validatorAddress, ip string) (*StorageNode, error)
func (*StorageNode) CheckStatus ¶
func (storageNode *StorageNode) CheckStatus(config health.TimedCounterConfig)
func (*StorageNode) CheckStatusSilence ¶
func (storageNode *StorageNode) CheckStatusSilence(config health.TimedCounterConfig, db *sql.DB)
Click to show internal directories.
Click to hide internal directories.