Documentation ¶
Index ¶
- type CloudRepository
- func (x *CloudRepository) All(ctx context.Context, params *entities.CloudQueryParams) ([]*entities.Cloud, error)
- func (x *CloudRepository) Create(ctx context.Context, payload *entities.Cloud) error
- func (x *CloudRepository) Delete(ctx context.Context, id string) error
- func (x *CloudRepository) Find(ctx context.Context, id string) (*entities.Cloud, error)
- func (x *CloudRepository) FindByUrl(ctx context.Context, url string) (*entities.Cloud, error)
- func (x *CloudRepository) Update(ctx context.Context, payload *entities.Cloud) error
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 (x *CloudRepository) All(ctx context.Context, params *entities.CloudQueryParams) ([]*entities.Cloud, error)
func (*CloudRepository) Delete ¶
func (x *CloudRepository) Delete(ctx context.Context, id string) error
Click to show internal directories.
Click to hide internal directories.