Documentation ¶
Index ¶
- Variables
- func FromAddress(addr *types.Address) *sqliteAddress
- func FromMessage(srcMsg *types.Message) *sqliteMessage
- func FromNode(node *types.Node) *sqliteNode
- func FromSharedParams(sp types.SharedParams) *sqliteSharedParams
- func OpenSqlite(cfg *config.SqliteConfig) (repo.Repo, error)
- type MsgMeta
- type SqlLiteRepo
- func (d SqlLiteRepo) AddressRepo() repo.AddressRepo
- func (d SqlLiteRepo) AutoMigrate() error
- func (d SqlLiteRepo) DbClose() error
- func (d SqlLiteRepo) GetDb() *gorm.DB
- func (d SqlLiteRepo) MessageRepo() repo.MessageRepo
- func (d SqlLiteRepo) NodeRepo() repo.NodeRepo
- func (d SqlLiteRepo) SharedParamsRepo() repo.SharedParamsRepo
- func (d SqlLiteRepo) Transaction(cb func(txRepo repo.TxRepo) error) error
- type TxSqlliteRepo
Constants ¶
This section is empty.
Variables ¶
View Source
var ERRUnspportedMappingType = fmt.Errorf("unsupported mapping type")
View Source
var TAddress = reflect.TypeOf(&types.Address{})
View Source
var TMessage = reflect.TypeOf(&types.Message{})
View Source
var TNode = reflect.TypeOf(&types.Node{})
View Source
var TSqliteAddress = reflect.TypeOf(&sqliteAddress{})
View Source
var TSqliteMessage = reflect.TypeOf(&sqliteMessage{})
View Source
var TSqliteNode = reflect.TypeOf(&sqliteNode{})
Functions ¶
func FromAddress ¶
func FromMessage ¶
func FromSharedParams ¶
func FromSharedParams(sp types.SharedParams) *sqliteSharedParams
func OpenSqlite ¶
func OpenSqlite(cfg *config.SqliteConfig) (repo.Repo, error)
Types ¶
type MsgMeta ¶
type MsgMeta struct { ExpireEpoch abi.ChainEpoch `gorm:"column:expire_epoch;type:bigint;"` GasOverEstimation float64 `gorm:"column:gas_over_estimation;type:decimal(10,2);"` MaxFee types.Int `gorm:"column:max_fee;type:varchar(256);"` MaxFeeCap types.Int `gorm:"column:max_fee_cap;type:varchar(256);"` }
type SqlLiteRepo ¶
func (SqlLiteRepo) AddressRepo ¶
func (d SqlLiteRepo) AddressRepo() repo.AddressRepo
func (SqlLiteRepo) AutoMigrate ¶
func (d SqlLiteRepo) AutoMigrate() error
func (SqlLiteRepo) DbClose ¶
func (d SqlLiteRepo) DbClose() error
func (SqlLiteRepo) GetDb ¶
func (d SqlLiteRepo) GetDb() *gorm.DB
func (SqlLiteRepo) MessageRepo ¶
func (d SqlLiteRepo) MessageRepo() repo.MessageRepo
func (SqlLiteRepo) NodeRepo ¶
func (d SqlLiteRepo) NodeRepo() repo.NodeRepo
func (SqlLiteRepo) SharedParamsRepo ¶
func (d SqlLiteRepo) SharedParamsRepo() repo.SharedParamsRepo
func (SqlLiteRepo) Transaction ¶
func (d SqlLiteRepo) Transaction(cb func(txRepo repo.TxRepo) error) error
type TxSqlliteRepo ¶
func (*TxSqlliteRepo) AddressRepo ¶
func (t *TxSqlliteRepo) AddressRepo() repo.AddressRepo
func (*TxSqlliteRepo) MessageRepo ¶
func (t *TxSqlliteRepo) MessageRepo() repo.MessageRepo
Click to show internal directories.
Click to hide internal directories.