Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultConfigPath = "claimer_conf.toml"
DefaultConfigPath is the default expected path for the claimer's configuration
This is a relative path, and can be prepended as necessary
Variables ¶
This section is empty.
Functions ¶
func Claim ¶
func Claim(config *Config, logger *log.Entry) http.HandlerFunc
Claim returns a HandlerFunc which claims a node reward
func NewClaimService ¶
NewClaimService constructs a new claim service
Types ¶
type Config ¶
type Config struct { // URL to the API address of a node NodeAPI string `toml:"node_api"` // The Nodes map actually maps an address to a list of private keys Nodes map[string][]string `toml:"nodes"` // If set and true, operate in synchronous mode: wait for the blockchain // to return before returning from a request. SyncMode *bool `toml:"sync_mode"` }
Config configures the claimer
func LoadConfig ¶
LoadConfig loads the configuration data
func LoadConfigData ¶
LoadConfigData loads the configuration data from a streaming reader
This is useful if for example the data is not stored in the local filesystem
Click to show internal directories.
Click to hide internal directories.