Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRollbar ¶ added in v0.5.0
func InitRollbar(cfg *Config)
InitRollbar initializes the Rollbar integration
Types ¶
type Config ¶
type Config struct { AppEnv string `json:"app_env" envconfig:"APP_ENV" default:"development"` RPCEndpoint string `json:"rpc_endpoint" envconfig:"RPC_ENDPOINT"` RPCTimeout string `json:"rpc_timeout" envconfig:"RPC_TIMEOUT" default:"30s"` DatabaseDSN string `json:"database_dsn" envconfig:"DATABASE_DSN"` ServerAddr string `json:"server_addr" envconfig:"SERVER_ADDR" default:"0.0.0.0"` ServerPort uint16 `json:"server_port" envconfig:"SERVER_PORT" default:"8080"` InitialHeight int64 `json:"initial_height" envconfig:"INITIAL_HEIGHT"` BatchSize int64 `json:"batch_size" envconfig:"BATCH_SIZE"` RollbarToken string `json:"rollbar_token" envconfig:"ROLLBAR_TOKEN"` RollbarServerRoot string `json:"rollbar_server_root" envconfig:"ROLLBAR_SERVER_ROOT"` Debug bool `json:"debug" envconfig:"DEBUG"` // contains filtered or unexported fields }
Config holds the configuration data
func (*Config) ClientTimeout ¶ added in v0.4.0
ClientTimeout returns the timeout for the RPC client
func (*Config) ListenAddr ¶
ListenAddr returns the listen address for the API server
Click to show internal directories.
Click to hide internal directories.