config

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBases

func GetBases(d *Asset) (bases []moon.Base)

GetBases returns the concatenation of the constant and relative bases, sorted from most recent to least recent in time.

Types

type Asset added in v0.0.7

type Asset struct {
	Asset         coindesk.Asset      `koanf:"asset"`
	Goals         []moon.Goal         `koanf:"goals"`
	ConstantBases []moon.ConstantBase `koanf:"constantBases"`
	RelativeBases []moon.RelativeBase `koanf:"relativeBases"`
}

type Root added in v0.0.7

type Root struct {
	Defaults Asset                    `koanf:"defaults"`
	Assets   map[coindesk.Asset]Asset `koanf:"assets"`
}
var Default Root

func Load

func Load(filePath string) (r Root, err error)

func (Root) ForAsset added in v0.0.7

func (r Root) ForAsset(a coindesk.Asset) (cfg Asset)

Jump to

Keyboard shortcuts

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