Documentation
¶
Overview ¶
Package streamstore persists bounded, short-lived provider byte streams in private files without loading them into memory or SQLite.
Index ¶
- type Reference
- type Store
- func (s *Store) Consume(owner, id string) (*os.File, Reference, error)
- func (s *Store) Delete(reference Reference) error
- func (s *Store) OpenOwned(owner, id string) (*os.File, Reference, error)
- func (s *Store) OpenStream(reference Reference) (*os.File, error)
- func (s *Store) Put(owner, purpose, requestKey, mediaType string, source io.Reader, limit int64, ...) (Reference, error)
- func (s *Store) Retire(reference Reference, retainUntil time.Time) error
- func (s *Store) SweepExpired(now time.Time) (int, error)
- func (s *Store) Validate(reference Reference) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) OpenOwned ¶
OpenOwned opens a verified stream for its owner without consuming it. The caller deletes the stream only after the complete response is delivered.
Click to show internal directories.
Click to hide internal directories.