Documentation
¶
Index ¶
- Constants
- func InitIpfs() *ipfs.Shell
- func PinToIpfs(path string) (string, error)
- func ReadFromIpfs(hash string) ([]byte, error)
- func WriteToIpfs(content []byte, isPin bool) (string, error)
- type Item
- func KeepItem(ctx context.Context, item Item, token string, pin fxAccount.Pin, quota string) (*Item, error)
- func ReadItem(ctx context.Context, cid string) (*Item, error)
- func ReadRecord(cid string) (*Item, error)
- func WriteItem(userID string, itemType string, brief string, content string) (*Item, error)
- type ItemHead
- type ItemMeta
Constants ¶
View Source
const ContentTypeImagePng = "image/png"
View Source
const ContentTypePlainText = "text/plain"
Variables ¶
This section is empty.
Functions ¶
func ReadFromIpfs ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.