Documentation
¶
Index ¶
- type MongoRepository
- func (r *MongoRepository) BuildIndexes(ctx context.Context) error
- func (r *MongoRepository) Create(ctx context.Context, secretID uuid.UUID, secret []byte) error
- func (t *MongoRepository) Delete(ctx context.Context, secretID uuid.UUID) error
- func (r *MongoRepository) Get(ctx context.Context, secretID uuid.UUID) ([]byte, error)
- func (r *MongoRepository) Update(ctx context.Context, secretID uuid.UUID, secret []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoRepository ¶
type MongoRepository struct { Collection *mongo.Collection // contains filtered or unexported fields }
func NewRepository ¶
func NewRepository(c *mongo.Client, key string) (*MongoRepository, error)
func (*MongoRepository) BuildIndexes ¶
func (r *MongoRepository) BuildIndexes(ctx context.Context) error
BuildIndexes builds the indexes for the Mongo Object.
Click to show internal directories.
Click to hide internal directories.