blob

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheIndexer

type CacheIndexer interface {
	MarkReleaseCached(ctx context.Context, releaseID string, blobSize int64, blobMtimeUnix int64) error
	MarkReleaseCacheMissing(ctx context.Context, releaseID, reason string) error
}

type EphemeralBlobStore

type EphemeralBlobStore struct {
	// contains filtered or unexported fields
}

optional no-cache mode store (process-memory only).

func NewEphemeralBlobStore

func NewEphemeralBlobStore() *EphemeralBlobStore

func (*EphemeralBlobStore) CreateNZBWriter

func (s *EphemeralBlobStore) CreateNZBWriter(key string) (io.WriteCloser, error)

func (*EphemeralBlobStore) Exists

func (s *EphemeralBlobStore) Exists(key string) bool

func (*EphemeralBlobStore) GetNZBReader

func (s *EphemeralBlobStore) GetNZBReader(key string) (io.ReadCloser, error)

func (*EphemeralBlobStore) SaveNZBAtomically

func (s *EphemeralBlobStore) SaveNZBAtomically(key string, data []byte) error

type FSBlobStore

type FSBlobStore struct {
	// contains filtered or unexported fields
}

func NewFSBlobStore

func NewFSBlobStore(blobDir string, cache CacheIndexer) (*FSBlobStore, error)

func (*FSBlobStore) CreateNZBWriter

func (s *FSBlobStore) CreateNZBWriter(id string) (io.WriteCloser, error)

func (*FSBlobStore) Exists

func (s *FSBlobStore) Exists(id string) bool

func (*FSBlobStore) GetNZBReader

func (s *FSBlobStore) GetNZBReader(id string) (io.ReadCloser, error)

func (*FSBlobStore) SaveNZBAtomically

func (s *FSBlobStore) SaveNZBAtomically(id string, data []byte) (err error)

Jump to

Keyboard shortcuts

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