config

package
v0.0.5-alpha.9 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigPath = "config"
	VoteMode   = "vote-mode"
)

Variables

This section is empty.

Functions

func Init

func Init()

Types

type ConfigType

type ConfigType struct {
	Title string `json:"title"`

	Validator struct {
		OperatorAddr string `json:"operatorAddr"`
	}
	Feeder struct {
		Name     string `json:"name"`
		Password string `json:"password"`
	}
	APIs struct {
		Luna struct {
			Krw struct {
				Coinone string `json:"coinone"`
				Bithumb string `json:"bithumb"`
			}
			Usd struct {
				Binance string `json:"binance"`
			}
		}

		Stables struct {
			Currencylayer string `json:"currencylayer"`
		}

		Sdr struct {
			Imf string `json:"imf"`
		}

		Band struct {
			Active bool   `json:"active"`
			Band   string `json:"band"`
		}
	}
	Options struct {
		Interval struct {
			Luna    time.Duration `json:"luna"`
			Stables time.Duration `json:"stables"`
		}
	}
}
var (
	Config ConfigType
)

Jump to

Keyboard shortcuts

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