Documentation ¶
Index ¶
- func NewDB(db *sql.DB, logger log.Logger) store.DB
- type DB
- func (db *DB) CountEnrolledDevices(ctx context.Context, dms_id string) (int, error)
- func (db *DB) Delete(ctx context.Context, id string) error
- func (db *DB) DeleteAuthorizedCAs(ctx context.Context, dmsid string) error
- func (db *DB) Insert(ctx context.Context, d dto.DMS) (string, error)
- func (db *DB) InsertAuthorizedCAs(ctx context.Context, dmsid string, CAs []string) error
- func (db *DB) SelectAll(ctx context.Context, queryParameters filters.QueryParameters) ([]dto.DMS, int, error)
- func (db *DB) SelectAllAuthorizedCAs(ctx context.Context) ([]dms.AuthorizedCAs, error)
- func (db *DB) SelectByDMSIDAuthorizedCAs(ctx context.Context, dmsid string) ([]dms.AuthorizedCAs, error)
- func (db *DB) SelectByID(ctx context.Context, id string) (dto.DMS, error)
- func (db *DB) SelectBySerialNumber(ctx context.Context, SerialNumber string) (string, error)
- func (db *DB) UpdateByID(ctx context.Context, id string, status string, serialNumber string, ...) (dto.DMS, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
func (*DB) CountEnrolledDevices ¶
func (*DB) DeleteAuthorizedCAs ¶
func (*DB) InsertAuthorizedCAs ¶
func (*DB) SelectAllAuthorizedCAs ¶
func (*DB) SelectByDMSIDAuthorizedCAs ¶
func (*DB) SelectBySerialNumber ¶
Click to show internal directories.
Click to hide internal directories.