Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.6.18 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const SYSTEM_MODE_EVENT_STORE = "EVENT_STORE"
View Source
const SYSTEM_MODE_TENDERMINT_DIRECT = "TENDERMINT_DIRECT"

Variables

This section is empty.

Functions

This section is empty.

Types

type Blockchain

type Blockchain struct {
	BondingDenom           string `yaml:"bonding_denom" toml:"bonding_denom" xml:"bonding_denom" json:"bonding_denom,omitempty"`
	AccountAddressPrefix   string `` /* 128-byte string literal not displayed */
	AccountPubKeyPrefix    string `` /* 128-byte string literal not displayed */
	ValidatorAddressPrefix string `` /* 136-byte string literal not displayed */
	ValidatorPubKeyPrefix  string `` /* 136-byte string literal not displayed */
	ConNodeAddressPrefix   string `` /* 132-byte string literal not displayed */
	ConNodePubKeyPrefix    string `` /* 132-byte string literal not displayed */
}

type Config

type Config struct {
	Blockchain    Blockchain    `yaml:"blockchain" toml:"blockchain" xml:"blockchain" json:"blockchain"`
	IndexService  IndexService  `yaml:"index_service" toml:"index_service" xml:"index_service" json:"index_service"`
	HTTPService   HTTPService   `yaml:"http_service" toml:"http_service" xml:"http_service" json:"http_service"`
	TendermintApp TendermintApp `yaml:"tendermint_app" toml:"tendermint_app" xml:"tendermint_app" json:"tendermint_app"`
	CosmosApp     CosmosApp     `yaml:"cosmos_app" toml:"cosmos_app" xml:"cosmos_app" json:"cosmos_app"`
	Debug         Debug         `yaml:"debug" toml:"debug" xml:"debug" json:"debug"`
	Postgres      Postgres      `yaml:"postgres" toml:"postgres" xml:"postgres" json:"postgres"`
	Logger        Logger        `yaml:"logger" toml:"logger" xml:"logger" json:"logger"`
	Prometheus    Prometheus    `yaml:"prometheus" toml:"prometheus" xml:"prometheus" json:"prometheus"`
}

type CosmosApp

type CosmosApp struct {
	HTTPRPCUrl string `yaml:"http_rpc_url" toml:"http_rpc_url" xml:"http_rpc_url" json:"http_rpc_url,omitempty"`
	Insecure   bool   `yaml:"insecure" toml:"insecure" xml:"insecure" json:"insecure,omitempty"`
}

type CosmosVersionEnabledHeight

type CosmosVersionEnabledHeight struct {
	V0_42_7 uint64 `yaml:"v_0_42_7" toml:"v_0_42_7" xml:"v_0_42_7" json:"v_0_42_7,omitempty"`
}

type CronJob

type CronJob struct {
	Enables      []string               `yaml:"enables" toml:"enables" xml:"enables" json:"enables,omitempty"`
	ExtraConfigs map[string]interface{} `yaml:"extra_configs" toml:"extra_configs" xml:"extra_configs" json:"extra_configs,omitempty"`
}

type Debug

type Debug struct {
	PprofEnable           bool   `yaml:"pprof_enable" toml:"pprof_enable" xml:"pprof_enable" json:"pprof_enable,omitempty"`
	PprofListeningAddress string `` /* 132-byte string literal not displayed */
}

type GithubAPI

type GithubAPI struct {
	Username         string `yaml:"username" toml:"username" xml:"username" json:"username,omitempty"`
	Token            string `yaml:"token" toml:"token" xml:"token" json:"token,omitempty"`
	MigrationRepoRef string `yaml:"migration_repo_ref" toml:"migration_repo_ref" xml:"migration_repo_ref" json:"migration_repo_ref,omitempty"`
}

type HTTPService

type HTTPService struct {
	Enable             bool     `yaml:"enable" toml:"enable" xml:"enable" json:"enable,omitempty"`
	ListeningAddress   string   `yaml:"listening_address" toml:"listening_address" xml:"listening_address" json:"listening_address,omitempty"`
	RoutePrefix        string   `yaml:"route_prefix" toml:"route_prefix" xml:"route_prefix" json:"route_prefix,omitempty"`
	CorsAllowedOrigins []string `yaml:"cors_allowed_origins" toml:"cors_allowed_origins" xml:"cors_allowed_origins" json:"cors_allowed_origins,omitempty"`
	CorsAllowedMethods []string `yaml:"cors_allowed_methods" toml:"cors_allowed_methods" xml:"cors_allowed_methods" json:"cors_allowed_methods,omitempty"`
	CorsAllowedHeaders []string `yaml:"cors_allowed_headers" toml:"cors_allowed_headers" xml:"cors_allowed_headers" json:"cors_allowed_headers,omitempty"`
}

type IndexService

type IndexService struct {
	Enable                     bool                       `yaml:"enable" toml:"enable" xml:"enable" json:"enable,omitempty"`
	StartingBlockHeight        int64                      `yaml:"starting_block_height" toml:"starting_block_height" xml:"starting_block_height" json:"starting_block_height,omitempty"`
	Mode                       string                     `yaml:"mode" toml:"mode" xml:"mode" json:"mode,omitempty"`
	WindowSize                 int                        `yaml:"window_size" toml:"window_size" xml:"window_size" json:"window_size,omitempty"`
	Projection                 Projection                 `yaml:"projection" toml:"projection" xml:"projection" json:"projection"`
	CronJob                    CronJob                    `yaml:"cron_job" toml:"cron_job" xml:"cron_job" json:"cron_job"`
	CosmosVersionEnabledHeight CosmosVersionEnabledHeight `` /* 146-byte string literal not displayed */
	GithubAPI                  GithubAPI                  `yaml:"github_api" toml:"github_api" xml:"github_api" json:"github_api"`
}

type Logger

type Logger struct {
	Level string `yaml:"level" toml:"level" xml:"level" json:"level,omitempty"`
	Color bool   `yaml:"color" toml:"color" xml:"color" json:"color,omitempty"`
}

type Postgres

type Postgres struct {
	SSL                     bool   `yaml:"ssl" toml:"ssl" xml:"ssl" json:"ssl,omitempty"`
	Host                    string `yaml:"host" toml:"host" xml:"host" json:"host,omitempty"`
	Port                    int32  `yaml:"port" toml:"port" xml:"port" json:"port,omitempty"`
	Username                string `yaml:"username" toml:"username" xml:"username" json:"username,omitempty"`
	Password                string `yaml:"password" toml:"password" xml:"password" json:"password,omitempty"`
	Name                    string `yaml:"name" toml:"name" xml:"name" json:"name,omitempty"`
	Schema                  string `yaml:"schema" toml:"schema" xml:"schema" json:"schema,omitempty"`
	PoolMaxConns            int32  `yaml:"pool_max_conns" toml:"pool_max_conns" xml:"pool_max_conns" json:"pool_max_conns,omitempty"`
	PoolMinConns            int32  `yaml:"pool_min_conns" toml:"pool_min_conns" xml:"pool_min_conns" json:"pool_min_conns,omitempty"`
	PoolMaxConnLifeTime     string `` /* 132-byte string literal not displayed */
	PoolMaxConnIdleTime     string `` /* 132-byte string literal not displayed */
	PoolHealthCheckInterval string `` /* 144-byte string literal not displayed */
}

type Projection

type Projection struct {
	Enables      []string               `yaml:"enables" toml:"enables" xml:"enables" json:"enables,omitempty"`
	ExtraConfigs map[string]interface{} `yaml:"extra_configs" toml:"extra_configs" xml:"extra_configs" json:"extra_configs,omitempty"`
}

type Prometheus

type Prometheus struct {
	Enable     bool   `yaml:"enable" toml:"enable" xml:"enable" json:"enable,omitempty"`
	ExportPath string `yaml:"export_path" toml:"export_path" xml:"export_path" json:"export_path,omitempty"`
	Port       string `yaml:"port" toml:"port" xml:"port" json:"port,omitempty"`
}

type TendermintApp

type TendermintApp struct {
	HTTPRPCUrl           string `yaml:"http_rpc_url" toml:"http_rpc_url" xml:"http_rpc_url" json:"http_rpc_url,omitempty"`
	Insecure             bool   `yaml:"insecure" toml:"insecure" xml:"insecure" json:"insecure,omitempty"`
	StrictGenesisParsing bool   `` /* 128-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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