Documentation
¶
Overview ¶
Package arweave is a wrapper for the Arweave client.
Index ¶
Constants ¶
View Source
const AkrodAPI = "https://api.akord.com/files"
AkrodAPI akord api
Variables ¶
View Source
var DataPrefixEnabledGz = []byte("gz::")
Functions ¶
func CompressData ¶
CompressData compress data if it's larger than 1KB
func DecompressData ¶
DecompressData decompress data if it's compressed
Types ¶
type AkrodUploadFileResp ¶
type AkrodUploadFileResp struct { Tx struct { Id string `json:"id"` } `json:"tx"` }
AkrodUploadFileResp response of akord upload file
type UploadOption ¶
type UploadOption func(*uploadOption) error
func WithContentType ¶
func WithContentType(contentType string) UploadOption
WithContentType set content type
Click to show internal directories.
Click to hide internal directories.