mongo

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoRepository

type MongoRepository struct {
	ProviderCollection *mongo.Collection
}

func NewRepository

func NewRepository(c *mongo.Client) (*MongoRepository, error)

func (*MongoRepository) BuildIndexes

func (r *MongoRepository) BuildIndexes(ctx context.Context) error

func (*MongoRepository) Create

func (m *MongoRepository) Create(ctx context.Context, providerId, secretID uuid.UUID, provider *storage.Provider) (*storage.Provider, error)

func (*MongoRepository) Delete

func (m *MongoRepository) Delete(ctx context.Context, providerID uuid.UUID) error

func (*MongoRepository) Get

func (m *MongoRepository) Get(ctx context.Context, providerID uuid.UUID) (*storage.Provider, uuid.UUID, error)

func (*MongoRepository) List

func (*MongoRepository) Lookup

func (*MongoRepository) LookupByBucket

func (m *MongoRepository) LookupByBucket(ctx context.Context, bucket string) (uuid.UUID, *storage.Provider, uuid.UUID, error)

func (*MongoRepository) Update

func (m *MongoRepository) Update(ctx context.Context, providerID uuid.UUID, provider *storage.Provider) (*storage.Provider, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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