Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTemplate []byte
View Source
var ( Endpoints = ConfigEndpoints{ Storage: map[int][]string{ 1: {utils.RestEndpointArweave}, 2: {utils.RestEndpointBundlr}, 3: {utils.RestEndpointKYVEStorage}, 4: {utils.RestEndpointTurbo}, }, Chains: map[string][]string{ utils.ChainIdMainnet: {utils.RestEndpointMainnet}, utils.ChainIdKaon: {utils.RestEndpointKaon}, utils.ChainIdKorellia: {utils.RestEndpointKorellia}, }, } )
Functions ¶
func GetDatabaseAdapter ¶
func GetDatabaseAdapter(saveDataItem files.SaveDataItem, indexer indexer.Indexer, poolId int64, chainId string) db.Adapter
GetDatabaseAdapter returns the correct db.Adapter that is configured in the config file
func GetSaveDataItemAdapter ¶
func GetSaveDataItemAdapter() files.SaveDataItem
GetSaveDataItemAdapter returns the SaveDataItem interface that is configured in the config file
func LoadConfig ¶
func LoadConfig(configPath string)
func LoadDefaults ¶
func LoadDefaults()
Types ¶
type ConfigEndpoints ¶
type PoolsConfig ¶
type PoolsConfig struct { BundleStartId int64 ChainId string Indexer string PoolId int64 Slug string ExcludeProof bool `json:"excludeProof"` }
func GetPoolsConfig ¶
func GetPoolsConfig() []PoolsConfig
func (PoolsConfig) GetDatabaseAdapter ¶
func (c PoolsConfig) GetDatabaseAdapter() db.Adapter
GetDatabaseAdapter returns the db.Adapter for each pool config as each pool has its own adapter
Click to show internal directories.
Click to hide internal directories.