fragmos

package module
v0.0.0-...-4d08dca Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 1 Imported by: 0

README

fragmos

Blockchain

Documentation

Index

Constants

View Source
const (
	MINING_SENDER = "THE BLOCKCHAIN"
	MINING_REWARD = 1.0 // Reward of 1.0 worth of crypto currency
)

Variables

View Source
var (
	MINING_DIFFICULTY = 3
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Home             string        `env:"HOME"`
	MiningDifficulty int           `env:"FRAGMOS_MINING_DIFFICULTY"`
	Port             int           `env:"PORT" envDefault:"3030"`
	Password         string        `env:"PASSWORD,unset"`
	IsProduction     bool          `env:"PRODUCTION"`
	Hosts            []string      `env:"HOSTS" envSeparator:":"`
	Duration         time.Duration `env:"DURATION"`
	TempFolder       string        `env:"TEMP_FOLDER" envDefault:"${HOME}/tmp" envExpand:"true"`
}

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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