config

package
v0.0.0-...-c77c525 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Index

Constants

View Source
const (
	ServiceName = "cosmoscan-api"

	Currency = "atom"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Port         string   `json:"port"`
	AllowedHosts []string `json:"allowed_hosts"`
}

type Clickhouse

type Clickhouse struct {
	Protocol string `json:"protocol"`
	Host     string `json:"host"`
	Port     uint   `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
	Database string `json:"database"`
}

type Config

type Config struct {
	API        API        `json:"api"`
	Mysql      Mysql      `json:"mysql"`
	Clickhouse Clickhouse `json:"clickhouse"`
	Parser     Parser     `json:"parser"`
	CMCKey     string     `json:"cmc_key"`
}

func GetConfig

func GetConfig() Config

type Mysql

type Mysql struct {
	Host     string `json:"host"`
	Port     string `json:"port"`
	DB       string `json:"db"`
	User     string `json:"user"`
	Password string `json:"password"`
}

type Parser

type Parser struct {
	Node     string `json:"node"`
	Batch    uint64 `json:"batch"`
	Fetchers uint64 `json:"fetchers"`
}

Jump to

Keyboard shortcuts

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