Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chunker ¶
type Chunker struct {
// contains filtered or unexported fields
}
Chunker struct
func NewChunker ¶
NewChunker creates a new chunker struct
func (*Chunker) ChunkAll ¶
func (c *Chunker) ChunkAll() ([]EncodedChunk, error)
ChunkAll is a commodity function designed to returns all the chunks from an io.Reader
func (*Chunker) EncodedSize ¶
EncodedSize calculates the Base64RawURL encoded size of our chunk
func (*Chunker) Next ¶
func (c *Chunker) Next() (*EncodedChunk, error)
Next retrieves the next chunk from the io.Reader
func (*Chunker) SetChunkSize ¶
SetChunkSize sets the chunk size
func (*Chunker) TotalChunks ¶
TotalChunks returns the total chunks
type EncodedChunk ¶
EncodedChunk is the data structure representing an encoded chunk on the arweave
func (*EncodedChunk) MarshalJSON ¶
func (ec *EncodedChunk) MarshalJSON() ([]byte, error)
MarshalJSON marshals as JSON
func (*EncodedChunk) UnmarshalJSON ¶
func (ec *EncodedChunk) UnmarshalJSON(input []byte) error
UnmarshalJSON unmarshals as JSON
type EncodedChunkJSON ¶
EncodedChunkJSON is the intermediary data to encode/decode into JSON
func NewEncodedChunkJSON ¶
func NewEncodedChunkJSON(ec *EncodedChunk) *EncodedChunkJSON
NewEncodedChunkJSON creates a new EncodedChunkJSON struct
Click to show internal directories.
Click to hide internal directories.