Documentation
¶
Index ¶
- Variables
- type Config
- type SQLStore
- func (s *SQLStore) AbortMultipartUpload(ctx context.Context, bucket, path string, uploadID string) error
- func (s *SQLStore) Accounts(ctx context.Context) (accounts []api.Account, err error)
- func (s *SQLStore) AddContract(ctx context.Context, c rhpv2.ContractRevision, ...) (_ api.ContractMetadata, err error)
- func (s *SQLStore) AddMultipartPart(ctx context.Context, bucket, path, contractSet, eTag, uploadID string, ...) (err error)
- func (s *SQLStore) AddPartialSlab(ctx context.Context, data []byte, minShards, totalShards uint8, ...) ([]object.SlabSlice, int64, error)
- func (s *SQLStore) AddPeer(addr string) error
- func (s *SQLStore) AddRenewedContract(ctx context.Context, c rhpv2.ContractRevision, ...) (renewed api.ContractMetadata, err error)
- func (s *SQLStore) AddWebhook(ctx context.Context, wh webhooks.Webhook) error
- func (s *SQLStore) AncestorContracts(ctx context.Context, id types.FileContractID, startHeight uint64) (ancestors []api.ArchivedContract, err error)
- func (s *SQLStore) ArchiveAllContracts(ctx context.Context, reason string) error
- func (s *SQLStore) ArchiveContract(ctx context.Context, id types.FileContractID, reason string) error
- func (s *SQLStore) ArchiveContracts(ctx context.Context, toArchive map[types.FileContractID]string) error
- func (s *SQLStore) Autopilot(ctx context.Context, id string) (ap api.Autopilot, _ error)
- func (s *SQLStore) Autopilots(ctx context.Context) (aps []api.Autopilot, _ error)
- func (s *SQLStore) Ban(addr string, duration time.Duration, reason string) error
- func (s *SQLStore) Banned(addr string) (banned bool, err error)
- func (s *SQLStore) Bucket(ctx context.Context, bucket string) (b api.Bucket, err error)
- func (s *SQLStore) ChainIndex(ctx context.Context) (ci types.ChainIndex, err error)
- func (s *SQLStore) Close() error
- func (s *SQLStore) CompleteMultipartUpload(ctx context.Context, bucket, path string, uploadID string, ...) (_ api.MultipartCompleteResponse, err error)
- func (s *SQLStore) Contract(ctx context.Context, id types.FileContractID) (cm api.ContractMetadata, err error)
- func (s *SQLStore) ContractMetrics(ctx context.Context, start time.Time, n uint64, interval time.Duration, ...) (metrics []api.ContractMetric, err error)
- func (s *SQLStore) ContractPruneMetrics(ctx context.Context, start time.Time, n uint64, interval time.Duration, ...) (metrics []api.ContractPruneMetric, err error)
- func (s *SQLStore) ContractRoots(ctx context.Context, id types.FileContractID) (roots []types.Hash256, err error)
- func (s *SQLStore) ContractSetChurnMetrics(ctx context.Context, start time.Time, n uint64, interval time.Duration, ...) (metrics []api.ContractSetChurnMetric, err error)
- func (s *SQLStore) ContractSetMetrics(ctx context.Context, start time.Time, n uint64, interval time.Duration, ...) (metrics []api.ContractSetMetric, err error)
- func (s *SQLStore) ContractSets(ctx context.Context) (sets []string, err error)
- func (s *SQLStore) ContractSize(ctx context.Context, id types.FileContractID) (cs api.ContractSize, err error)
- func (s *SQLStore) ContractSizes(ctx context.Context) (sizes map[types.FileContractID]api.ContractSize, err error)
- func (s *SQLStore) Contracts(ctx context.Context, opts api.ContractsOpts) ([]api.ContractMetadata, error)
- func (s *SQLStore) CopyObject(ctx context.Context, srcBucket, dstBucket, srcPath, dstPath, mimeType string, ...) (om api.ObjectMetadata, err error)
- func (s *SQLStore) CreateBucket(ctx context.Context, bucket string, policy api.BucketPolicy) error
- func (s *SQLStore) CreateMultipartUpload(ctx context.Context, bucket, path string, ec object.EncryptionKey, ...) (api.MultipartCreateResponse, error)
- func (s *SQLStore) DeleteBucket(ctx context.Context, bucket string) error
- func (s *SQLStore) DeleteHostSector(ctx context.Context, hk types.PublicKey, root types.Hash256) (deletedSectors int, err error)
- func (s *SQLStore) DeleteSetting(ctx context.Context, key string) error
- func (s *SQLStore) DeleteWebhook(ctx context.Context, wh webhooks.Webhook) error
- func (s *SQLStore) FetchPartialSlab(ctx context.Context, ec object.EncryptionKey, offset, length uint32) ([]byte, error)
- func (s *SQLStore) Host(ctx context.Context, hostKey types.PublicKey) (api.Host, error)
- func (s *SQLStore) HostAllowlist(ctx context.Context) (allowlist []types.PublicKey, err error)
- func (s *SQLStore) HostBlocklist(ctx context.Context) (blocklist []string, err error)
- func (s *SQLStore) Hosts(ctx context.Context, offset, limit int) ([]api.Host, error)
- func (s *SQLStore) HostsForScanning(ctx context.Context, maxLastScan time.Time, offset, limit int) (hosts []api.HostAddress, err error)
- func (s *SQLStore) ListBuckets(ctx context.Context) (buckets []api.Bucket, err error)
- func (s *SQLStore) ListObjects(ctx context.Context, bucket, prefix, sortBy, sortDir, marker string, limit int) (resp api.ObjectsListResponse, err error)
- func (s *SQLStore) MarkPackedSlabsUploaded(ctx context.Context, slabs []api.UploadedPackedSlab) error
- func (s *SQLStore) MultipartUpload(ctx context.Context, uploadID string) (resp api.MultipartUpload, err error)
- func (s *SQLStore) MultipartUploadParts(ctx context.Context, bucket, object string, uploadID string, marker int, ...) (resp api.MultipartListPartsResponse, _ error)
- func (s *SQLStore) MultipartUploads(ctx context.Context, bucket, prefix, keyMarker, uploadIDMarker string, ...) (resp api.MultipartListUploadsResponse, err error)
- func (s *SQLStore) Object(ctx context.Context, bucket, path string) (obj api.Object, err error)
- func (s *SQLStore) ObjectEntries(ctx context.Context, bucket, path, prefix, sortBy, sortDir, marker string, ...) (metadata []api.ObjectMetadata, hasMore bool, err error)
- func (s *SQLStore) ObjectMetadata(ctx context.Context, bucket, path string) (obj api.Object, err error)
- func (s *SQLStore) ObjectsBySlabKey(ctx context.Context, bucket string, slabKey object.EncryptionKey) (metadata []api.ObjectMetadata, err error)
- func (s *SQLStore) ObjectsStats(ctx context.Context, opts api.ObjectsStatsOpts) (resp api.ObjectsStatsResponse, _ error)
- func (s *SQLStore) PackedSlabsForUpload(ctx context.Context, lockingDuration time.Duration, ...) ([]api.PackedSlab, error)
- func (s *SQLStore) PeerInfo(addr string) (info syncer.PeerInfo, err error)
- func (s *SQLStore) Peers() (peers []syncer.PeerInfo, err error)
- func (s *SQLStore) PerformanceMetrics(ctx context.Context, start time.Time, n uint64, interval time.Duration, ...) (metrics []api.PerformanceMetric, err error)
- func (s *SQLStore) ProcessChainUpdate(ctx context.Context, applyFn func(sql.ChainUpdateTx) error) error
- func (s *SQLStore) PruneMetrics(ctx context.Context, metric string, cutoff time.Time) error
- func (s *SQLStore) RecordContractMetric(ctx context.Context, metrics ...api.ContractMetric) error
- func (s *SQLStore) RecordContractPruneMetric(ctx context.Context, metrics ...api.ContractPruneMetric) error
- func (s *SQLStore) RecordContractSetChurnMetric(ctx context.Context, metrics ...api.ContractSetChurnMetric) error
- func (s *SQLStore) RecordContractSetMetric(ctx context.Context, metrics ...api.ContractSetMetric) error
- func (s *SQLStore) RecordContractSpending(ctx context.Context, records []api.ContractSpendingRecord) error
- func (s *SQLStore) RecordHostScans(ctx context.Context, scans []api.HostScan) error
- func (s *SQLStore) RecordPerformanceMetric(ctx context.Context, metrics ...api.PerformanceMetric) error
- func (s *SQLStore) RecordPriceTables(ctx context.Context, priceTableUpdate []api.HostPriceTableUpdate) error
- func (s *SQLStore) RecordWalletMetric(ctx context.Context, metrics ...api.WalletMetric) error
- func (s *SQLStore) RefreshHealth(ctx context.Context) error
- func (s *SQLStore) RemoveContractSet(ctx context.Context, name string) error
- func (s *SQLStore) RemoveObject(ctx context.Context, bucket, path string) error
- func (s *SQLStore) RemoveObjects(ctx context.Context, bucket, prefix string) error
- func (s *SQLStore) RemoveOfflineHosts(ctx context.Context, minRecentFailures uint64, maxDowntime time.Duration) (removed uint64, err error)
- func (s *SQLStore) RenameObject(ctx context.Context, bucket, keyOld, keyNew string, force bool) error
- func (s *SQLStore) RenameObjects(ctx context.Context, bucket, prefixOld, prefixNew string, force bool) error
- func (s *SQLStore) RenewedContract(ctx context.Context, renewedFrom types.FileContractID) (cm api.ContractMetadata, err error)
- func (s *SQLStore) ResetChainState(ctx context.Context) error
- func (s *SQLStore) ResetLostSectors(ctx context.Context, hk types.PublicKey) error
- func (s *SQLStore) SaveAccounts(ctx context.Context, accounts []api.Account) error
- func (s *SQLStore) SearchHosts(ctx context.Context, ...) ([]api.Host, error)
- func (s *SQLStore) SearchObjects(ctx context.Context, bucket, substring string, offset, limit int) (objects []api.ObjectMetadata, err error)
- func (s *SQLStore) SetContractSet(ctx context.Context, name string, contractIds []types.FileContractID) error
- func (s *SQLStore) SetUncleanShutdown(ctx context.Context) error
- func (s *SQLStore) Setting(ctx context.Context, key string) (string, error)
- func (s *SQLStore) Settings(ctx context.Context) (settings []string, err error)
- func (s *SQLStore) Slab(ctx context.Context, key object.EncryptionKey) (slab object.Slab, err error)
- func (s *SQLStore) SlabBuffers(ctx context.Context) ([]api.SlabBuffer, error)
- func (s *SQLStore) Tip() (ci types.ChainIndex, err error)
- func (s *SQLStore) UnhealthySlabs(ctx context.Context, healthCutoff float64, set string, limit int) (slabs []api.UnhealthySlab, err error)
- func (s *SQLStore) UnspentSiacoinElements() (elements []types.SiacoinElement, err error)
- func (s *SQLStore) UpdateAutopilot(ctx context.Context, ap api.Autopilot) error
- func (s *SQLStore) UpdateBucketPolicy(ctx context.Context, bucket string, policy api.BucketPolicy) error
- func (s *SQLStore) UpdateHostAllowlistEntries(ctx context.Context, add, remove []types.PublicKey, clear bool) (err error)
- func (s *SQLStore) UpdateHostBlocklistEntries(ctx context.Context, add, remove []string, clear bool) (err error)
- func (s *SQLStore) UpdateHostCheck(ctx context.Context, autopilotID string, hk types.PublicKey, hc api.HostCheck) (err error)
- func (s *SQLStore) UpdateObject(ctx context.Context, bucket, path, contractSet, eTag, mimeType string, ...) error
- func (s *SQLStore) UpdatePeerInfo(addr string, fn func(*syncer.PeerInfo)) error
- func (s *SQLStore) UpdateSetting(ctx context.Context, key, value string) error
- func (s *SQLStore) UpdateSlab(ctx context.Context, slab object.Slab, contractSet string) error
- func (s *SQLStore) WalletEventCount() (count uint64, err error)
- func (s *SQLStore) WalletEvents(offset, limit int) (events []wallet.Event, err error)
- func (s *SQLStore) WalletMetrics(ctx context.Context, start time.Time, n uint64, interval time.Duration, ...) (metrics []api.WalletMetric, err error)
- func (s *SQLStore) Webhooks(ctx context.Context) (whs []webhooks.Webhook, err error)
- type SlabBuffer
- type SlabBufferManager
- func (mgr *SlabBufferManager) AddPartialSlab(ctx context.Context, data []byte, minShards, totalShards uint8, ...) ([]object.SlabSlice, int64, error)
- func (mgr *SlabBufferManager) BufferSize(gid bufferGroupID) (total int64)
- func (mgr *SlabBufferManager) Close() error
- func (mgr *SlabBufferManager) FetchPartialSlab(ctx context.Context, ec object.EncryptionKey, offset, length uint32) ([]byte, error)
- func (mgr *SlabBufferManager) RemoveBuffers(fileNames ...string)
- func (mgr *SlabBufferManager) SlabBuffers() (sbs []api.SlabBuffer)
- func (mgr *SlabBufferManager) SlabsForUpload(ctx context.Context, lockingDuration time.Duration, ...) (slabs []api.PackedSlab, _ error)
Constants ¶
This section is empty.
Variables ¶
var (
ErrNegativeMaxDowntime = errors.New("max downtime can not be negative")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.0.1
type Config struct { DB sql.Database DBMetrics sql.MetricsDatabase Alerts alerts.Alerter PartialSlabDir string Migrate bool AnnouncementMaxAge time.Duration WalletAddress types.Address SlabBufferCompletionThreshold int64 Logger *zap.Logger RetryTransactionIntervals []time.Duration LongQueryDuration time.Duration LongTxDuration time.Duration }
Config contains all params for creating a SQLStore
type SQLStore ¶
type SQLStore struct {
// contains filtered or unexported fields
}
SQLStore is a helper type for interacting with a SQL-based backend.
func NewSQLStore ¶
NewSQLStore uses a given Dialector to connect to a SQL database. NOTE: Only pass migrate=true for the first instance of SQLHostDB if you connect via the same Dialector multiple times.
func (*SQLStore) AbortMultipartUpload ¶ added in v0.6.0
func (*SQLStore) AddContract ¶
func (*SQLStore) AddMultipartPart ¶ added in v0.6.0
func (*SQLStore) AddPartialSlab ¶
func (*SQLStore) AddPeer ¶ added in v1.1.0
AddPeer adds a peer to the store. If the peer already exists, nil should be returned.
func (*SQLStore) AddRenewedContract ¶
func (s *SQLStore) AddRenewedContract(ctx context.Context, c rhpv2.ContractRevision, contractPrice, totalCost types.Currency, startHeight uint64, renewedFrom types.FileContractID, state string) (renewed api.ContractMetadata, err error)
AddRenewedContract adds a new contract which was created as the result of a renewal to the store. The old contract specified as 'renewedFrom' will be deleted from the active contracts and moved to the archive. Both new and old contract will be linked to each other through the RenewedFrom and RenewedTo fields respectively.
func (*SQLStore) AddWebhook ¶
func (*SQLStore) AncestorContracts ¶
func (s *SQLStore) AncestorContracts(ctx context.Context, id types.FileContractID, startHeight uint64) (ancestors []api.ArchivedContract, err error)
func (*SQLStore) ArchiveAllContracts ¶
func (*SQLStore) ArchiveContract ¶
func (*SQLStore) ArchiveContracts ¶
func (*SQLStore) Autopilots ¶
func (*SQLStore) Ban ¶ added in v1.1.0
Ban temporarily bans one or more IPs. The addr should either be a single IP with port (e.g. 1.2.3.4:5678) or a CIDR subnet (e.g. 1.2.3.4/16).
func (*SQLStore) ChainIndex ¶ added in v1.1.0
ChainIndex returns the last stored chain index.
func (*SQLStore) CompleteMultipartUpload ¶ added in v0.6.0
func (s *SQLStore) CompleteMultipartUpload(ctx context.Context, bucket, path string, uploadID string, parts []api.MultipartCompletedPart, opts api.CompleteMultipartOptions) (_ api.MultipartCompleteResponse, err error)
func (*SQLStore) Contract ¶
func (s *SQLStore) Contract(ctx context.Context, id types.FileContractID) (cm api.ContractMetadata, err error)
func (*SQLStore) ContractMetrics ¶ added in v0.7.0
func (*SQLStore) ContractPruneMetrics ¶ added in v0.7.0
func (*SQLStore) ContractRoots ¶
func (*SQLStore) ContractSetChurnMetrics ¶ added in v0.7.0
func (*SQLStore) ContractSetMetrics ¶ added in v0.7.0
func (*SQLStore) ContractSets ¶
func (*SQLStore) ContractSize ¶
func (s *SQLStore) ContractSize(ctx context.Context, id types.FileContractID) (cs api.ContractSize, err error)
func (*SQLStore) ContractSizes ¶
func (s *SQLStore) ContractSizes(ctx context.Context) (sizes map[types.FileContractID]api.ContractSize, err error)
func (*SQLStore) Contracts ¶
func (s *SQLStore) Contracts(ctx context.Context, opts api.ContractsOpts) ([]api.ContractMetadata, error)
func (*SQLStore) CopyObject ¶ added in v0.6.0
func (s *SQLStore) CopyObject(ctx context.Context, srcBucket, dstBucket, srcPath, dstPath, mimeType string, metadata api.ObjectUserMetadata) (om api.ObjectMetadata, err error)
func (*SQLStore) CreateBucket ¶ added in v0.6.0
func (*SQLStore) CreateMultipartUpload ¶ added in v0.6.0
func (s *SQLStore) CreateMultipartUpload(ctx context.Context, bucket, path string, ec object.EncryptionKey, mimeType string, metadata api.ObjectUserMetadata) (api.MultipartCreateResponse, error)
func (*SQLStore) DeleteBucket ¶ added in v0.6.0
func (*SQLStore) DeleteHostSector ¶ added in v0.7.0
func (*SQLStore) DeleteSetting ¶
DeleteSetting implements the bus.SettingStore interface.
func (*SQLStore) DeleteWebhook ¶
func (*SQLStore) FetchPartialSlab ¶
func (*SQLStore) HostAllowlist ¶
func (*SQLStore) HostBlocklist ¶
func (*SQLStore) HostsForScanning ¶
func (s *SQLStore) HostsForScanning(ctx context.Context, maxLastScan time.Time, offset, limit int) (hosts []api.HostAddress, err error)
HostsForScanning returns the address of hosts for scanning.
func (*SQLStore) ListBuckets ¶ added in v0.6.0
func (*SQLStore) ListObjects ¶ added in v0.6.0
func (s *SQLStore) ListObjects(ctx context.Context, bucket, prefix, sortBy, sortDir, marker string, limit int) (resp api.ObjectsListResponse, err error)
TODO: we can use ObjectEntries instead of ListObject if we want to use '/' as a delimiter for now (see backend.go) but it would be interesting to have arbitrary 'delim' support in ListObjects.
func (*SQLStore) MarkPackedSlabsUploaded ¶
func (s *SQLStore) MarkPackedSlabsUploaded(ctx context.Context, slabs []api.UploadedPackedSlab) error
MarkPackedSlabsUploaded marks the given slabs as uploaded and deletes them from the buffer.
func (*SQLStore) MultipartUpload ¶ added in v0.6.0
func (*SQLStore) MultipartUploadParts ¶ added in v0.6.0
func (*SQLStore) MultipartUploads ¶ added in v0.6.0
func (*SQLStore) ObjectEntries ¶
func (*SQLStore) ObjectMetadata ¶ added in v1.0.6
func (s *SQLStore) ObjectMetadata(ctx context.Context, bucket, path string) (obj api.Object, err error)
ObjectMetadata returns an object's metadata
func (*SQLStore) ObjectsBySlabKey ¶
func (s *SQLStore) ObjectsBySlabKey(ctx context.Context, bucket string, slabKey object.EncryptionKey) (metadata []api.ObjectMetadata, err error)
func (*SQLStore) ObjectsStats ¶
func (s *SQLStore) ObjectsStats(ctx context.Context, opts api.ObjectsStatsOpts) (resp api.ObjectsStatsResponse, _ error)
ObjectsStats returns some info related to the objects stored in the store. To reduce locking and make sure all results are consistent, everything is done within a single transaction.
func (*SQLStore) PackedSlabsForUpload ¶
func (s *SQLStore) PackedSlabsForUpload(ctx context.Context, lockingDuration time.Duration, minShards, totalShards uint8, set string, limit int) ([]api.PackedSlab, error)
PackedSlabsForUpload returns up to 'limit' packed slabs that are ready for uploading. They are locked for 'lockingDuration' time before being handed out again.
func (*SQLStore) PeerInfo ¶ added in v1.1.0
PeerInfo returns the metadata for the specified peer or ErrPeerNotFound if the peer wasn't found in the store.
func (*SQLStore) PerformanceMetrics ¶ added in v0.7.0
func (*SQLStore) ProcessChainUpdate ¶ added in v1.1.0
func (s *SQLStore) ProcessChainUpdate(ctx context.Context, applyFn func(sql.ChainUpdateTx) error) error
ProcessChainUpdate returns a callback function that process a chain update inside a transaction.
func (*SQLStore) PruneMetrics ¶ added in v0.7.0
func (*SQLStore) RecordContractMetric ¶ added in v0.7.0
func (*SQLStore) RecordContractPruneMetric ¶ added in v0.7.0
func (*SQLStore) RecordContractSetChurnMetric ¶ added in v0.7.0
func (*SQLStore) RecordContractSetMetric ¶ added in v0.7.0
func (*SQLStore) RecordContractSpending ¶
func (*SQLStore) RecordHostScans ¶
func (*SQLStore) RecordPerformanceMetric ¶ added in v0.7.0
func (*SQLStore) RecordPriceTables ¶
func (*SQLStore) RecordWalletMetric ¶ added in v0.7.0
func (*SQLStore) RemoveContractSet ¶
func (*SQLStore) RemoveObject ¶
func (*SQLStore) RemoveObjects ¶
func (*SQLStore) RemoveOfflineHosts ¶
func (*SQLStore) RenameObject ¶
func (*SQLStore) RenameObjects ¶
func (*SQLStore) RenewedContract ¶
func (s *SQLStore) RenewedContract(ctx context.Context, renewedFrom types.FileContractID) (cm api.ContractMetadata, err error)
func (*SQLStore) ResetChainState ¶ added in v1.1.0
ResetChainState deletes all chain data in the database.
func (*SQLStore) ResetLostSectors ¶ added in v0.7.0
func (*SQLStore) SaveAccounts ¶
SaveAccounts saves the given accounts in the db, overwriting any existing ones.
func (*SQLStore) SearchHosts ¶
func (*SQLStore) SearchObjects ¶
func (*SQLStore) SetContractSet ¶
func (*SQLStore) SetUncleanShutdown ¶ added in v0.6.0
SetUncleanShutdown sets the clean shutdown flag on the accounts to 'false' and also sets the 'requires_sync' flag. That way, the autopilot will know to sync all accounts after an unclean shutdown and the bus will know not to apply drift.
func (*SQLStore) SlabBuffers ¶
func (*SQLStore) Tip ¶ added in v1.1.0
func (s *SQLStore) Tip() (ci types.ChainIndex, err error)
Tip returns the consensus change ID and block height of the last wallet change.
func (*SQLStore) UnhealthySlabs ¶
func (s *SQLStore) UnhealthySlabs(ctx context.Context, healthCutoff float64, set string, limit int) (slabs []api.UnhealthySlab, err error)
UnhealthySlabs returns up to 'limit' slabs that do not reach full redundancy in the given contract set. These slabs need to be migrated to good contracts so they are restored to full health.
func (*SQLStore) UnspentSiacoinElements ¶
func (s *SQLStore) UnspentSiacoinElements() (elements []types.SiacoinElement, err error)
UnspentSiacoinElements returns a list of all unspent siacoin outputs
func (*SQLStore) UpdateAutopilot ¶
func (*SQLStore) UpdateBucketPolicy ¶ added in v0.6.0
func (*SQLStore) UpdateHostAllowlistEntries ¶
func (*SQLStore) UpdateHostBlocklistEntries ¶
func (*SQLStore) UpdateHostCheck ¶ added in v1.0.7
func (*SQLStore) UpdateObject ¶
func (*SQLStore) UpdatePeerInfo ¶ added in v1.1.0
UpdatePeerInfo updates the metadata for the specified peer. If the peer is not found, the error should be ErrPeerNotFound.
func (*SQLStore) UpdateSetting ¶
UpdateSetting implements the bus.SettingStore interface.
func (*SQLStore) UpdateSlab ¶
func (*SQLStore) WalletEventCount ¶ added in v1.1.0
WalletEventCount returns the number of events relevant to the wallet.
func (*SQLStore) WalletEvents ¶ added in v1.1.0
WalletEvents returns a paginated list of events, ordered by maturity height, descending. If no more events are available, (nil, nil) is returned.
func (*SQLStore) WalletMetrics ¶ added in v0.7.0
type SlabBuffer ¶
type SlabBuffer struct {
// contains filtered or unexported fields
}
type SlabBufferManager ¶
type SlabBufferManager struct {
// contains filtered or unexported fields
}
func (*SlabBufferManager) AddPartialSlab ¶
func (*SlabBufferManager) BufferSize ¶ added in v0.6.0
func (mgr *SlabBufferManager) BufferSize(gid bufferGroupID) (total int64)
func (*SlabBufferManager) Close ¶
func (mgr *SlabBufferManager) Close() error
func (*SlabBufferManager) FetchPartialSlab ¶
func (mgr *SlabBufferManager) FetchPartialSlab(ctx context.Context, ec object.EncryptionKey, offset, length uint32) ([]byte, error)
func (*SlabBufferManager) RemoveBuffers ¶
func (mgr *SlabBufferManager) RemoveBuffers(fileNames ...string)
func (*SlabBufferManager) SlabBuffers ¶
func (mgr *SlabBufferManager) SlabBuffers() (sbs []api.SlabBuffer)