Documentation
¶
Index ¶
- type StaticUsecase
- func (u *StaticUsecase) Count(ctx context.Context) (int64, error)
- func (u *StaticUsecase) FetchList(ctx context.Context) ([]*models.DeviceType, error)
- func (u *StaticUsecase) FetchListByIDs(ctx context.Context, ids []uint64) ([]*models.DeviceType, error)
- func (u *StaticUsecase) Get(ctx context.Context, id uint64) (*models.DeviceType, error)
- func (u *StaticUsecase) GetByCodename(ctx context.Context, codename string) (*models.DeviceType, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticUsecase ¶
type StaticUsecase struct {
// contains filtered or unexported fields
}
func NewStaticUsecase ¶
func NewStaticUsecase() *StaticUsecase
func (*StaticUsecase) FetchList ¶
func (u *StaticUsecase) FetchList(ctx context.Context) ([]*models.DeviceType, error)
func (*StaticUsecase) FetchListByIDs ¶
func (u *StaticUsecase) FetchListByIDs(ctx context.Context, ids []uint64) ([]*models.DeviceType, error)
func (*StaticUsecase) Get ¶
func (u *StaticUsecase) Get(ctx context.Context, id uint64) (*models.DeviceType, error)
func (*StaticUsecase) GetByCodename ¶
func (u *StaticUsecase) GetByCodename(ctx context.Context, codename string) (*models.DeviceType, error)
Click to show internal directories.
Click to hide internal directories.