Versions in this module Expand all Collapse all v0 v0.0.1 Nov 25, 2022 Changes in this version + const CaptiveCoreConfigPathName + const CaptiveCoreConfigUseDB + const DatabaseURLFlagName + const IngestFlagName + const StellarCoreBinaryPathName + const StellarCoreDBURLFlagName + const StellarCoreURLFlagName + func ApplyFlags(config *Config, flags support.ConfigOptions, options ApplyOptions) error + type App struct + func NewApp(config Config) (*App, error) + func NewAppFromFlags(config *Config, flags support.ConfigOptions) (*App, error) + func (a *App) Close() + func (a *App) CloseDB() + func (a *App) Config() Config + func (a *App) DeleteUnretainedHistory(ctx context.Context) error + func (a *App) GetCoreState() corestate.State + func (a *App) HistoryQ() *history.Q + func (a *App) HorizonSession() db.SessionInterface + func (a *App) Paths() paths.Finder + func (a *App) Serve() error + func (a *App) Tick(ctx context.Context) error + func (a *App) UpdateCoreLedgerState(ctx context.Context) + func (a *App) UpdateFeeStatsState(ctx context.Context) + func (a *App) UpdateHorizonLedgerState(ctx context.Context) + func (a *App) UpdateStellarCoreInfo(ctx context.Context) error + type ApplyOptions struct + AlwaysIngest bool + RequireCaptiveCoreConfig bool + type Config struct + AdminPort uint + ApplyMigrations bool + BehindAWSLoadBalancer bool + BehindCloudflare bool + CaptiveCoreBinaryPath string + CaptiveCoreConfigPath string + CaptiveCoreConfigUseDB bool + CaptiveCoreReuseStoragePath bool + CaptiveCoreStoragePath string + CaptiveCoreToml *ledgerbackend.CaptiveCoreToml + CaptiveCoreTomlParams ledgerbackend.CaptiveCoreTomlParams + CheckpointFrequency uint32 + ConnectionTimeout time.Duration + CursorName string + DatabaseURL string + DisablePathFinding bool + DisablePoolPathFinding bool + EnableCaptiveCoreIngestion bool + EnableIngestionFiltering bool + FriendbotURL *url.URL + HistoryArchiveURLs []string + HistoryRetentionCount uint + HorizonDBMaxIdleConnections int + HorizonDBMaxOpenConnections int + Ingest bool + IngestDisableStateVerification bool + IngestEnableExtendedLogLedgerStats bool + LogFile string + LogLevel logrus.Level + LogglyTag string + LogglyToken string + MaxAssetsPerPathRequest int + MaxDBConnections int + MaxPathFindingRequests uint + MaxPathLength uint + NetworkPassphrase string + Port uint + RateQuota *throttled.RateQuota + RemoteCaptiveCoreURL string + RoDatabaseURL string + RoundingSlippageFilter int + SSEUpdateFrequency time.Duration + SentryDSN string + SkipCursorUpdate bool + StaleThreshold uint + StellarCoreDatabaseURL string + StellarCoreURL string + TLSCert string + TLSKey string + UsingDefaultPubnetConfig bool + func Flags() (*Config, support.ConfigOptions)