Versions in this module Expand all Collapse all v0 v0.2.7 Dec 10, 2021 v0.2.6 Dec 10, 2021 Changes in this version type DB + CountBy func(query interface{}, option *Option) int v0.2.5 Dec 9, 2021 Changes in this version + type Block struct + BlockNum int + BlockTimestamp int + Finalized bool + Hash string + SpecVersion int + Validator string + type DB interface + AddIndex func(model interface{}, indexName string, columns ...string) error + AddUniqueIndex func(model interface{}, indexName string, columns ...string) error + AutoMigration func(model interface{}) error + Create func(record interface{}) error + Delete func(model interface{}, query interface{}) error + FindBy func(record interface{}, query interface{}, option *Option) (int, bool) + Update func(model interface{}, query interface{}, attr map[string]interface{}) error + type Dao interface + RPCPool func() *websocket.PoolConn + SetPrefix func(string) + SpecialMetadata func(int) string + type Event struct + BlockNum int + EventId string + EventIdx int + ExtrinsicHash string + ExtrinsicIdx int + ModuleId string + Params []byte + type EventParam struct + Type string + Value interface{} + type Extrinsic struct + AccountId string + CallCode string + CallModule string + CallModuleFunction string + Era string + ExtrinsicHash string + ExtrinsicIndex string + Fee decimal.Decimal + Nonce int + Params []byte + Signature string + Success bool + type ExtrinsicParam struct + Name string + Type string + Value interface{} + type Option struct + Order string + Page int + PageSize int + PluginPrefix string