repositories

package
v0.0.0-...-cfea203 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudRepository

type CloudRepository struct {
	// contains filtered or unexported fields
}

func NewCloudRepository

func NewCloudRepository(db *mongo.Database) CloudRepository

func (*CloudRepository) All

func (*CloudRepository) Create

func (x *CloudRepository) Create(ctx context.Context, payload *entities.Cloud) error

func (*CloudRepository) Delete

func (x *CloudRepository) Delete(ctx context.Context, id string) error

func (*CloudRepository) Find

func (x *CloudRepository) Find(ctx context.Context, id string) (*entities.Cloud, error)

func (*CloudRepository) FindByUrl

func (x *CloudRepository) FindByUrl(ctx context.Context, url string) (*entities.Cloud, error)

func (*CloudRepository) Update

func (x *CloudRepository) Update(ctx context.Context, payload *entities.Cloud) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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