config

package
v0.0.0-...-8444db5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: AGPL-3.0 Imports: 0 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 {
	HTTP     HTTPConfig     `yaml:"http" mapstructure:"http"`
	Database DatabaseConfig `yaml:"database" mapstructure:"database"`
	IPFS     IPFSConfig     `yaml:"ipfs" mapstructure:"ipfs"`
	Indexer  IndexerConfig  `yaml:"indexer" mapstructure:"indexer"`
	Feature  FeatureConfig  `yaml:"feature" mapstructure:"feature"`
}

func NewDefault

func NewDefault() *Config

type DatabaseConfig

type DatabaseConfig struct {
	Migrations string `yaml:"migrations"  mapstructure:"migrations" env:"ARCAD_PLUGIN_MARKET_DATABASE_MIGRATIONS"`
	DSN        string `yaml:"dsn" mapstructure:"dsn" env:"ARCAD_PLUGIN_MARKET_DATABASE_DSN"`
}

type FeatureConfig

type FeatureConfig struct {
	RegistrationEnabled bool `yaml:"registrationEnabled" mapstructure:"registrationEnabled" env:"ARCAD_PLUGIN_MARKET_FEATURE_REGISTRATION_ENABLED"`
}

type HTTPConfig

type HTTPConfig struct {
	Address string `yaml:"address" mapstructure:"address" env:"ARCAD_PLUGIN_MARKET_HTTP_ADDRESS"`
}

type IPFSConfig

type IPFSConfig struct {
	GatewayURL string `yaml:"gatewayUrl" mapstructure:"gatewayUrl" env:"ARCAD_PLUGIN_MARKET_IPFS_GATEWAY_URL"`
}

type IndexerConfig

type IndexerConfig struct {
	Path            string `yaml:"path" mapstructure:"path" env:"ARCAD_PLUGIN_MARKET_INDEXER_PATH"`
	DefaultAnalyzer string `yaml:"defaultAnalyzer" mapstructure:"defaultAnalyzer" env:"ARCAD_PLUGIN_MARKET_INDEXER_DEFAULT_ANALYZER"`
}

Jump to

Keyboard shortcuts

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