Documentation ¶
Index ¶
- func NewProtocol() (core.Protocol, []core.ContextBuilderOption, error)
- type Protocol
- func (p Protocol) CompleteProtocolData(_ context.Context, _ uint) error
- func (p Protocol) Config() config.ProtocolConfig
- func (p Protocol) CreateProtocolData(ctx context.Context, id uint, data any) error
- func (p Protocol) CreateProtocolPin(ctx context.Context, id uint, data any) error
- func (p Protocol) DeleteProtocolData(ctx context.Context, id uint) error
- func (p Protocol) DeleteProtocolPin(ctx context.Context, id uint) error
- func (p Protocol) EncodeFileName(hash core.StorageHash) string
- func (p Protocol) GetMetadataStore() *store.MetadataStoreDefault
- func (p Protocol) GetNode() *ipfs.Node
- func (p Protocol) GetProtocolData(ctx context.Context, tx *gorm.DB, id uint) (any, error)
- func (p Protocol) GetProtocolDataModel() any
- func (p Protocol) GetProtocolPin(ctx context.Context, tx *gorm.DB, id uint) (any, error)
- func (p Protocol) GetProtocolPinModel() any
- func (p Protocol) Hash(_ io.Reader, _ uint64) (core.StorageHash, error)
- func (p Protocol) Name() string
- func (p Protocol) QueryProtocolData(_ context.Context, tx *gorm.DB, query any) *gorm.DB
- func (p Protocol) QueryProtocolPin(ctx context.Context, query any) *gorm.DB
- func (p Protocol) UpdateProtocolData(ctx context.Context, id uint, data any) error
- func (p Protocol) UpdateProtocolPin(ctx context.Context, id uint, data any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProtocol ¶
func NewProtocol() (core.Protocol, []core.ContextBuilderOption, error)
Types ¶
type Protocol ¶
type Protocol struct {
// contains filtered or unexported fields
}
func (Protocol) CompleteProtocolData ¶
func (Protocol) Config ¶
func (p Protocol) Config() config.ProtocolConfig
func (Protocol) CreateProtocolData ¶
func (Protocol) CreateProtocolPin ¶
func (Protocol) DeleteProtocolData ¶
func (Protocol) DeleteProtocolPin ¶
func (Protocol) EncodeFileName ¶
func (p Protocol) EncodeFileName(hash core.StorageHash) string
func (Protocol) GetMetadataStore ¶
func (p Protocol) GetMetadataStore() *store.MetadataStoreDefault
func (Protocol) GetProtocolData ¶
func (Protocol) GetProtocolDataModel ¶
func (Protocol) GetProtocolPin ¶
func (Protocol) GetProtocolPinModel ¶
func (Protocol) QueryProtocolData ¶
func (Protocol) QueryProtocolPin ¶
func (Protocol) UpdateProtocolData ¶
Directories ¶
Path | Synopsis |
---|---|
downloader
package downloader contains a cache for downloading blocks from a renterd node.
|
package downloader contains a cache for downloading blocks from a renterd node. |
Click to show internal directories.
Click to hide internal directories.