Documentation
¶
Index ¶
- func AssetID(sessionID corepkg.SessionID, imageID int) llm.AssetID
- type FileAssetStore
- func (s *FileAssetStore) DeleteSessionImages(ctx context.Context, sessionID corepkg.SessionID) error
- func (s *FileAssetStore) GC(ctx context.Context, keepSessionIDs []corepkg.SessionID, olderThan time.Time) error
- func (s *FileAssetStore) GetImageByAssetID(ctx context.Context, sessionID corepkg.SessionID, assetID llm.AssetID) (ImageBlob, error)
- func (s *FileAssetStore) PutImage(ctx context.Context, in PutImageInput) (ImageMeta, error)
- type ImageBlob
- type ImageMeta
- type ImageStore
- type PutImageInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileAssetStore ¶
type FileAssetStore struct {
// contains filtered or unexported fields
}
func NewFileAssetStore ¶
func NewFileAssetStore(configDir string) (*FileAssetStore, error)
func (*FileAssetStore) DeleteSessionImages ¶
func (*FileAssetStore) GetImageByAssetID ¶
func (*FileAssetStore) PutImage ¶
func (s *FileAssetStore) PutImage(ctx context.Context, in PutImageInput) (ImageMeta, error)
type ImageStore ¶
type ImageStore interface {
PutImage(ctx context.Context, in PutImageInput) (ImageMeta, error)
GetImageByAssetID(ctx context.Context, sessionID corepkg.SessionID, assetID llm.AssetID) (ImageBlob, error)
DeleteSessionImages(ctx context.Context, sessionID corepkg.SessionID) error
GC(ctx context.Context, keepSessionIDs []corepkg.SessionID, olderThan time.Time) error
}
Click to show internal directories.
Click to hide internal directories.