Documentation ¶
Index ¶
- Variables
- type Ftype
- type Packer
- func (p *Packer) AddFile(tp Ftype, sz int64, rdr io.Reader) (err error)
- func (p *Packer) AddTags(tps []tags.TagPair) (err error)
- func (p *Packer) AddWellTags(tgs []string) (err error)
- func (p *Packer) Cancel()
- func (p *Packer) Close() (err error)
- func (p *Packer) CloseWithError(err error) error
- func (p *Packer) CloseWithTimeout(to time.Duration) error
- func (p *Packer) Flush() (err error)
- func (p *Packer) Read(b []byte) (n int, err error)
- type UnpackHandler
- type Unpacker
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrClosed = errors.New("closed") ErrInvalidFilePath = errors.New("invalid filepath") ErrInvalidFileType = errors.New("invalid file type") )
View Source
var ( ErrFailedWrite = errors.New("Failed writing out complete file") ErrInvalidUnpackerParams = errors.New("Invalid unpacker parameters") )
Functions ¶
This section is empty.
Types ¶
type Packer ¶
type Packer struct { io.ReadCloser sync.Mutex // contains filtered or unexported fields }
func (*Packer) AddTags ¶
AddTags pushes a complete list of tag pairs, this is the complete mapping of tagname to tag id. The webserver merges the tag set, potentially adding tags
func (*Packer) AddWellTags ¶
AddWellTags adds the list of tags that are assigned to the well every time we push a shard we push an updated set of tags that are assigned the default well will have an empty list
func (*Packer) CloseWithError ¶
Close with error is used to close but also send a read error to the pipe
type UnpackHandler ¶
Click to show internal directories.
Click to hide internal directories.