Documentation ¶
Index ¶
- type KnowledgeBaseRepository
- func (r *KnowledgeBaseRepository) Create(ctx context.Context, knowledgeBase *entities.KnowledgeBase) error
- func (r *KnowledgeBaseRepository) DeleteById(ctx context.Context, id uuid.UUID) error
- func (r *KnowledgeBaseRepository) GetById(ctx context.Context, id uuid.UUID) (*entities.KnowledgeBase, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KnowledgeBaseRepository ¶
type KnowledgeBaseRepository struct {
// contains filtered or unexported fields
}
func NewKnowledgeBaseRepository ¶
func NewKnowledgeBaseRepository(dbName string, collectionName string, db *mongo.Client) *KnowledgeBaseRepository
func (*KnowledgeBaseRepository) Create ¶
func (r *KnowledgeBaseRepository) Create(ctx context.Context, knowledgeBase *entities.KnowledgeBase) error
func (*KnowledgeBaseRepository) DeleteById ¶
func (*KnowledgeBaseRepository) GetById ¶
func (r *KnowledgeBaseRepository) GetById(ctx context.Context, id uuid.UUID) (*entities.KnowledgeBase, error)
Click to show internal directories.
Click to hide internal directories.