Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoDataToWrite = errors.New("no data to write")
Functions ¶
This section is empty.
Types ¶
type ArticleBlob ¶
func NewArticleBlob ¶
func NewArticleBlob() *ArticleBlob
func NewArticleBlobFromArray ¶
func NewArticleBlobFromArray(arr []byte) *ArticleBlob
func NewArticleBlobFromBuffer ¶
func NewArticleBlobFromBuffer(buf *bytes.Buffer) *ArticleBlob
func (*ArticleBlob) Dispose ¶
func (ab *ArticleBlob) Dispose() error
func (*ArticleBlob) Size ¶
func (ab *ArticleBlob) Size() int64
func (*ArticleBlob) Truncate ¶
func (ab *ArticleBlob) Truncate() error
type ArticleBlobPool ¶
type ArticleBlobPool interface {
Borrow() *ArticleBlob
Release(o *ArticleBlob)
}
func MemoryArticleBlobPool ¶
func MemoryArticleBlobPool(n int) ArticleBlobPool
func TempfileArticleBlobPool ¶
func TempfileArticleBlobPool(directory, prefix, postfix string, size int) ArticleBlobPool
type FixedBlobPool ¶
type FixedBlobPool chan *ArticleBlob
func (FixedBlobPool) Borrow ¶
func (f FixedBlobPool) Borrow() *ArticleBlob
func (FixedBlobPool) Release ¶
func (f FixedBlobPool) Release(o *ArticleBlob)
type StorageFile ¶
type StorageFile struct {
// contains filtered or unexported fields
}
func (*StorageFile) StoreConcurrently ¶
func (s *StorageFile) StoreConcurrently(a *ArticleBlob) (offset, length int64, err error)
type StorageFilePool ¶
type StorageFilePool struct {
// contains filtered or unexported fields
}
func (*StorageFilePool) Dayfile ¶
func (s *StorageFilePool) Dayfile(db groupdb.DayID, create bool) *StorageFile
Click to show internal directories.
Click to hide internal directories.