Documentation ¶
Index ¶
- func CreateChainHeight(ctx context.Context, r *CreateChainHeightReq) (*models.ChainHeight, error)
- func CreateChainTx(ctx context.Context, r *CreateChainTxReq) (*models.ChainTx, error)
- func CreateContractLog(ctx context.Context, r *CreateContractLogReq) (*models.ContractLog, error)
- func GetChainHeightBySFID(ctx context.Context, id types.SFID) (*models.ChainHeight, error)
- func GetChainTxBySFID(ctx context.Context, id types.SFID) (*models.ChainTx, error)
- func GetContractLogBySFID(ctx context.Context, id types.SFID) (*models.ContractLog, error)
- func InitChainDB(ctx context.Context) error
- func Monitor(ctx context.Context)
- func RemoveChainHeightBySFID(ctx context.Context, id types.SFID) error
- func RemoveChainTxBySFID(ctx context.Context, id types.SFID) error
- func RemoveContractLogBySFID(ctx context.Context, id types.SFID) error
- func RemoveMonitor(ctx context.Context, projectName string) error
- type CreateChainHeightReq
- type CreateChainTxReq
- type CreateContractLogReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChainHeight ¶
func CreateChainHeight(ctx context.Context, r *CreateChainHeightReq) (*models.ChainHeight, error)
func CreateChainTx ¶
func CreateContractLog ¶
func CreateContractLog(ctx context.Context, r *CreateContractLogReq) (*models.ContractLog, error)
func GetChainHeightBySFID ¶ added in v1.1.0
func GetChainTxBySFID ¶ added in v1.1.0
func GetContractLogBySFID ¶ added in v1.1.0
func InitChainDB ¶
func RemoveChainHeightBySFID ¶ added in v1.1.0
func RemoveChainTxBySFID ¶ added in v1.1.0
func RemoveContractLogBySFID ¶ added in v1.1.0
Types ¶
type CreateChainHeightReq ¶
type CreateChainHeightReq struct { ProjectName string `json:"-"` models.ChainHeightInfo }
type CreateChainTxReq ¶
type CreateChainTxReq struct { ProjectName string `json:"-"` models.ChainTxInfo }
type CreateContractLogReq ¶
type CreateContractLogReq struct { ProjectName string `json:"-"` models.ContractLogInfo }
Click to show internal directories.
Click to hide internal directories.