config

package
v0.0.0-...-586b9f0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 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 {
	Admin struct {
		MaxLiveInstances int `yaml:"max_live_instances"`
		InstanceInterval int `yaml:"instance_interval"`
		MaxTotalBots     int `yaml:"max_total_bots"`
	} `yaml:"admin"`
	Bot struct {
		Address struct {
			Router  string `yaml:"router"`
			Factory string `yaml:"factory"`
			Weth    string `yaml:"weth"`
			Token   string `yaml:"token"`
		} `yaml:"address"`
		Config struct {
			ChainId      int `yaml:"chainid"`
			SwapInterval int `yaml:"swap_interval"`
			MaxSwaps     int `yaml:"max_swaps"`
		}
	}
}

Config

func ParseConfig

func ParseConfig(filename string) (*Config, error)

ParseConfig

Jump to

Keyboard shortcuts

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