Documentation
¶
Index ¶
Constants ¶
View Source
const TablePrefix = "tenant_id_"
TablePrefix is needed for table name cause of postgres name convention -> no integers allowed
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
DbConnection
}
type DbConnection ¶
type DbConnection interface {
AllocateIndexInCurrentList(ctx context.Context, tenantId string) (*entity.StatusData, error)
RevokeCredentialInSpecifiedList(ctx context.Context, tenantId string, listId int, index int) error
CreateTableForTenantIdIfNotExists(ctx context.Context, tenantId string) error
GetStatusList(ctx context.Context, tenantId string, listId int) ([]byte, error)
CacheList(ctx context.Context, cacheId string, list []byte) error
Ping() bool
Close()
}
Click to show internal directories.
Click to hide internal directories.