repository

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDB

func DeleteDB()

func NewSQLiteDeviceRepository

func NewSQLiteDeviceRepository() contract.DeviceRepository

func NewSystemUserRepository

func NewSystemUserRepository(userDAO contract.UserDAO, userCacheService contract.UserCacheService) contract.UserRepository

Types

type SQLiteDeviceRepository

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

func (*SQLiteDeviceRepository) CountAll

func (r *SQLiteDeviceRepository) CountAll(ctx context.Context) (int, error)

func (*SQLiteDeviceRepository) CountByUsername

func (r *SQLiteDeviceRepository) CountByUsername(ctx context.Context, username string) (int, error)

func (*SQLiteDeviceRepository) DeleteByUsername

func (r *SQLiteDeviceRepository) DeleteByUsername(ctx context.Context, username string) error

func (*SQLiteDeviceRepository) Exists

func (r *SQLiteDeviceRepository) Exists(ctx context.Context, device *entity.Device) bool

func (*SQLiteDeviceRepository) ListAll

func (r *SQLiteDeviceRepository) ListAll(ctx context.Context) ([]*entity.Device, error)

func (*SQLiteDeviceRepository) ListByUsername

func (r *SQLiteDeviceRepository) ListByUsername(ctx context.Context, username string) ([]*entity.Device, error)

func (*SQLiteDeviceRepository) Save

func (r *SQLiteDeviceRepository) Save(ctx context.Context, device *entity.Device) error

Jump to

Keyboard shortcuts

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