Documentation ¶
Index ¶
- type DaService
- func (s *DaService) GetBatchTransactionByDataStoreId(c gecho.Context) error
- func (s *DaService) GetDataStoreList(c gecho.Context) error
- func (s *DaService) GetDtlBatchTransactionByDataStoreId(c gecho.Context) error
- func (s *DaService) GetLatestTransactionBatchIndex(c gecho.Context) error
- func (s *DaService) GetRollupStoreByRollupBatchIndex(c gecho.Context) error
- func (s *DaService) GetTransactionListByStoreNumber(c gecho.Context) error
- func (s *DaService) Start() error
- func (s *DaService) Stop()
- type DaServiceConfig
- type DataStoreIdRequest
- type DataStoreRequest
- type RollupStoreRequest
- type TransactionInfoListResponse
- type TransactionListResponse
- type TransactionRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DaService ¶
type DaService struct { Ctx context.Context Cfg *DaServiceConfig GraphClient *graphView.GraphClient GraphqlClient *graphql.Client // contains filtered or unexported fields }
func NewDaService ¶
func NewDaService(ctx context.Context, cfg *DaServiceConfig) (*DaService, error)
func (*DaService) GetBatchTransactionByDataStoreId ¶
func (*DaService) GetDtlBatchTransactionByDataStoreId ¶
func (*DaService) GetLatestTransactionBatchIndex ¶
func (*DaService) GetRollupStoreByRollupBatchIndex ¶
func (*DaService) GetTransactionListByStoreNumber ¶
type DaServiceConfig ¶
type DataStoreIdRequest ¶
type DataStoreIdRequest struct {
StoreId string `json:"store_id"`
}
type DataStoreRequest ¶
type RollupStoreRequest ¶
type RollupStoreRequest struct {
BatchIndex int64 `json:"batch_index"`
}
type TransactionInfoListResponse ¶
type TransactionInfoListResponse struct { BlockNumber string `json:"BlockNumber"` TxHash string `json:"TxHash"` TxMeta types.TransactionMeta `json:"TxMeta"` TxData types.Transaction `json:"TxDetail"` }
type TransactionListResponse ¶
type TransactionRequest ¶
type TransactionRequest struct {
StoreNumber uint32 `json:"store_number"`
}
Click to show internal directories.
Click to hide internal directories.