config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Address string `yaml:"address" default:"0.0.0.0"`
	Port    int    `yaml:"port" default:"8080"`
}

type Config

type Config struct {
	Api        Api        `yaml:"api"`
	Datasource Datasource `yaml:"datasource"`
}

func New

func New(configFile string) (*Config, error)

type Datasource

type Datasource struct {
	CardanoDbSync DatasourceCardanoDbSync `yaml:"cardanodbsync"`
}

type DatasourceCardanoDbSync

type DatasourceCardanoDbSync struct {
	Host     string `yaml:"host" default:"localhost"`
	Port     int    `yaml:"port" default:"5432"`
	Username string `yaml:"username" default:"postgres"`
	Password string `yaml:"password" default:"changeme"`
	DbName   string `yaml:"dbname" default:"cexplorer"`
	SslMode  string `yaml:"sslmode" default:"prefer"`
}

Jump to

Keyboard shortcuts

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