Documentation ¶
Index ¶
- type IDriver
- type IpfsDriver
- func (ipfs *IpfsDriver) DaID(dataHash, txHash string) string
- func (ipfs *IpfsDriver) Get(ctx context.Context, key string) (data []byte, txHash string, err error)
- func (ipfs *IpfsDriver) Put(ctx context.Context, key string, data []byte) (txHash string, err error)
- func (ipfs *IpfsDriver) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDriver ¶
type IDriver interface { Put(ctx context.Context, key string, data []byte) (txHash string, err error) Get(ctx context.Context, key string) (data []byte, txHash string, err error) Type() string DaID(dataHash string, txHash string) string }
func GetIpfsDriver ¶
type IpfsDriver ¶
type IpfsDriver struct { Bucket string // contains filtered or unexported fields }
func NewIpfsDriver ¶
func NewIpfsDriver(endpoint, bucket string) *IpfsDriver
func (*IpfsDriver) DaID ¶
func (ipfs *IpfsDriver) DaID(dataHash, txHash string) string
func (*IpfsDriver) Type ¶
func (ipfs *IpfsDriver) Type() string
Click to show internal directories.
Click to hide internal directories.