configuration

package
v0.0.0-...-fe50809 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 3 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 {
	App      configuration.AppConfig `yaml:"app"`
	Pulsar   pulsar.PulsarConfig     `yaml:"pulsar"`
	Gemini   GeminiConfig            `yaml:"gemini"`
	Postgres postgres.PostgresConfig `yaml:"postgres"`
}

type GeminiConfig

type GeminiConfig struct {
	Id           string    `yaml:"id" env:"OMIGA_GEMINI_ID"`
	ApiUrl       string    `yaml:"apiUrl" env:"OMIGA_GEMINI_APIURL"`
	WebsocketUrl string    `yaml:"websocketUrl" env:"OMIGA_GEMINI_WEBSOCKETURL"`
	Timeout      int       `yaml:"timeout" env:"OMIGA_GEMINI_TIMEOUT"`
	OrderBook    OrderBook `yaml:"orderBook"`
}

type MarketConfig

type MarketConfig struct {
	Market string `yaml:"market"`
}

type OrderBook

type OrderBook struct {
	Markets []MarketConfig `yaml:"markets"`
}

Jump to

Keyboard shortcuts

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