config

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RootPath   string                   `json:"RootPath"`
	Port       int                      `json:"Port"`
	LogLevel   int                      `json:"LogLevel"`
	BlockChain []int64                  `json:"BlockChain"`
	Cluster    map[int64][]*NodeCluster `json:"Cluster"`
	Kafka      *Kafka                   `json:"Kafka"`
}

func LoadConfig

func LoadConfig(path string) Config

type Kafka added in v0.5.1

type Kafka struct {
	Host      string `json:"Host"`
	Port      int    `json:"Port"`
	Topic     string `json:"Topic"`
	Partition int    `json:"Partition"`
}

type NodeCluster

type NodeCluster struct {
	NodeUrl    string `json:"NodeUrl"`
	NodeToken  string `json:"NodeToken"`
	Weight     int64  `json:"Weight"`
	ErrorCount int64  `json:"ErrorCount"`
	Utxo       string `json:"Utxo"`
	Trace      bool   `json:"Trace"`
}

Jump to

Keyboard shortcuts

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