Documentation
¶
Index ¶
- type Usecase
- func (u *Usecase) Count(ctx context.Context, qops ...devicemodel.Option) (int64, error)
- func (u *Usecase) Create(ctx context.Context, object *models.DeviceModel) (uint64, error)
- func (u *Usecase) Delete(ctx context.Context, id uint64, msg *string) error
- func (u *Usecase) FetchList(ctx context.Context, qops ...devicemodel.Option) ([]*models.DeviceModel, error)
- func (u *Usecase) Get(ctx context.Context, id uint64) (*models.DeviceModel, error)
- func (u *Usecase) GetByCodename(ctx context.Context, codename string) (*models.DeviceModel, error)
- func (u *Usecase) Update(ctx context.Context, id uint64, object *models.DeviceModel) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Usecase ¶
type Usecase struct {
// contains filtered or unexported fields
}
func (*Usecase) FetchList ¶
func (u *Usecase) FetchList(ctx context.Context, qops ...devicemodel.Option) ([]*models.DeviceModel, error)
func (*Usecase) GetByCodename ¶
Click to show internal directories.
Click to hide internal directories.