Documentation ¶
Index ¶
- func DeleteDB()
- func NewSQLiteDeviceRepository() contract.DeviceRepository
- func NewSystemUserRepository(userDAO contract.UserDAO) contract.UserRepository
- type SQLiteDeviceRepository
- func (r *SQLiteDeviceRepository) CountAll(ctx context.Context) (int, error)
- func (r *SQLiteDeviceRepository) CountByUsername(ctx context.Context, username string) (int, error)
- func (r *SQLiteDeviceRepository) DeleteByUsername(ctx context.Context, username string) error
- func (r *SQLiteDeviceRepository) Exists(ctx context.Context, device *entity.Device) bool
- func (r *SQLiteDeviceRepository) ListAll(ctx context.Context) ([]*entity.Device, error)
- func (r *SQLiteDeviceRepository) ListByUsername(ctx context.Context, username string) ([]*entity.Device, error)
- func (r *SQLiteDeviceRepository) Save(ctx context.Context, device *entity.Device) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSQLiteDeviceRepository ¶
func NewSQLiteDeviceRepository() contract.DeviceRepository
func NewSystemUserRepository ¶
func NewSystemUserRepository(userDAO contract.UserDAO) contract.UserRepository
Types ¶
type SQLiteDeviceRepository ¶
type SQLiteDeviceRepository struct {
// contains filtered or unexported fields
}
func (*SQLiteDeviceRepository) CountAll ¶ added in v0.1.9
func (r *SQLiteDeviceRepository) CountAll(ctx context.Context) (int, error)
func (*SQLiteDeviceRepository) CountByUsername ¶
func (*SQLiteDeviceRepository) DeleteByUsername ¶
func (r *SQLiteDeviceRepository) DeleteByUsername(ctx context.Context, username string) error
func (*SQLiteDeviceRepository) ListByUsername ¶
Click to show internal directories.
Click to hide internal directories.