Versions in this module Expand all Collapse all v1 v1.0.1 May 31, 2024 v1.0.0 May 29, 2024 v0 v0.9.9-rc9 May 28, 2024 v0.9.9-rc8 May 28, 2024 v0.9.9-rc7 May 28, 2024 v0.9.9-rc6 May 27, 2024 v0.9.9-rc5 May 27, 2024 v0.9.9-rc4 May 27, 2024 v0.9.9-rc3 May 27, 2024 v0.9.9-rc2 May 26, 2024 v0.9.9-rc10 May 29, 2024 v0.9.9-rc1 May 26, 2024 v0.9.8 May 26, 2024 Changes in this version type Storage + LibrariesPath string v0.9.7 May 25, 2024 Changes in this version + type Contact struct + Email string + Name string + URL string type Cors + Enabled bool + type License struct + Name string + URL string + type OpenAPI struct + Contact Contact + Description string + License License + Servers []Server + Terms string + Title string + Version string type Options + Rest Rest + type Rest struct + Addr string + Cors Cors + Enabled bool + Namespaces []string + OpenAPI OpenAPI + RenderHiddenOperations bool + type Server struct + Description string + Enabled bool + Url string v0.9.6 May 20, 2024 Changes in this version type Rpc + Namespaces []string v0.9.5 May 20, 2024 Changes in this version + func GetModule[T ModuleConfig](name string) (T, bool) + func PathToSlice(path string) []string + func SetGlobalOptions(opt *Options) + type Cache struct + Addr string + DB int + DialTimeout time.Duration + MaxRetries int + MaxRetryBackoff time.Duration + MinRetryBackoff time.Duration + Password string + ReadTimeout time.Duration + WriteTimeout time.Duration + type Cloudflare struct + AccountID string + ApiToken string + BucketName string + BucketScope string + DatasetPath string + Enabled bool + type Cors struct + AllowCredentials bool + AllowedHeaders []string + AllowedMethods []string + AllowedOrigins []string + Debug bool + ExposedHeaders []string + MaxAge int + OptionsPassthrough bool + type Db struct + Dialects []Dialect + type Dialect struct + Compression string + ConnectionMaxLifetime string + Database string + Datasource string + DialTimeout string + Enabled bool + Endpoints []string + Insecure bool + MaxIdleConnections int + MaxOpenConnections int + MigrationDir string + Name string + Password string + Tls bool + Username string + func (d Dialect) GetAddrs() []string + func (d Dialect) GetPorts() []string + type GraphQL struct + Addr string + Cache GraphQLCache + Cors Cors + Transports []string + func (g *GraphQL) TransportEnabled(t string) bool + type GraphQLCache struct + Adapter string + QueryCacheDuration time.Duration + type Indexer struct + Subscribers []Subscriber + func (s *Indexer) GetByType(t string) (*Subscriber, error) + type Ipfs struct + Addr string + Enabled bool + type Labels struct + DataPath string + type Logger struct + Env string + Level string + type ModuleConfig interface + Validate func() error + type Nats struct + Addr string + Enabled bool + Queues []Queue + func (n *Nats) GetQueueByName(name string) (*Queue, bool) + type Network struct + CanonicalName string + Maintenance bool + Name string + NetworkId int + Suspended bool + Symbol string + Website string + type Options struct + Cache Cache + Clients *clients.Options + Cloudflare Cloudflare + Db Db + Etherscan *etherscan.Options + Graphql GraphQL + Indexer Indexer + Ipfs Ipfs + Labels Labels + Logger Logger + Modules map[string]ModuleConfig + Nats Nats + Networks []Network + OptionsPath string + Pprof []Pprof + Rpc Rpc + Solc Solc + Sourcify Sourcify + Stats []Prometheus + Storage Storage + Unpacker Unpacker + func G() *Options + func NewDefaultOptions(paths []string, skipFlags bool) (*Options, error) + func (o *Options) AddModule(name string, config ModuleConfig) error + func (o *Options) DeleteModule(name string) error + func (o *Options) GetDbDialect(d string) (*Dialect, error) + func (o *Options) GetNetworkById(id uint64) (*Network, error) + func (o *Options) GetPprofByServiceTag(service string) (*Pprof, error) + func (o *Options) GetSqliteDbPath() string + func (o *Options) GetStatsByServiceTag(service string) (*Prometheus, error) + func (o *Options) ListModules() []string + func (o *Options) Validate() error + type Pprof struct + Addr string + Enabled bool + Name string + type Prometheus struct + Addr string + Enabled bool + Name string + type Queue struct + DeliveryGroup string + Name string + Subject string + type Rpc struct + Addr string + AllowCORS bool + DisableTransportChecks bool + Docs bool + DocsTitle string + Enabled bool + ExposeSmd bool + Transports []string + func (r *Rpc) TransportEnabled(transportName string) bool + type Solc struct + Enabled bool + HttpClientTimeout time.Duration + ReleasesPath string + SyncEvery time.Duration + type Sourcify struct + Enabled bool + Endpoint string + MaxRetry int + RateLimit int + RateLimitDuration time.Duration + RetryDelay time.Duration + type Storage struct + ContractsPath string + DatabasePath string + Enabled bool + type Subscriber struct + ChannelBufferSize int + Enabled bool + EndBlockNumber int + Network string + Resumption bool + StartBlockNumber int + SubjectName string + Type string + WorkersCount int + func (s *Subscriber) Validate() error + type Unpacker struct + ForceReprocess bool + OtsEnabled bool