Documentation
¶
Index ¶
- type Store
- func (s *Store) FileCommit(ctx context.Context, threadID api.ThreadID, origin api.Origin, name string) error
- func (s *Store) FileDelete(ctx context.Context, threadID api.ThreadID, origin api.Origin, name string) error
- func (s *Store) FileDeleteAll(ctx context.Context, threadID api.ThreadID) error
- func (s *Store) FileDiscardDrafts(ctx context.Context, threadID api.ThreadID, origin api.Origin, keep []string) error
- func (s *Store) FileList(ctx context.Context, threadID api.ThreadID, origin api.Origin) iter.Seq2[api.File, error]
- func (s *Store) FilePut(ctx context.Context, threadID api.ThreadID, origin api.Origin, name string, ...) (api.File, error)
- func (s *Store) FileRead(ctx context.Context, threadID api.ThreadID, origin api.Origin, name string, ...) (io.ReadCloser, error)
- func (s *Store) FileStat(ctx context.Context, threadID api.ThreadID, origin api.Origin, name string) (api.File, 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
}
Store keeps uploaded files in an S3-compatible bucket. Plug it in with neui.WithUploadStorage or neui.OptionUploadStorage. The service must support conditional writes (If-None-Match), as AWS S3 and MinIO do.
func (*Store) FileCommit ¶
func (*Store) FileDelete ¶
func (*Store) FileDeleteAll ¶
func (*Store) FileDiscardDrafts ¶
Click to show internal directories.
Click to hide internal directories.