config

package
v0.0.0-...-49025f2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT 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 {
	API struct {
		Port string `yaml:"port"`
	} `yaml:"api"`
	DB struct {
		Port string `yaml:"port"`
		ID   int    `yaml:"id"`
	} `yaml:"db"`
	Settings struct {
		Skills Tiers
		Jobs   struct {
			ServiceFee   string `yaml:"service_fee"`
			StickyPrices struct {
				Week   string `yaml:"7_days"`
				Biweek string `yaml:"14_days"`
				Month  string `yaml:"30_days"`
			} `yaml:"sticky_prices"`
		} `yaml:"jobs"`
	} `yaml:"settings"`
	ContractAddresses struct {
		StarterNFT    string `yaml:"starter_nft"`
		MembershipNFT string `yaml:"membership_nft"`
		JobPayments   string `yaml:"job_payments"`
		Registry      string `yaml:"registry"`
		Escrow        string `yaml:"escrow"`
	} `yaml:"contract_addresses"`
	Network struct {
		Eth struct {
			ID int `yaml:"id"`
		} `yaml:"eth"`
		Arbitrum struct {
			ID int `yaml:"id"`
		} `yaml:"arbitrum"`
	} `yaml:"network"`
}

func ParseConfig

func ParseConfig() (*Config, error)

type Tiers

type Tiers struct {
	Tier_1 int `yaml:"tier_1"`
	Tier_2 int `yaml:"tier_2"`
	Tier_3 int `yaml:"tier_3"`
}

Jump to

Keyboard shortcuts

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