Documentation
¶
Index ¶
- type Storage
- func (s *Storage) Close() error
- func (s *Storage) Create(ctx context.Context, req knowledgebase.CreateRequest) (*knowledgebase.KnowledgeBase, error)
- func (s *Storage) Delete(ctx context.Context, id int64) error
- func (s *Storage) Get(ctx context.Context, id int64) (*knowledgebase.KnowledgeBase, error)
- func (s *Storage) List(ctx context.Context, req knowledgebase.ListRequest) (*knowledgebase.ListResponse, error)
- func (s *Storage) Update(ctx context.Context, id int64, req knowledgebase.UpdateRequest) (*knowledgebase.KnowledgeBase, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage implements the knowledgebase.Storage interface using SQLite
func NewStorage ¶
NewStorage creates a new SQLite storage instance
func (*Storage) Create ¶
func (s *Storage) Create(ctx context.Context, req knowledgebase.CreateRequest) (*knowledgebase.KnowledgeBase, error)
Create creates a new knowledge base
func (*Storage) Get ¶
func (s *Storage) Get(ctx context.Context, id int64) (*knowledgebase.KnowledgeBase, error)
Get retrieves a knowledge base by ID
func (*Storage) List ¶
func (s *Storage) List(ctx context.Context, req knowledgebase.ListRequest) (*knowledgebase.ListResponse, error)
List lists knowledge bases with pagination and filtering
func (*Storage) Update ¶
func (s *Storage) Update(ctx context.Context, id int64, req knowledgebase.UpdateRequest) (*knowledgebase.KnowledgeBase, error)
Update updates an existing knowledge base
Click to show internal directories.
Click to hide internal directories.