Documentation
¶
Index ¶
- func IsActive(ctx context.Context, db *gorm.DB) (bool, error)
- type DIDTableEntry
- type Database
- func (d *Database) AppendEntries(ctx context.Context, entries []plc.OperationLogEntry) error
- func (d *Database) AutoMigrate() error
- func (d *Database) HeadTimestamp(ctx context.Context) (string, error)
- func (d *Database) LastOperationForDID(ctx context.Context, did string) (*plc.OperationLogEntry, error)
- type EntryLog
- type HeadTimestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DIDTableEntry ¶
type DIDTableEntry struct {
DID string `gorm:"column:did;primarykey"`
Log EntryLog `gorm:"type:JSONB[]"`
}
func (DIDTableEntry) TableName ¶
func (DIDTableEntry) TableName() string
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) AppendEntries ¶
func (*Database) AutoMigrate ¶
func (*Database) HeadTimestamp ¶
func (*Database) LastOperationForDID ¶
type HeadTimestamp ¶
type HeadTimestamp struct {
Timestamp string
}
func (HeadTimestamp) TableName ¶
func (HeadTimestamp) TableName() string
Click to show internal directories.
Click to hide internal directories.