Documentation ¶
Index ¶
- Constants
- func MustParseAddress(addr string) address.Address
- func NewDB(cfg *config.DBConfig) (*gorm.DB, error)
- func NewKeyStore(db *gorm.DB) storage.KeyStore
- func NewSqliteRecorder(db *gorm.DB, cfg *config.SignRecorderConfig) (storage.IRecorder, error)
- type Key
- type RecorderStub
- type SqlKeyInfo
- type SqliteRecorder
- type TableName
- type Wallet
Constants ¶
View Source
const MTUndefined types.MsgType = ""
Variables ¶
This section is empty.
Functions ¶
func MustParseAddress ¶ added in v1.11.0
func MustParseAddress(addr string) address.Address
func NewSqliteRecorder ¶ added in v1.11.0
Types ¶
type RecorderStub ¶ added in v1.13.0
type RecorderStub struct { }
func (*RecorderStub) QueryRecord ¶ added in v1.13.0
func (r *RecorderStub) QueryRecord(params *storage.QueryParams) ([]storage.SignRecord, error)
func (*RecorderStub) Record ¶ added in v1.13.0
func (r *RecorderStub) Record(record *storage.SignRecord) error
type SqlKeyInfo ¶
func (*SqlKeyInfo) IsValid ¶
func (mki *SqlKeyInfo) IsValid() bool
func (*SqlKeyInfo) Scan ¶
func (mki *SqlKeyInfo) Scan(value interface{}) error
Scan scan value into Jsonb, implements sql.Scanner interface
type SqliteRecorder ¶ added in v1.11.0
type SqliteRecorder struct {
// contains filtered or unexported fields
}
func (*SqliteRecorder) QueryRecord ¶ added in v1.11.0
func (s *SqliteRecorder) QueryRecord(params *storage.QueryParams) ([]storage.SignRecord, error)
func (*SqliteRecorder) Record ¶ added in v1.11.0
func (s *SqliteRecorder) Record(record *storage.SignRecord) error
Click to show internal directories.
Click to hide internal directories.