store

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConversationStoreHandlers

func InitConversationStoreHandlers(api huma.API, conversationStoreAPI *ConversationCollection)

func NewFTSListner

func NewFTSListner(e *ftsengine.Engine) mapstore.FileListener

Types

type ConversationCollection

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

func NewConversationCollection

func NewConversationCollection(baseDir string, opts ...Option) (*ConversationCollection, error)

NewConversationCollection creates a collection with sensible defaults (UUID-v7 file names under yyyyMM partitions). Callers may override either strategy via the Option functions above.

baseDir is the root directory for the map-directory store.

func (*ConversationCollection) Close added in v0.0.79

func (cc *ConversationCollection) Close() (err error)

Close releases resources.

func (*ConversationCollection) DeleteConversation

func (*ConversationCollection) GetConversation

func (*ConversationCollection) ListConversations

func (*ConversationCollection) PutConversation

func (*ConversationCollection) PutMessagesToConversation

func (*ConversationCollection) SearchConversations

type Option

type Option func(*ConversationCollection) error

func WithFTS

func WithFTS(enabled bool) Option

func WithPartitionProvider

func WithPartitionProvider(pp mapstore.PartitionProvider) Option

Jump to

Keyboard shortcuts

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