Documentation
¶
Index ¶
- func NewDB(driverName string, dataSourceName string, logger log.Logger) (store.DB, error)
- type DB
- 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 dms.DMS) (string, error)
- func (db *DB) InsertAuthorizedCAs(ctx context.Context, dmsid string, CAs []string) error
- func (db *DB) SelectAll(ctx context.Context) ([]dms.DMS, 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) (dms.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, ...) (dms.DMS, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
func (*DB) DeleteAuthorizedCAs ¶ added in v0.0.22
func (*DB) InsertAuthorizedCAs ¶ added in v0.0.22
func (*DB) SelectAllAuthorizedCAs ¶ added in v0.0.22
func (*DB) SelectByDMSIDAuthorizedCAs ¶ added in v0.0.22
func (*DB) SelectBySerialNumber ¶
Click to show internal directories.
Click to hide internal directories.