Documentation
¶
Index ¶
- func NewInCache(db blob.Store) blob.Store
- type Cache
- func (c *Cache) Advance(ctx context.Context, id *blobpb.BlobId, to blob.State, ...) (bool, error)
- func (c *Cache) CreatePending(ctx context.Context, b *blob.Blob) error
- func (c *Cache) GetByID(ctx context.Context, id *blobpb.BlobId) (*blob.Blob, error)
- func (c *Cache) GetByIDs(ctx context.Context, ids []*blobpb.BlobId) ([]*blob.Blob, error)
- func (c *Cache) GetRenditions(ctx context.Context, parentID *blobpb.BlobId) ([]*blob.Blob, error)
- func (c *Cache) Reject(ctx context.Context, id *blobpb.BlobId, rejection *blob.RejectionMetadata) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache wraps a blob.Store, caching only blobs that have reached a terminal state (Ready or Rejected).
func (*Cache) CreatePending ¶
func (*Cache) GetRenditions ¶
Click to show internal directories.
Click to hide internal directories.