config

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: GPL-3.0 Imports: 2 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 {
	Server        *Server              `json:"server"`
	RpcUrls       []Rpc                `json:"rpcUrls"`
	NonceManager  *NonceManagerConfig  `json:"nonceManager"`
	WalletManager *WalletManagerConfig `json:"walletManager"`
}

func NewConfig

func NewConfig(filename string) (*Config, error)

type NonceManagerConfig

type NonceManagerConfig struct {
	AutoSync      bool        `json:"autoSync"`
	SyncInterval  uint64      `json:"syncInterval"`
	SyncAfter     uint64      `json:"syncAfter"`
	StorageType   string      `json:"storageType"`
	StorageConfig interface{} `json:"storageConfig"`
	AuthBySig     bool        `json:"authBySig"`
	ApiKey        string      `json:"apiKey"`
}

type Rpc

type Rpc struct {
	ChainId uint64 `json:"chainId"`
	Url     string `json:"url"`
}

type Server

type Server struct {
	Hostname   string `json:"hostname"`
	Port       int    `json:"port"`
	LogLevel   string `json:"logLevel"`
	CertPath   string `json:"certPath"`
	KeyPath    string `json:"keyPath"`
	CACertPath string `json:"caCertPath"`
}

type WalletManagerConfig

type WalletManagerConfig struct {
	StorageType   string      `json:"storageType"`
	StorageConfig interface{} `json:"storageConfig"`
}

Jump to

Keyboard shortcuts

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