Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = "terra-worker" Version string GitSHA string Timestamp string )
Functions ¶
func IdentityString ¶
func IdentityString() string
IdentityString returns the full app version string
Types ¶
type Config ¶
type Config struct { AppEnv string `json:"app_env" envconfig:"APP_ENV" default:"development"` Address string `json:"address" envconfig:"ADDRESS" default:"0.0.0.0"` Port string `json:"port" envconfig:"PORT" default:"3000"` HTTPPort string `json:"http_port" envconfig:"HTTP_PORT" default:"8087"` Managers string `json:"managers" envconfig:"MANAGERS" default:"127.0.0.1:8085"` ManagerInterval time.Duration `json:"manager_interval" envconfig:"MANAGER_INTERVAL" default:"10s"` Hostname string `json:"hostname" envconfig:"HOSTNAME"` GrpcMaxRecvSize int `json:"grpc_max_recv_size" envconfig:"GRPC_MAX_RECV_SIZE" default:"1073741824"` // 1024^3 GrpcMaxSendSize int `json:"grpc_max_send_size" envconfig:"GRPC_MAX_SEND_SIZE" default:"1073741824"` // 1024^3 TerraGRPCAddr string `json:"terra_grpc_addr" envconfig:"TERRA_GRPC_ADDR" required:"true"` DatahubKey string `json:"datahub_key" envconfig:"DATAHUB_KEY"` ChainID string `json:"chain_id" envconfig:"CHAIN_ID"` TLSMode string `json:"tls_mode" envconfig:"TLS_MODE" default:""` RequestsPerSecond int64 `json:"requests_per_second" envconfig:"REQUESTS_PER_SECOND" default:"33"` StoreHTTPEndpoints string `json:"store_http_endpoints" envconfig:"STORE_HTTP_ENDPOINTS"` HealthCheckInterval time.Duration `json:"health_check_interval" envconfig:"HEALTH_CHECK_INTERVAL" default:"10s"` TimeoutBlockCall time.Duration `json:"timeout_block_call" envconfig:"TIMEOUT_BLOCK_CALL" default:"30s"` TimeoutTransactionCall time.Duration `json:"timeout_transaction_call" envconfig:"TIMEOUT_TRANSACTION_CALL" default:"30s"` }
Config holds the configuration data
Click to show internal directories.
Click to hide internal directories.