Documentation
¶
Index ¶
- Constants
- func CreateContracts() []*types.Contract
- func GetAbisOptions(args []string) (*abisOptionsInternal, error)
- func GetBlocksOptions(args []string) (*blocksOptionsInternal, error)
- func GetChunksOptions(args []string) (*chunksOptionsInternal, error)
- func GetConfigOptions(args []string) (*configOptionsInternal, error)
- func GetDaemonOptions(args []string) (*daemonOptionsInternal, error)
- func GetExploreOptions(args []string) (*exploreOptionsInternal, error)
- func GetExportOptions(args []string) (*exportOptionsInternal, error)
- func GetInitOptions(args []string) (*initOptionsInternal, error)
- func GetLatestBlock(chain string) base.Blknum
- func GetListOptions(args []string) (*listOptionsInternal, error)
- func GetLogsOptions(args []string) (*logsOptionsInternal, error)
- func GetMetaData(chain string) (*types.MetaData, error)
- func GetMonitorsOptions(args []string) (*monitorsOptionsInternal, error)
- func GetNamesOptions(args []string) (*namesOptionsInternal, error)
- func GetReceiptsOptions(args []string) (*receiptsOptionsInternal, error)
- func GetScrapeOptions(args []string) (*scrapeOptionsInternal, error)
- func GetSlurpOptions(args []string) (*slurpOptionsInternal, error)
- func GetStateOptions(args []string) (*stateOptionsInternal, error)
- func GetStatusOptions(args []string) (*statusOptionsInternal, error)
- func GetTokensOptions(args []string) (*tokensOptionsInternal, error)
- func GetTracesOptions(args []string) (*tracesOptionsInternal, error)
- func GetTransactionsOptions(args []string) (*transactionsOptionsInternal, error)
- func GetWhenOptions(args []string) (*whenOptionsInternal, error)
- func MustGetMetaData(chain string) *types.MetaData
- func PingRpc(providerUrl string) (*rpc.PingResult, error)
- func SortAbis(abis []types.Abi, sortSpec SortSpec) error
- func SortApprovalLogs(a []types.Log, sortSpec SortSpec) error
- func SortApprovalTxs(a []types.Transaction, sortSpec SortSpec) error
- func SortApprovals(approvals []types.Approval, sortSpec SortSpec) error
- func SortAssets(statuses []types.Statement, sortSpec SortSpec) error
- func SortBalances(statuses []types.Token, sortSpec SortSpec) error
- func SortBlooms(chunkrecords []types.ChunkBloom, sortSpec SortSpec) error
- func SortCacheItems(cacheitems []types.CacheItem, sortSpec SortSpec) error
- func SortCaches(cacheitems []types.CacheItem, sortSpec SortSpec) error
- func SortChains(chains []types.Chain, sortSpec SortSpec) error
- func SortChunkRecords(chunkrecords []types.ChunkRecord, sortSpec SortSpec) error
- func SortChunkStats(chunkstats []types.ChunkStats, sortSpec SortSpec) error
- func SortContracts(contracts []types.Contract, sortSpec SortSpec) error
- func SortFunctions(functions []types.Function, sortSpec SortSpec) error
- func SortIndex(chunkrecords []types.ChunkIndex, sortSpec SortSpec) error
- func SortLogs(statuses []types.Log, sortSpec SortSpec) error
- func SortManifest(chunkrecords []types.ChunkManifest, sortSpec SortSpec) error
- func SortMonitors(monitors []types.Monitor, sortSpec SortSpec) error
- func SortNames(names []types.Name, sortSpec SortSpec) error
- func SortOpenApprovals(a []types.Approval, sortSpec SortSpec) error
- func SortReceipts(statuses []types.Receipt, sortSpec SortSpec) error
- func SortStatements(statuses []types.Statement, sortSpec SortSpec) error
- func SortStats(chunkstats []types.ChunkStats, sortSpec SortSpec) error
- func SortStatus(statuses []types.Status, sortSpec SortSpec) error
- func SortTraces(statuses []types.Trace, sortSpec SortSpec) error
- func SortTransaction(transactions []types.Transaction, sortSpec SortSpec) error
- func SortTransactions(transactions []types.Transaction, sortSpec SortSpec) error
- func SortTransfers(statuses []types.Transfer, sortSpec SortSpec) error
- func SortWithdrawals(statuses []types.Withdrawal, sortSpec SortSpec) error
- func TsFromBlock(chain string, blockNum base.Blknum) (base.Timestamp, error)
- func Version() string
- type Abi
- type AbisOptions
- func (opts *AbisOptions) Abis() ([]types.Function, *types.MetaData, error)
- func (opts *AbisOptions) AbisCount() ([]types.Count, *types.MetaData, error)
- func (opts *AbisOptions) AbisDetails() ([]types.Function, *types.MetaData, error)
- func (opts *AbisOptions) AbisEncode(val string) ([]types.Function, *types.MetaData, error)
- func (opts *AbisOptions) AbisFind(val []string) ([]types.Function, *types.MetaData, error)
- func (opts *AbisOptions) AbisList() ([]types.Abi, *types.MetaData, error)
- func (opts AbisOptions) String() string
- type Appearance
- type AppearanceTable
- type Approval
- type Asset
- type Balance
- type Block
- type BlockCount
- type BlocksFlow
- type BlocksOptions
- func (opts *BlocksOptions) Blocks() ([]types.Block, *types.MetaData, error)
- func (opts *BlocksOptions) BlocksCount() ([]types.BlockCount, *types.MetaData, error)
- func (opts *BlocksOptions) BlocksHashes() ([]types.LightBlock, *types.MetaData, error)
- func (opts *BlocksOptions) BlocksLogs() ([]types.Log, *types.MetaData, error)
- func (opts *BlocksOptions) BlocksTraces() ([]types.Trace, *types.MetaData, error)
- func (opts *BlocksOptions) BlocksUncles() ([]types.LightBlock, *types.MetaData, error)
- func (opts *BlocksOptions) BlocksUniq() ([]types.Appearance, *types.MetaData, error)
- func (opts *BlocksOptions) BlocksWithdrawals() ([]types.Withdrawal, *types.MetaData, error)
- func (opts BlocksOptions) String() string
- type Bloom
- type Bounds
- type Cache
- type CacheItem
- type CacheOp
- type Cacher
- type Chain
- type ChunkAddress
- type ChunkAppearance
- type ChunkBloom
- type ChunkIndex
- type ChunkManifest
- type ChunkPin
- type ChunkRecord
- type ChunkStats
- type ChunksMode
- type ChunksOptions
- func (opts *ChunksOptions) ChunksAddresses() ([]types.ChunkAddress, *types.MetaData, error)
- func (opts *ChunksOptions) ChunksAppearances() ([]types.ChunkAppearance, *types.MetaData, error)
- func (opts *ChunksOptions) ChunksBlooms() ([]types.ChunkBloom, *types.MetaData, error)
- func (opts *ChunksOptions) ChunksCount() ([]types.Count, *types.MetaData, error)
- func (opts *ChunksOptions) ChunksDiff() ([]types.Message, *types.MetaData, error)
- func (opts *ChunksOptions) ChunksIndex() ([]types.ChunkIndex, *types.MetaData, error)
- func (opts *ChunksOptions) ChunksList() ([]types.ChunkRecord, *types.MetaData, error)
- func (opts *ChunksOptions) ChunksManifest() ([]types.ChunkManifest, *types.MetaData, error)
- func (opts *ChunksOptions) ChunksPins() ([]types.ChunkPin, *types.MetaData, error)
- func (opts *ChunksOptions) ChunksPinsList() ([]types.ChunkRecord, *types.MetaData, error)
- func (opts *ChunksOptions) ChunksStats() ([]types.ChunkStats, *types.MetaData, error)
- func (opts *ChunksOptions) ChunksTag(val string) ([]types.Message, *types.MetaData, error)
- func (opts *ChunksOptions) ChunksTruncate(val base.Blknum) ([]types.Message, *types.MetaData, error)
- func (opts ChunksOptions) String() string
- type Config
- type ConfigMode
- type ConfigOptions
- type Contract
- type CoreResult
- type Count
- type DaemonApi
- type DaemonOptions
- type DaemonScrape
- type Destination
- type ExploreOptions
- type ExportFlow
- type ExportOptions
- func (opts *ExportOptions) Export() ([]types.Transaction, *types.MetaData, error)
- func (opts *ExportOptions) ExportAppearances() ([]types.Appearance, *types.MetaData, error)
- func (opts *ExportOptions) ExportApprovals() ([]types.Transaction, *types.MetaData, error)
- func (opts *ExportOptions) ExportApprovalsLogs() ([]types.Log, *types.MetaData, error)
- func (opts *ExportOptions) ExportAssets() ([]types.Name, *types.MetaData, error)
- func (opts *ExportOptions) ExportBalances() ([]types.Token, *types.MetaData, error)
- func (opts *ExportOptions) ExportCount() ([]types.Count, *types.MetaData, error)
- func (opts *ExportOptions) ExportLogs() ([]types.Log, *types.MetaData, error)
- func (opts *ExportOptions) ExportNeighbors() ([]types.Message, *types.MetaData, error)
- func (opts *ExportOptions) ExportReceipts() ([]types.Receipt, *types.MetaData, error)
- func (opts *ExportOptions) ExportStatements() ([]types.Statement, *types.MetaData, error)
- func (opts *ExportOptions) ExportTraces() ([]types.Trace, *types.MetaData, error)
- func (opts *ExportOptions) ExportTransfers() ([]types.Transfer, *types.MetaData, error)
- func (opts *ExportOptions) ExportWithdrawals() ([]types.Withdrawal, *types.MetaData, error)
- func (opts ExportOptions) String() string
- type Function
- type Globals
- type Index
- type InitOptions
- func (opts *InitOptions) Init() ([]types.Message, *types.MetaData, error)
- func (opts *InitOptions) InitAll() ([]types.Message, *types.MetaData, error)
- func (opts *InitOptions) InitDryRun() ([]types.Message, *types.MetaData, error)
- func (opts *InitOptions) InitExample(val string) ([]types.Message, *types.MetaData, error)
- func (opts InitOptions) String() string
- type IpfsPin
- type LightBlock
- type ListOptions
- type Log
- type LogsOptions
- type Manifest
- type Message
- type Model
- type ModelProps
- type Modeler
- type Monitor
- type MonitorClean
- type MonitorsOptions
- func (opts *MonitorsOptions) Monitors() ([]types.Message, *types.MetaData, error)
- func (opts *MonitorsOptions) MonitorsClean() ([]types.MonitorClean, *types.MetaData, error)
- func (opts *MonitorsOptions) MonitorsCount() ([]types.Count, *types.MetaData, error)
- func (opts *MonitorsOptions) MonitorsList() ([]types.Monitor, *types.MetaData, error)
- func (opts MonitorsOptions) String() string
- type Name
- type NamedBlock
- type NamesOptions
- func (opts *NamesOptions) ModifyName(op crud.Operation, cd *crud.NameCrud) ([]types.Name, *types.MetaData, error)
- func (opts *NamesOptions) Names() ([]types.Name, *types.MetaData, error)
- func (opts *NamesOptions) NamesAddr() ([]types.Name, *types.MetaData, error)
- func (opts *NamesOptions) NamesAutoname(val base.Address) ([]types.Message, *types.MetaData, error)
- func (opts *NamesOptions) NamesClean() ([]types.Message, *types.MetaData, error)
- func (opts *NamesOptions) NamesCount() ([]types.Count, *types.MetaData, error)
- func (opts *NamesOptions) NamesCreate() ([]types.Name, *types.MetaData, error)
- func (opts *NamesOptions) NamesDelete() ([]types.Name, *types.MetaData, error)
- func (opts *NamesOptions) NamesRemove() ([]types.Name, *types.MetaData, error)
- func (opts *NamesOptions) NamesTags() ([]types.Name, *types.MetaData, error)
- func (opts *NamesOptions) NamesUndelete() ([]types.Name, *types.MetaData, error)
- func (opts *NamesOptions) NamesUpdate() ([]types.Name, *types.MetaData, error)
- func (opts NamesOptions) String() string
- type Parameter
- type ParseFunc
- type RangeDates
- type Receipt
- type ReceiptsOptions
- type ReportCheck
- type Result
- type ScrapeOptions
- func (opts *ScrapeOptions) ScrapeDryRun() ([]types.Message, *types.MetaData, error)
- func (opts *ScrapeOptions) ScrapeRunCount(val uint64) ([]types.Message, *types.MetaData, error)
- func (opts *ScrapeOptions) ScrapeRunOnce() ([]types.Message, *types.MetaData, error)
- func (opts *ScrapeOptions) ScrapeTouch(val base.Blknum) ([]types.Message, *types.MetaData, error)
- func (opts ScrapeOptions) String() string
- type Slurp
- type SlurpOptions
- type SlurpParts
- type SlurpSource
- type SortOrder
- type SortSpec
- type State
- type StateOptions
- type StateParts
- type Statement
- type Stats
- type Status
- type StatusModes
- type StatusOptions
- func (opts *StatusOptions) StatusAbis() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusAll() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusBlocks() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusBlooms() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusCaches() ([]types.CacheItem, *types.MetaData, error)
- func (opts *StatusOptions) StatusChains() ([]types.Chain, *types.MetaData, error)
- func (opts *StatusOptions) StatusCount() ([]types.Count, *types.MetaData, error)
- func (opts *StatusOptions) StatusDiagnose() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusHealthcheck() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusIndex() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusLogs() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusMaps() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusMonitors() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusNames() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusResults() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusSlurps() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusSome() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusStaging() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusState() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusStatements() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusTokens() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusTraces() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusTransactions() ([]types.Status, *types.MetaData, error)
- func (opts *StatusOptions) StatusUnripe() ([]types.Status, *types.MetaData, error)
- func (opts StatusOptions) String() string
- type Timestamp
- type Token
- type TokensOptions
- type TokensParts
- type Trace
- type TraceAction
- type TraceCount
- type TraceFilter
- type TraceResult
- type TracesOptions
- type Transaction
- type TransactionsFlow
- type TransactionsOptions
- func (opts TransactionsOptions) String() string
- func (opts *TransactionsOptions) Transactions() ([]types.Transaction, *types.MetaData, error)
- func (opts *TransactionsOptions) TransactionsLogs() ([]types.Log, *types.MetaData, error)
- func (opts *TransactionsOptions) TransactionsTraces() ([]types.Trace, *types.MetaData, error)
- func (opts *TransactionsOptions) TransactionsUniq() ([]types.Appearance, *types.MetaData, error)
- type Transfer
- type UpdateType
- type Updater
- type UpdaterItem
- type WhenOptions
- func (opts WhenOptions) String() string
- func (opts *WhenOptions) When() ([]types.NamedBlock, *types.MetaData, error)
- func (opts *WhenOptions) WhenCheck() ([]types.ReportCheck, *types.MetaData, error)
- func (opts *WhenOptions) WhenCount() ([]types.Count, *types.MetaData, error)
- func (opts *WhenOptions) WhenList() ([]types.NamedBlock, *types.MetaData, error)
- func (opts *WhenOptions) WhenTimestamps() ([]types.Timestamp, *types.MetaData, error)
- type Withdrawal
Constants ¶
const ( NoBF BlocksFlow = 0 BFFrom = 1 << iota BFTo BFReward )
const ( NoCHM ChunksMode = 0 CMManifest = 1 << iota CMIndex CMBlooms CMPins CMAddresses CMAppearances CMStats )
const ( NoCOM ConfigMode = 0 CMShow = 1 << iota CMEdit )
const ( NoDA DaemonApi = 0 DAOff = 1 << iota DAOn )
const ( NoDS DaemonScrape = 0 DSOff = 1 << iota DSBlooms DSIndex )
const ( NoEF ExportFlow = 0 EFIn = 1 << iota EFOut EFZero )
const ( NoSLP SlurpParts = 0 SPExt = 1 << iota SPInt SPToken SPNfts SP1155 SPMiner SPUncles SPWithdrawals SLPSome = SPExt | SPInt | SPToken | SPNfts SLPAll = SPExt | SPInt | SPToken | SPNfts | SP1155 | SPMiner | SPUncles | SPWithdrawals )
const ( NoSS SlurpSource = 0 SSEtherscan = 1 << iota SSCovalent SSAlchemy )
const ( NoSTP StateParts = 0 SPBalance = 1 << iota SPNonce SPCode SPProxy SPDeployed SPAccttype STPSome = SPBalance | SPProxy | SPDeployed | SPAccttype STPAll = SPBalance | SPNonce | SPCode | SPProxy | SPDeployed | SPAccttype )
const ( NoSM StatusModes = 0 SMIndex = 1 << iota SMBlooms SMBlocks SMTransactions SMTraces SMLogs SMStatements SMResults SMState SMTokens SMMonitors SMNames SMAbis SMSlurps SMStaging SMUnripe SMMaps SMSome = SMIndex | SMBlooms | SMBlocks | SMTransactions SMAll = SMIndex | SMBlooms | SMBlocks | SMTransactions | SMTraces | SMLogs | SMStatements | SMResults | SMState | SMTokens | SMMonitors | SMNames | SMAbis | SMSlurps | SMStaging | SMUnripe | SMMaps )
const ( NoTP TokensParts = 0 TPName = 1 << iota TPSymbol TPDecimals TPTotalSupply TPVersion TPSome = TPName | TPSymbol | TPDecimals | TPTotalSupply TPAll = TPName | TPSymbol | TPDecimals | TPTotalSupply | TPVersion )
const ( NoTF TransactionsFlow = 0 TFFrom = 1 << iota TFTo )
Variables ¶
This section is empty.
Functions ¶
func CreateContracts ¶
CreateContracts returns mock contract data for testing and development
func GetAbisOptions ¶
GetAbisOptions returns a filled-in options instance given a string array of arguments.
func GetBlocksOptions ¶
GetBlocksOptions returns a filled-in options instance given a string array of arguments.
func GetChunksOptions ¶
GetChunksOptions returns a filled-in options instance given a string array of arguments.
func GetConfigOptions ¶
GetConfigOptions returns a filled-in options instance given a string array of arguments.
func GetDaemonOptions ¶
GetDaemonOptions returns a filled-in options instance given a string array of arguments.
func GetExploreOptions ¶
GetExploreOptions returns a filled-in options instance given a string array of arguments.
func GetExportOptions ¶
GetExportOptions returns a filled-in options instance given a string array of arguments.
func GetInitOptions ¶
GetInitOptions returns a filled-in options instance given a string array of arguments.
func GetLatestBlock ¶
func GetListOptions ¶
GetListOptions returns a filled-in options instance given a string array of arguments.
func GetLogsOptions ¶
GetLogsOptions returns a filled-in options instance given a string array of arguments.
func GetMonitorsOptions ¶
GetMonitorsOptions returns a filled-in options instance given a string array of arguments.
func GetNamesOptions ¶
GetNamesOptions returns a filled-in options instance given a string array of arguments.
func GetReceiptsOptions ¶
GetReceiptsOptions returns a filled-in options instance given a string array of arguments.
func GetScrapeOptions ¶
GetScrapeOptions returns a filled-in options instance given a string array of arguments.
func GetSlurpOptions ¶
GetSlurpOptions returns a filled-in options instance given a string array of arguments.
func GetStateOptions ¶
GetStateOptions returns a filled-in options instance given a string array of arguments.
func GetStatusOptions ¶
GetStatusOptions returns a filled-in options instance given a string array of arguments.
func GetTokensOptions ¶
GetTokensOptions returns a filled-in options instance given a string array of arguments.
func GetTracesOptions ¶
GetTracesOptions returns a filled-in options instance given a string array of arguments.
func GetTransactionsOptions ¶
GetTransactionsOptions returns a filled-in options instance given a string array of arguments.
func GetWhenOptions ¶
GetWhenOptions returns a filled-in options instance given a string array of arguments.
func MustGetMetaData ¶
func SortApprovalTxs ¶
func SortApprovalTxs(a []types.Transaction, sortSpec SortSpec) error
func SortBlooms ¶
func SortBlooms(chunkrecords []types.ChunkBloom, sortSpec SortSpec) error
func SortChunkRecords ¶
func SortChunkRecords(chunkrecords []types.ChunkRecord, sortSpec SortSpec) error
func SortChunkStats ¶
func SortChunkStats(chunkstats []types.ChunkStats, sortSpec SortSpec) error
func SortManifest ¶
func SortManifest(chunkrecords []types.ChunkManifest, sortSpec SortSpec) error
func SortStatements ¶
EXISTING_CODE
func SortStats ¶
func SortStats(chunkstats []types.ChunkStats, sortSpec SortSpec) error
EXISTING_CODE Sugar
func SortTransaction ¶
func SortTransaction(transactions []types.Transaction, sortSpec SortSpec) error
func SortTransactions ¶
func SortTransactions(transactions []types.Transaction, sortSpec SortSpec) error
func SortWithdrawals ¶
func SortWithdrawals(statuses []types.Withdrawal, sortSpec SortSpec) error
func TsFromBlock ¶
No enums EXISTING_CODE
Types ¶
type AbisOptions ¶
type AbisOptions struct {
Addrs []string `json:"addrs,omitempty"`
Known bool `json:"known,omitempty"`
ProxyFor base.Address `json:"proxyFor,omitempty"`
Hint []string `json:"hint,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (*AbisOptions) AbisDetails ¶
AbisDetails implements the chifra abis --details command.
func (*AbisOptions) AbisEncode ¶
AbisEncode implements the chifra abis --encode command.
func (AbisOptions) String ¶
func (opts AbisOptions) String() string
String implements the stringer interface
type Appearance ¶
type Appearance = types.Appearance
type AppearanceTable ¶
type AppearanceTable = types.AppearanceTable
type BlockCount ¶
type BlockCount = types.BlockCount
type BlocksFlow ¶
type BlocksFlow int
func (BlocksFlow) String ¶
func (v BlocksFlow) String() string
type BlocksOptions ¶
type BlocksOptions struct {
BlockIds []string `json:"blocks,omitempty"`
Flow BlocksFlow `json:"flow,omitempty"`
Emitter []string `json:"emitter,omitempty"`
Topic []string `json:"topic,omitempty"`
Articulate bool `json:"articulate,omitempty"`
CacheTxs bool `json:"cacheTxs,omitempty"`
CacheTraces bool `json:"cacheTraces,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (*BlocksOptions) BlocksCount ¶
func (opts *BlocksOptions) BlocksCount() ([]types.BlockCount, *types.MetaData, error)
BlocksCount implements the chifra blocks --count command.
func (*BlocksOptions) BlocksHashes ¶
func (opts *BlocksOptions) BlocksHashes() ([]types.LightBlock, *types.MetaData, error)
BlocksHashes implements the chifra blocks --hashes command.
func (*BlocksOptions) BlocksLogs ¶
BlocksLogs implements the chifra blocks --logs command.
func (*BlocksOptions) BlocksTraces ¶
BlocksTraces implements the chifra blocks --traces command.
func (*BlocksOptions) BlocksUncles ¶
func (opts *BlocksOptions) BlocksUncles() ([]types.LightBlock, *types.MetaData, error)
BlocksUncles implements the chifra blocks --uncles command.
func (*BlocksOptions) BlocksUniq ¶
func (opts *BlocksOptions) BlocksUniq() ([]types.Appearance, *types.MetaData, error)
BlocksUniq implements the chifra blocks --uniq command.
func (*BlocksOptions) BlocksWithdrawals ¶
func (opts *BlocksOptions) BlocksWithdrawals() ([]types.Withdrawal, *types.MetaData, error)
BlocksWithdrawals implements the chifra blocks --withdrawals command.
func (BlocksOptions) String ¶
func (opts BlocksOptions) String() string
String implements the stringer interface
type Bloom ¶
type Bloom = types.ChunkBloom
type ChunkAddress ¶
type ChunkAddress = types.ChunkAddress
type ChunkAppearance ¶
type ChunkAppearance = types.ChunkAppearance
type ChunkBloom ¶
type ChunkBloom = types.ChunkBloom
type ChunkIndex ¶
type ChunkIndex = types.ChunkIndex
type ChunkManifest ¶
type ChunkManifest = types.ChunkManifest
type ChunkRecord ¶
type ChunkRecord = types.ChunkRecord
type ChunkStats ¶
type ChunkStats = types.ChunkStats
type ChunksMode ¶
type ChunksMode int
func (ChunksMode) String ¶
func (v ChunksMode) String() string
type ChunksOptions ¶
type ChunksOptions struct {
BlockIds []string `json:"blocks,omitempty"`
Check bool `json:"check,omitempty"`
Pin bool `json:"pin,omitempty"`
Publish bool `json:"publish,omitempty"`
Publisher base.Address `json:"publisher,omitempty"`
Remote bool `json:"remote,omitempty"`
Belongs []string `json:"belongs,omitempty"`
FirstBlock base.Blknum `json:"firstBlock,omitempty"`
LastBlock base.Blknum `json:"lastBlock,omitempty"`
MaxAddrs uint64 `json:"maxAddrs,omitempty"`
Deep bool `json:"deep,omitempty"`
Rewrite bool `json:"rewrite,omitempty"`
Unpin bool `json:"unpin,omitempty"`
DryRun bool `json:"dryRun,omitempty"`
Metadata bool `json:"metadata,omitempty"`
Sleep float64 `json:"sleep,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (*ChunksOptions) ChunksAddresses ¶
func (opts *ChunksOptions) ChunksAddresses() ([]types.ChunkAddress, *types.MetaData, error)
ChunksAddresses implements the chifra chunks addresses command.
func (*ChunksOptions) ChunksAppearances ¶
func (opts *ChunksOptions) ChunksAppearances() ([]types.ChunkAppearance, *types.MetaData, error)
ChunksAppearances implements the chifra chunks appearances command.
func (*ChunksOptions) ChunksBlooms ¶
func (opts *ChunksOptions) ChunksBlooms() ([]types.ChunkBloom, *types.MetaData, error)
ChunksBlooms implements the chifra chunks blooms command.
func (*ChunksOptions) ChunksCount ¶
ChunksCount implements the chifra chunks --count command.
func (*ChunksOptions) ChunksDiff ¶
ChunksDiff implements the chifra chunks --diff command.
func (*ChunksOptions) ChunksIndex ¶
func (opts *ChunksOptions) ChunksIndex() ([]types.ChunkIndex, *types.MetaData, error)
ChunksIndex implements the chifra chunks index command.
func (*ChunksOptions) ChunksList ¶
func (opts *ChunksOptions) ChunksList() ([]types.ChunkRecord, *types.MetaData, error)
ChunksList implements the chifra chunks --list command.
func (*ChunksOptions) ChunksManifest ¶
func (opts *ChunksOptions) ChunksManifest() ([]types.ChunkManifest, *types.MetaData, error)
ChunksManifest implements the chifra chunks manifest command.
func (*ChunksOptions) ChunksPins ¶
ChunksPins implements the chifra chunks pins command.
func (*ChunksOptions) ChunksPinsList ¶
func (opts *ChunksOptions) ChunksPinsList() ([]types.ChunkRecord, *types.MetaData, error)
EXISTING_CODE
func (*ChunksOptions) ChunksStats ¶
func (opts *ChunksOptions) ChunksStats() ([]types.ChunkStats, *types.MetaData, error)
ChunksStats implements the chifra chunks stats command.
func (*ChunksOptions) ChunksTruncate ¶
func (opts *ChunksOptions) ChunksTruncate(val base.Blknum) ([]types.Message, *types.MetaData, error)
ChunksTruncate implements the chifra chunks --truncate command.
func (ChunksOptions) String ¶
func (opts ChunksOptions) String() string
String implements the stringer interface
type ConfigMode ¶
type ConfigMode int
func (ConfigMode) String ¶
func (v ConfigMode) String() string
type ConfigOptions ¶
type ConfigOptions struct {
Mode ConfigMode `json:"mode,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (*ConfigOptions) ConfigDump ¶
ConfigDump implements the chifra config --dump command.
func (*ConfigOptions) ConfigPaths ¶
ConfigPaths implements the chifra config --paths command.
func (ConfigOptions) String ¶
func (opts ConfigOptions) String() string
String implements the stringer interface
type CoreResult ¶
type DaemonOptions ¶
type DaemonOptions struct {
Url string `json:"url,omitempty"`
Api DaemonApi `json:"api,omitempty"`
Scrape DaemonScrape `json:"scrape,omitempty"`
Monitor bool `json:"monitor,omitempty"`
Silent bool `json:"silent,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (DaemonOptions) String ¶
func (opts DaemonOptions) String() string
String implements the stringer interface
func (*DaemonOptions) ToInternal ¶
func (opts *DaemonOptions) ToInternal() *daemonOptionsInternal
EXISTING_CODE
type DaemonScrape ¶
type DaemonScrape int
func (DaemonScrape) String ¶
func (v DaemonScrape) String() string
type Destination ¶
type Destination = types.Destination
type ExploreOptions ¶
type ExploreOptions struct {
Terms []string `json:"terms,omitempty"`
NoOpen bool `json:"noOpen,omitempty"`
Local bool `json:"local,omitempty"`
Google bool `json:"google,omitempty"`
Dalle bool `json:"dalle,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (*ExploreOptions) Explore ¶
func (opts *ExploreOptions) Explore() ([]types.Destination, *types.MetaData, error)
Explore implements the chifra explore command.
func (ExploreOptions) String ¶
func (opts ExploreOptions) String() string
String implements the stringer interface
type ExportFlow ¶
type ExportFlow int
func (ExportFlow) String ¶
func (v ExportFlow) String() string
type ExportOptions ¶
type ExportOptions struct {
Addrs []string `json:"addrs,omitempty"`
Topics []string `json:"topics,omitempty"`
Fourbytes []string `json:"fourbytes,omitempty"`
Articulate bool `json:"articulate,omitempty"`
CacheTraces bool `json:"cacheTraces,omitempty"`
FirstRecord uint64 `json:"firstRecord,omitempty"`
MaxRecords uint64 `json:"maxRecords,omitempty"`
Relevant bool `json:"relevant,omitempty"`
Emitter []string `json:"emitter,omitempty"`
Topic []string `json:"topic,omitempty"`
Nfts bool `json:"nfts,omitempty"`
Reverted bool `json:"reverted,omitempty"`
Asset []string `json:"asset,omitempty"`
Flow ExportFlow `json:"flow,omitempty"`
Factory bool `json:"factory,omitempty"`
Unripe bool `json:"unripe,omitempty"`
Reversed bool `json:"reversed,omitempty"`
NoZero bool `json:"noZero,omitempty"`
FirstBlock base.Blknum `json:"firstBlock,omitempty"`
LastBlock base.Blknum `json:"lastBlock,omitempty"`
Accounting bool `json:"accounting,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (*ExportOptions) Export ¶
func (opts *ExportOptions) Export() ([]types.Transaction, *types.MetaData, error)
Export implements the chifra export command.
func (*ExportOptions) ExportAppearances ¶
func (opts *ExportOptions) ExportAppearances() ([]types.Appearance, *types.MetaData, error)
ExportAppearances implements the chifra export --appearances command.
func (*ExportOptions) ExportApprovals ¶
func (opts *ExportOptions) ExportApprovals() ([]types.Transaction, *types.MetaData, error)
ExportApprovals implements the chifra export --approvals command.
func (*ExportOptions) ExportApprovalsLogs ¶ added in v6.6.5
ExportApprovalsLogs implements the chifra export --approvals command.
func (*ExportOptions) ExportAssets ¶
ExportAssets implements the chifra export --assets command.
func (*ExportOptions) ExportBalances ¶
ExportBalances implements the chifra export --balances command.
func (*ExportOptions) ExportCount ¶
ExportCount implements the chifra export --count command.
func (*ExportOptions) ExportLogs ¶
ExportLogs implements the chifra export --logs command.
func (*ExportOptions) ExportNeighbors ¶
ExportNeighbors implements the chifra export --neighbors command.
func (*ExportOptions) ExportReceipts ¶
ExportReceipts implements the chifra export --receipts command.
func (*ExportOptions) ExportStatements ¶
ExportStatements implements the chifra export --statements command.
func (*ExportOptions) ExportTraces ¶
ExportTraces implements the chifra export --traces command.
func (*ExportOptions) ExportTransfers ¶
ExportTransfers implements the chifra export --transfers command.
func (*ExportOptions) ExportWithdrawals ¶
func (opts *ExportOptions) ExportWithdrawals() ([]types.Withdrawal, *types.MetaData, error)
ExportWithdrawals implements the chifra export --withdrawals command.
func (ExportOptions) String ¶
func (opts ExportOptions) String() string
String implements the stringer interface
type Globals ¶
type Globals struct {
Ether bool `json:"ether,omitempty"`
Cache bool `json:"cache,omitempty"`
Decache bool `json:"decache,omitempty"`
Verbose bool `json:"verbose,omitempty"`
Chain string `json:"chain,omitempty"`
Output string `json:"output,omitempty"`
Append bool `json:"append,omitempty"`
}
Globals is a subset of globally available options from the command line that make sense in the SDK context
type Index ¶
type Index = types.ChunkIndex
type InitOptions ¶
type InitOptions struct {
Publisher base.Address `json:"publisher,omitempty"`
FirstBlock base.Blknum `json:"firstBlock,omitempty"`
Sleep float64 `json:"sleep,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (*InitOptions) InitDryRun ¶
InitDryRun implements the chifra init --dryrun command.
func (*InitOptions) InitExample ¶
InitExample implements the chifra init --example command.
func (InitOptions) String ¶
func (opts InitOptions) String() string
String implements the stringer interface
type LightBlock ¶
type LightBlock = types.LightBlock
type ListOptions ¶
type ListOptions struct {
Addrs []string `json:"addrs,omitempty"`
NoZero bool `json:"noZero,omitempty"`
Unripe bool `json:"unripe,omitempty"`
Silent bool `json:"silent,omitempty"`
FirstRecord uint64 `json:"firstRecord,omitempty"`
MaxRecords uint64 `json:"maxRecords,omitempty"`
Reversed bool `json:"reversed,omitempty"`
Publisher base.Address `json:"publisher,omitempty"`
FirstBlock base.Blknum `json:"firstBlock,omitempty"`
LastBlock base.Blknum `json:"lastBlock,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (*ListOptions) List ¶
func (opts *ListOptions) List() ([]types.Appearance, *types.MetaData, error)
List implements the chifra list command.
func (*ListOptions) ListBounds ¶
ListBounds implements the chifra list --bounds command.
func (ListOptions) String ¶
func (opts ListOptions) String() string
String implements the stringer interface
type LogsOptions ¶
type LogsOptions struct {
TransactionIds []string `json:"transactions,omitempty"`
Emitter []string `json:"emitter,omitempty"`
Topic []string `json:"topic,omitempty"`
Articulate bool `json:"articulate,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (LogsOptions) String ¶
func (opts LogsOptions) String() string
String implements the stringer interface
type ModelProps ¶
type ModelProps = types.ModelProps
type Modeler ¶
type Modeler interface {
Model(chain, format string, verbose bool, extraOpts map[string]any) types.Model
}
Modeler interface exposes the Model method for SDK consumers
type MonitorClean ¶
type MonitorClean = types.MonitorClean
type MonitorsOptions ¶
type MonitorsOptions struct {
Addrs []string `json:"addrs,omitempty"`
Delete bool `json:"delete,omitempty"`
Undelete bool `json:"undelete,omitempty"`
Remove bool `json:"remove,omitempty"`
Staged bool `json:"staged,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (*MonitorsOptions) MonitorsClean ¶
func (opts *MonitorsOptions) MonitorsClean() ([]types.MonitorClean, *types.MetaData, error)
MonitorsClean implements the chifra monitors --clean command.
func (*MonitorsOptions) MonitorsCount ¶
MonitorsCount implements the chifra monitors --count command.
func (*MonitorsOptions) MonitorsList ¶
MonitorsList implements the chifra monitors --list command.
func (MonitorsOptions) String ¶
func (opts MonitorsOptions) String() string
String implements the stringer interface
type NamedBlock ¶
type NamedBlock = types.NamedBlock
type NamesOptions ¶
type NamesOptions struct {
Terms []string `json:"terms,omitempty"`
Expand bool `json:"expand,omitempty"`
MatchCase bool `json:"matchCase,omitempty"`
All bool `json:"all,omitempty"`
Custom bool `json:"custom,omitempty"`
Prefund bool `json:"prefund,omitempty"`
Regular bool `json:"regular,omitempty"`
DryRun bool `json:"dryRun,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (*NamesOptions) ModifyName ¶
func (opts *NamesOptions) ModifyName(op crud.Operation, cd *crud.NameCrud) ([]types.Name, *types.MetaData, error)
No enums EXISTING_CODE
func (*NamesOptions) NamesAutoname ¶
NamesAutoname implements the chifra names --autoname command.
func (*NamesOptions) NamesClean ¶
NamesClean implements the chifra names --clean command.
func (*NamesOptions) NamesCount ¶
NamesCount implements the chifra names --count command.
func (*NamesOptions) NamesCreate ¶
NamesCreate implements the chifra names --create command.
func (*NamesOptions) NamesDelete ¶
NamesDelete implements the chifra names --delete command.
func (*NamesOptions) NamesRemove ¶
NamesRemove implements the chifra names --remove command.
func (*NamesOptions) NamesUndelete ¶
NamesUndelete implements the chifra names --undelete command.
func (*NamesOptions) NamesUpdate ¶
NamesUpdate implements the chifra names --update command.
func (NamesOptions) String ¶
func (opts NamesOptions) String() string
String implements the stringer interface
type ParseFunc ¶
ParseFunc is a function that takes a key/value pair and returns `true,nil` if the key/value pair was parsed and the value is valid. If the key is found, but the value is invalid, it returns `false, error` with a non-nil error. If it doesn't recognize the key, it returns `false, nil`.
type RangeDates ¶
type RangeDates = types.RangeDates
type ReceiptsOptions ¶
type ReceiptsOptions struct {
TransactionIds []string `json:"transactions,omitempty"`
Articulate bool `json:"articulate,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (ReceiptsOptions) String ¶
func (opts ReceiptsOptions) String() string
String implements the stringer interface
type ReportCheck ¶
type ReportCheck = types.ReportCheck
type ScrapeOptions ¶
type ScrapeOptions struct {
BlockCnt uint64 `json:"blockCnt,omitempty"`
Sleep float64 `json:"sleep,omitempty"`
Publisher base.Address `json:"publisher,omitempty"`
Notify bool `json:"notify,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (*ScrapeOptions) ScrapeDryRun ¶
ScrapeDryRun implements the chifra scrape --dryrun command.
func (*ScrapeOptions) ScrapeRunCount ¶
ScrapeRunCount implements the chifra scrape --runcount command.
func (*ScrapeOptions) ScrapeRunOnce ¶
No enums EXISTING_CODE
func (*ScrapeOptions) ScrapeTouch ¶
ScrapeTouch implements the chifra scrape --touch command.
func (ScrapeOptions) String ¶
func (opts ScrapeOptions) String() string
String implements the stringer interface
type SlurpOptions ¶
type SlurpOptions struct {
Addrs []string `json:"addrs,omitempty"`
BlockIds []string `json:"blocks,omitempty"`
Parts SlurpParts `json:"parts,omitempty"`
Articulate bool `json:"articulate,omitempty"`
Source SlurpSource `json:"source,omitempty"`
Page uint64 `json:"page,omitempty"`
PageId string `json:"pageId,omitempty"`
PerPage uint64 `json:"perPage,omitempty"`
Sleep float64 `json:"sleep,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (*SlurpOptions) SlurpAppearances ¶
func (opts *SlurpOptions) SlurpAppearances() ([]types.Appearance, *types.MetaData, error)
SlurpAppearances implements the chifra slurp --appearances command.
func (*SlurpOptions) SlurpCount ¶
SlurpCount implements the chifra slurp --count command.
func (SlurpOptions) String ¶
func (opts SlurpOptions) String() string
String implements the stringer interface
type SlurpParts ¶
type SlurpParts int
func (SlurpParts) String ¶
func (v SlurpParts) String() string
type SlurpSource ¶
type SlurpSource int
func (SlurpSource) String ¶
func (v SlurpSource) String() string
type StateOptions ¶
type StateOptions struct {
Addrs []string `json:"addrs,omitempty"`
BlockIds []string `json:"blocks,omitempty"`
Parts StateParts `json:"parts,omitempty"`
Changes bool `json:"changes,omitempty"`
NoZero bool `json:"noZero,omitempty"`
Calldata string `json:"calldata,omitempty"`
Articulate bool `json:"articulate,omitempty"`
ProxyFor base.Address `json:"proxyFor,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (StateOptions) String ¶
func (opts StateOptions) String() string
String implements the stringer interface
type StateParts ¶
type StateParts int
func (StateParts) String ¶
func (v StateParts) String() string
type Stats ¶
type Stats = types.ChunkStats
type StatusModes ¶
type StatusModes int
func (StatusModes) String ¶
func (v StatusModes) String() string
type StatusOptions ¶
type StatusOptions struct {
FirstRecord uint64 `json:"firstRecord,omitempty"`
MaxRecords uint64 `json:"maxRecords,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (*StatusOptions) StatusAbis ¶
StatusAbis implements the chifra status abis command.
func (*StatusOptions) StatusBlocks ¶
StatusBlocks implements the chifra status blocks command.
func (*StatusOptions) StatusBlooms ¶
StatusBlooms implements the chifra status blooms command.
func (*StatusOptions) StatusCaches ¶
StatusCaches implements the chifra status --caches command.
func (*StatusOptions) StatusChains ¶
StatusChains implements the chifra status --chains command.
func (*StatusOptions) StatusCount ¶
func (*StatusOptions) StatusDiagnose ¶
StatusDiagnose implements the chifra status --diagnose command.
func (*StatusOptions) StatusHealthcheck ¶
StatusHealthcheck implements the chifra status --healthcheck command.
func (*StatusOptions) StatusIndex ¶
StatusIndex implements the chifra status index command.
func (*StatusOptions) StatusLogs ¶
StatusLogs implements the chifra status logs command.
func (*StatusOptions) StatusMaps ¶
StatusMaps implements the chifra status maps command.
func (*StatusOptions) StatusMonitors ¶
StatusMonitors implements the chifra status monitors command.
func (*StatusOptions) StatusNames ¶
StatusNames implements the chifra status names command.
func (*StatusOptions) StatusResults ¶
StatusResults implements the chifra status results command.
func (*StatusOptions) StatusSlurps ¶
StatusSlurps implements the chifra status slurps command.
func (*StatusOptions) StatusSome ¶
StatusSome implements the chifra status some command.
func (*StatusOptions) StatusStaging ¶
StatusStaging implements the chifra status staging command.
func (*StatusOptions) StatusState ¶
StatusState implements the chifra status state command.
func (*StatusOptions) StatusStatements ¶
StatusStatements implements the chifra status statements command.
func (*StatusOptions) StatusTokens ¶
StatusTokens implements the chifra status tokens command.
func (*StatusOptions) StatusTraces ¶
StatusTraces implements the chifra status traces command.
func (*StatusOptions) StatusTransactions ¶
StatusTransactions implements the chifra status transactions command.
func (*StatusOptions) StatusUnripe ¶
StatusUnripe implements the chifra status unripe command.
func (StatusOptions) String ¶
func (opts StatusOptions) String() string
String implements the stringer interface
type TokensOptions ¶
type TokensOptions struct {
Addrs []string `json:"addrs,omitempty"`
BlockIds []string `json:"blocks,omitempty"`
Parts TokensParts `json:"parts,omitempty"`
ByAcct bool `json:"byAcct,omitempty"`
Changes bool `json:"changes,omitempty"`
NoZero bool `json:"noZero,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (TokensOptions) String ¶
func (opts TokensOptions) String() string
String implements the stringer interface
func (*TokensOptions) TokensApprovals ¶
TokensApprovals implements the chifra tokens --approvals command.
type TokensParts ¶
type TokensParts int
func (TokensParts) String ¶
func (v TokensParts) String() string
type TraceAction ¶
type TraceAction = types.TraceAction
type TraceCount ¶
type TraceCount = types.TraceCount
type TraceFilter ¶
type TraceFilter = types.TraceFilter
type TraceResult ¶
type TraceResult = types.TraceResult
type TracesOptions ¶
type TracesOptions struct {
TransactionIds []string `json:"transactions,omitempty"`
Articulate bool `json:"articulate,omitempty"`
Filter string `json:"filter,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (TracesOptions) String ¶
func (opts TracesOptions) String() string
String implements the stringer interface
func (*TracesOptions) TracesCount ¶
func (opts *TracesOptions) TracesCount() ([]types.TraceCount, *types.MetaData, error)
TracesCount implements the chifra traces --count command.
type Transaction ¶
type Transaction = types.Transaction
type TransactionsFlow ¶
type TransactionsFlow int
func (TransactionsFlow) String ¶
func (v TransactionsFlow) String() string
type TransactionsOptions ¶
type TransactionsOptions struct {
TransactionIds []string `json:"transactions,omitempty"`
Articulate bool `json:"articulate,omitempty"`
Flow TransactionsFlow `json:"flow,omitempty"`
Emitter []string `json:"emitter,omitempty"`
Topic []string `json:"topic,omitempty"`
CacheTraces bool `json:"cacheTraces,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (TransactionsOptions) String ¶
func (opts TransactionsOptions) String() string
String implements the stringer interface
func (*TransactionsOptions) Transactions ¶
func (opts *TransactionsOptions) Transactions() ([]types.Transaction, *types.MetaData, error)
Transactions implements the chifra transactions command.
func (*TransactionsOptions) TransactionsLogs ¶
TransactionsLogs implements the chifra transactions --logs command.
func (*TransactionsOptions) TransactionsTraces ¶
TransactionsTraces implements the chifra transactions --traces command.
func (*TransactionsOptions) TransactionsUniq ¶
func (opts *TransactionsOptions) TransactionsUniq() ([]types.Appearance, *types.MetaData, error)
TransactionsUniq implements the chifra transactions --uniq command.
type UpdateType ¶
type UpdateType string
const ( Timer UpdateType = "timer" File UpdateType = "file" Folder UpdateType = "folder" FileSize UpdateType = "fileSize" FolderSize UpdateType = "folderSize" )
func (*UpdateType) String ¶
func (u *UpdateType) String() string
type Updater ¶
type Updater struct {
Name string `json:"name"`
LastTimeStamp int64 `json:"lastTimeStamp"`
LastTotalSize int64 `json:"lastTotalSize"`
Items []UpdaterItem `json:"items"`
}
func NewUpdater ¶
func NewUpdater(name string, items []UpdaterItem) (Updater, error)
NewUpdater creates a new Updater instance. It logs a fatal error if invalid parameters are provided.
func (*Updater) NeedsUpdate ¶
NeedsUpdate checks if the updater needs to be updated based on the paths or duration.
Summary: - If the Timer type has exceeded its duration, it will trigger an update. - If the File or Folder types find any file whose modification time is later than LastTimeStamp, it will trigger an update. - If the FileSize or FolderSize items notice an increase in the total file size of all FileSize or FolderSize items, it will trigger an update.
Returns: - Updater: A potentially updated Updater instance with updated LastTimeStamp and/or LastTotalSize. - bool: A boolean indicating whether an update is needed (true) or not (false). - error: An error object containing any errors encountered during the update check.
func (*Updater) Reset ¶
func (u *Updater) Reset()
Reset sets the LastTimeStamp and LastTotalSize to 0 which causes a reload on the next call to NeedsUpdate.
type UpdaterItem ¶
type UpdaterItem struct {
Path string `json:"path"`
Duration time.Duration `json:"duration"`
Type UpdateType `json:"type"`
}
type WhenOptions ¶
type WhenOptions struct {
BlockIds []string `json:"blocks,omitempty"`
Truncate base.Blknum `json:"truncate,omitempty"`
Repair bool `json:"repair,omitempty"`
Update bool `json:"update,omitempty"`
Deep uint64 `json:"deep,omitempty"`
RenderCtx *output.RenderCtx `json:"-"`
Globals
}
func (WhenOptions) String ¶
func (opts WhenOptions) String() string
String implements the stringer interface
func (*WhenOptions) When ¶
func (opts *WhenOptions) When() ([]types.NamedBlock, *types.MetaData, error)
When implements the chifra when command.
func (*WhenOptions) WhenCheck ¶
func (opts *WhenOptions) WhenCheck() ([]types.ReportCheck, *types.MetaData, error)
WhenCheck implements the chifra when --check command.
func (*WhenOptions) WhenList ¶
func (opts *WhenOptions) WhenList() ([]types.NamedBlock, *types.MetaData, error)
WhenList implements the chifra when --list command.
func (*WhenOptions) WhenTimestamps ¶
WhenTimestamps implements the chifra when --timestamps command.
type Withdrawal ¶
type Withdrawal = types.Withdrawal
Source Files
¶
- abis.go
- abis_internal.go
- app_types.go
- blocks.go
- blocks_internal.go
- chunks.go
- chunks_internal.go
- config.go
- config_internal.go
- contracts.go
- daemon.go
- daemon_internal.go
- explore.go
- explore_internal.go
- export.go
- export_internal.go
- globals.go
- init.go
- init_internal.go
- list.go
- list_internal.go
- logs.go
- logs_internal.go
- meta.go
- monitors.go
- monitors_internal.go
- names.go
- names_internal.go
- parse.go
- receipts.go
- receipts_internal.go
- result.go
- rpc.go
- scrape.go
- scrape_internal.go
- slurp.go
- slurp_internal.go
- sorts.go
- state.go
- state_internal.go
- status.go
- status_internal.go
- tokens.go
- tokens_internal.go
- traces.go
- traces_internal.go
- transactions.go
- transactions_internal.go
- updater.go
- version.go
- when.go
- when_internal.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package services provides a framework for managing long-running background services with lifecycle management, pause/unpause functionality, and restart capabilities.
|
Package services provides a framework for managing long-running background services with lifecycle management, pause/unpause functionality, and restart capabilities. |