app

package
v0.0.0-...-ddfbed8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(config Config) *App

func (*App) Close

func (a *App) Close()

func (*App) NewStore

func (a *App) NewStore() *store.DB

NewStore returns a new instance of store.DB

func (*App) Run

func (a *App) Run()

Run starts all services and block until they are gracefully shut down.

func (*App) RunBackendWorker

func (a *App) RunBackendWorker()

RunBackendWorker starts backend worker responsible for building and signing transactions

func (*App) RunHTTPServer

func (a *App) RunHTTPServer()

RunHTTPServer starts http server

type Config

type Config struct {
	Port      uint16 `toml:"port" valid:"-"`
	AdminPort uint16 `toml:"admin_port" valid:"-"`

	PostgresDSN string `toml:"postgres_dsn" valid:"-"`

	HorizonURL           string `toml:"horizon_url" valid:"-"`
	NetworkPassphrase    string `toml:"network_passphrase" valid:"-"`
	StellarBridgeAccount string `toml:"stellar_bridge_account" valid:"stellar_accountid"`
	StellarPrivateKey    string `toml:"stellar_private_key" valid:"stellar_seed"`

	EthereumRPCURL              string `toml:"ethereum_rpc_url" valid:"-"`
	EthereumBridgeAddress       string `toml:"ethereum_bridge_address" valid:"-"`
	EthereumBridgeConfigVersion uint32 `toml:"ethereum_bridge_config_version" valid:"-"`
	EthereumPrivateKey          string `toml:"ethereum_private_key" valid:"-"`

	AssetMapping []backend.AssetMappingConfigEntry `toml:"asset_mapping" valid:"-"`

	EthereumFinalityBuffer uint64        `toml:"-" valid:"-"`
	WithdrawalWindow       time.Duration `toml:"-" valid:"-"`
}

Jump to

Keyboard shortcuts

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