Versions in this module Expand all Collapse all v0 v0.5.0 Jun 23, 2023 v0.4.0 Jun 22, 2023 v0.3.0 Jun 22, 2023 v0.2.0 Jun 22, 2023 Changes in this version + var EnvConfig = Env("CL_CONFIG") + var EnvDatabaseAllowSimplePasswords = Env("CL_DATABASE_ALLOW_SIMPLE_PASSWORDS") + var EnvDatabaseBackupURL = EnvSecret("CL_DATABASE_BACKUP_URL") + var EnvDatabaseURL = EnvSecret("CL_DATABASE_URL") + var EnvDev = Env("CL_DEV") + var EnvExplorerAccessKey = EnvSecret("CL_EXPLORER_ACCESS_KEY") + var EnvExplorerSecret = EnvSecret("CL_EXPLORER_SECRET") + var EnvPasswordKeystore = EnvSecret("CL_PASSWORD_KEYSTORE") + var EnvPasswordVRF = EnvSecret("CL_PASSWORD_VRF") + var EnvPyroscopeAuthToken = EnvSecret("CL_PYROSCOPE_AUTH_TOKEN") + var ErrUnsupported = errors.New("unsupported with config v2") + func DecodeTOML(r io.Reader, v any) error + func Validate(cfg interface{}) (err error) + type AutoPprof struct + BlockProfileRate *int64 + CPUProfileRate *int64 + Enabled *bool + GatherDuration *models.Duration + GatherTraceDuration *models.Duration + GoroutineThreshold *int64 + MaxProfileSize *utils.FileSize + MemProfileRate *int64 + MemThreshold *utils.FileSize + MutexProfileFraction *int64 + PollInterval *models.Duration + ProfileRoot *string + type Core struct + AppID uuid.UUID + AuditLogger audit.AuditLoggerConfig + AutoPprof AutoPprof + Database Database + DevMode bool + ExplorerURL *models.URL + Feature Feature + FluxMonitor FluxMonitor + InsecureFastScrypt *bool + JobPipeline JobPipeline + Keeper Keeper + Log Log + OCR OCR + OCR2 OCR2 + P2P P2P + Pyroscope Pyroscope + RootDir *string + Sentry Sentry + ShutdownGracePeriod *models.Duration + TelemetryIngress TelemetryIngress + WebServer WebServer + func CoreDefaults() (c Core) + func (c *Core) SetFrom(f *Core) + type Database struct + Backup DatabaseBackup + DefaultIdleInTxSessionTimeout *models.Duration + DefaultLockTimeout *models.Duration + DefaultQueryTimeout *models.Duration + Dialect dialects.DialectName + Listener DatabaseListener + Lock DatabaseLock + LogQueries *bool + MaxIdleConns *int64 + MaxOpenConns *int64 + MigrateOnStartup *bool + func (d *Database) LockingMode() string + type DatabaseBackup struct + Dir *string + Frequency *models.Duration + Mode *config.DatabaseBackupMode + OnVersionUpgrade *bool + type DatabaseListener struct + FallbackPollInterval *models.Duration + MaxReconnectDuration *models.Duration + MinReconnectInterval *models.Duration + type DatabaseLock struct + Enabled *bool + LeaseDuration *models.Duration + LeaseRefreshInterval *models.Duration + func (l *DatabaseLock) ValidateConfig() (err error) + type DatabaseSecrets struct + AllowSimplePasswords bool + BackupURL *models.SecretURL + URL *models.SecretURL + func (d *DatabaseSecrets) ValidateConfig() (err error) + type Env string + func (e Env) Get() string + func (e Env) IsTrue() bool + type EnvSecret string + func (e EnvSecret) Get() models.Secret + type ErrEmpty struct + Msg string + Name string + func (e ErrEmpty) Error() string + type ErrInvalid struct + Msg string + Name string + Value any + func NewErrDuplicate(name string, value any) ErrInvalid + func (e ErrInvalid) Error() string + type ErrMissing struct + Msg string + Name string + func (e ErrMissing) Error() string + type ExplorerSecrets struct + AccessKey *models.Secret + Secret *models.Secret + type Feature struct + FeedsManager *bool + LogPoller *bool + UICSAKeys *bool + type FluxMonitor struct + DefaultTransactionQueueDepth *uint32 + SimulateTransactions *bool + type JobPipeline struct + ExternalInitiatorsEnabled *bool + HTTPRequest JobPipelineHTTPRequest + MaxRunDuration *models.Duration + MaxSuccessfulRuns *uint64 + ReaperInterval *models.Duration + ReaperThreshold *models.Duration + ResultWriteQueueDepth *uint32 + type JobPipelineHTTPRequest struct + DefaultTimeout *models.Duration + MaxSize *utils.FileSize + type Keeper struct + BaseFeeBufferPercent *uint16 + DefaultTransactionQueueDepth *uint32 + GasPriceBufferPercent *uint16 + GasTipCapBufferPercent *uint16 + MaxGracePeriod *int64 + Registry KeeperRegistry + TurnLookBack *int64 + type KeeperRegistry struct + CheckGasOverhead *uint32 + MaxPerformDataSize *uint32 + PerformGasOverhead *uint32 + SyncInterval *models.Duration + SyncUpkeepQueueSize *uint32 + type Log struct + File LogFile + JSONConsole *bool + Level *LogLevel + UnixTS *bool + type LogFile struct + Dir *string + MaxAgeDays *int64 + MaxBackups *int64 + MaxSize *utils.FileSize + type LogLevel zapcore.Level + func (l *LogLevel) UnmarshalText(text []byte) error + func (l LogLevel) CapitalString() string + func (l LogLevel) MarshalText() ([]byte, error) + func (l LogLevel) String() string + type MercuryCredentials struct + Password *models.Secret + URL *models.SecretURL + Username *models.Secret + type MercurySecrets struct + Credentials []MercuryCredentials + func (m *MercurySecrets) ValidateConfig() (err error) + type OCR struct + BlockchainTimeout *models.Duration + ContractPollInterval *models.Duration + ContractSubscribeInterval *models.Duration + DefaultTransactionQueueDepth *uint32 + Enabled *bool + KeyBundleID *models.Sha256Hash + ObservationTimeout *models.Duration + SimulateTransactions *bool + TransmitterAddress *ethkey.EIP55Address + type OCR2 struct + BlockchainTimeout *models.Duration + ContractConfirmations *uint32 + ContractPollInterval *models.Duration + ContractSubscribeInterval *models.Duration + ContractTransmitterTransmitTimeout *models.Duration + DatabaseTimeout *models.Duration + Enabled *bool + KeyBundleID *models.Sha256Hash + type P2P struct + IncomingMessageBufferSize *int64 + OutgoingMessageBufferSize *int64 + PeerID *p2pkey.PeerID + TraceLogging *bool + V1 P2PV1 + V2 P2PV2 + func (p *P2P) NetworkStack() ocrnetworking.NetworkingStack + type P2PV1 struct + AnnounceIP *net.IP + AnnouncePort *uint16 + BootstrapCheckInterval *models.Duration + DHTAnnouncementCounterUserPrefix *uint32 + DHTLookupInterval *int64 + DefaultBootstrapPeers *[]string + Enabled *bool + ListenIP *net.IP + ListenPort *uint16 + NewStreamTimeout *models.Duration + PeerstoreWriteInterval *models.Duration + func (p *P2PV1) ValidateConfig() (err error) + type P2PV2 struct + AnnounceAddresses *[]string + DefaultBootstrappers *[]ocrcommontypes.BootstrapperLocator + DeltaDial *models.Duration + DeltaReconcile *models.Duration + Enabled *bool + ListenAddresses *[]string + type Passwords struct + Keystore *models.Secret + VRF *models.Secret + func (p *Passwords) ValidateConfig() (err error) + type Pyroscope struct + Environment *string + ServerAddress *string + type PyroscopeSecrets struct + AuthToken *models.Secret + type Secrets struct + Database DatabaseSecrets + Explorer ExplorerSecrets + Mercury MercurySecrets + Password Passwords + Pyroscope PyroscopeSecrets + type Sentry struct + DSN *string + Debug *bool + Environment *string + Release *string + type TelemetryIngress struct + BufferSize *uint16 + Logging *bool + MaxBatchSize *uint16 + SendInterval *models.Duration + SendTimeout *models.Duration + ServerPubKey *string + URL *models.URL + UniConn *bool + UseBatchSend *bool + type UniqueStrings map[string]struct + func (u UniqueStrings) IsDupe(s *string) bool + func (u UniqueStrings) IsDupeFmt(t fmt.Stringer) bool + type Validated interface + ValidateConfig func() error + type WebServer struct + AllowOrigins *string + BridgeCacheTTL *models.Duration + BridgeResponseURL *models.URL + HTTPPort *uint16 + HTTPWriteTimeout *models.Duration + MFA WebServerMFA + RateLimit WebServerRateLimit + SecureCookies *bool + SessionReaperExpiration *models.Duration + SessionTimeout *models.Duration + TLS WebServerTLS + type WebServerMFA struct + RPID *string + RPOrigin *string + type WebServerRateLimit struct + Authenticated *int64 + AuthenticatedPeriod *models.Duration + Unauthenticated *int64 + UnauthenticatedPeriod *models.Duration + type WebServerTLS struct + CertPath *string + ForceRedirect *bool + HTTPSPort *uint16 + Host *string + KeyPath *string