blob

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

type Blob struct {
	Metadata object.Metadata
	Chunks   []*Chunk
	// contains filtered or unexported fields
}

func ToBlob

func ToBlob(r io.Reader) (*Blob, error)

func (*Blob) FromObject

func (e *Blob) FromObject(o object.Object) error

func (Blob) GetSchema

func (e Blob) GetSchema() *object.SchemaObject

func (Blob) GetType

func (e Blob) GetType() string

func (Blob) IsStreamRoot

func (e Blob) IsStreamRoot() bool

func (Blob) ToObject

func (e Blob) ToObject() object.Object

type Chunk

type Chunk struct {
	Metadata object.Metadata
	Data     []byte
	// contains filtered or unexported fields
}

func (*Chunk) FromObject

func (e *Chunk) FromObject(o object.Object) error

func (Chunk) GetSchema

func (e Chunk) GetSchema() *object.SchemaObject

func (Chunk) GetType

func (e Chunk) GetType() string

func (Chunk) IsStreamRoot

func (e Chunk) IsStreamRoot() bool

func (Chunk) ToObject

func (e Chunk) ToObject() object.Object

type Reader

type Reader interface {
	Read(p []byte) (n int, err error)
}

func FromBlob

func FromBlob(bl *Blob) Reader

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL