Documentation ¶
Index ¶
- type MongoRepository
- func (r *MongoRepository) BuildIndexes(ctx context.Context) error
- func (m *MongoRepository) Create(ctx context.Context, database *database.Database) (*database.Database, error)
- func (m *MongoRepository) Delete(ctx context.Context, databaseID uuid.UUID) error
- func (m *MongoRepository) Get(ctx context.Context, databaseID uuid.UUID) (*database.Database, error)
- func (m *MongoRepository) GetByName(ctx context.Context, name string) (*database.Database, error)
- func (m *MongoRepository) List(ctx context.Context, pagination *model.Pagination) (iterator.Iterator[*database.Database], uint64, error)
- func (m *MongoRepository) Update(ctx context.Context, database *database.Database) (*database.Database, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoRepository ¶
type MongoRepository struct {
DatabaseCollection *mongo.Collection
}
func NewRepository ¶
func NewRepository(c *mongo.Client) (*MongoRepository, error)
func (*MongoRepository) BuildIndexes ¶
func (r *MongoRepository) BuildIndexes(ctx context.Context) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.