Versions in this module Expand all Collapse all v0 v0.1.1 Jan 25, 2024 Changes in this version + const CaptiveCoreConfigPathName + const DatabaseURLFlagName + const DiamcircleCoreBinaryPathName + const DiamcircleCoreDBURLFlagName + const DiamcircleCoreURLFlagName + 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) AuroraSession() db.SessionInterface + 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) Ingestion() ingest.System + func (a *App) Serve() error + func (a *App) Tick(ctx context.Context) error + func (a *App) UpdateAuroraLedgerState(ctx context.Context) + func (a *App) UpdateCoreLedgerState(ctx context.Context) + func (a *App) UpdateDiamcircleCoreInfo(ctx context.Context) error + func (a *App) UpdateFeeStatsState(ctx context.Context) + type ApplyOptions struct + AlwaysIngest bool + RequireCaptiveCoreConfig bool + type Config struct + AdminPort uint + ApplyMigrations bool + AuroraDBMaxIdleConnections int + AuroraDBMaxOpenConnections int + BehindAWSLoadBalancer bool + BehindCloudflare bool + CaptiveCoreBinaryPath string + CaptiveCoreConfigPath string + CaptiveCoreReuseStoragePath bool + CaptiveCoreStoragePath string + CaptiveCoreToml *ledgerbackend.CaptiveCoreToml + CaptiveCoreTomlParams ledgerbackend.CaptiveCoreTomlParams + CheckpointFrequency uint32 + ConnectionTimeout time.Duration + CursorName string + DatabaseURL string + DiamcircleCoreDatabaseURL string + DiamcircleCoreURL string + DisablePoolPathFinding bool + EnableCaptiveCoreIngestion bool + FriendbotURL *url.URL + HistoryArchiveURLs []string + HistoryRetentionCount uint + Ingest bool + IngestDisableStateVerification bool + IngestEnableExtendedLogLedgerStats bool + LogFile string + LogLevel logrus.Level + LogglyTag string + LogglyToken string + MaxAssetsPerPathRequest int + MaxDBConnections int + MaxPathLength uint + NetworkPassphrase string + Port uint + RateQuota *throttled.RateQuota + RemoteCaptiveCoreURL string + RoDatabaseURL string + SSEUpdateFrequency time.Duration + SentryDSN string + SkipCursorUpdate bool + StaleThreshold uint + TLSCert string + TLSKey string + UsingDefaultPubnetConfig bool + func Flags() (*Config, support.ConfigOptions)