Documentation
¶
Index ¶
- type Service
- func (t *Service) CreateTx(ctx context.Context, req storage.CreateTxDto) (storage.Tx, error)
- func (t *Service) GetByPolicyID(c context.Context, policyID uuid.UUID, skip, take uint32) ([]storage.Tx, uint32, error)
- func (t *Service) GetTxByID(ctx context.Context, txID uuid.UUID) (storage.Tx, error)
- func (t *Service) GetTxsInTimeRange(ctx context.Context, policyID uuid.UUID, from, to time.Time) ([]storage.Tx, error)
- func (t *Service) SetOnChainStatus(ctx context.Context, txID uuid.UUID, status rpc.TxOnChainStatus) error
- func (t *Service) SetSignedAndBroadcasted(ctx context.Context, chainID common.Chain, txID uuid.UUID, ...) error
- func (t *Service) SetStatus(ctx context.Context, txID uuid.UUID, status storage.TxStatus) error
- type SupportedChains
- type SupportedRpcs
- type Worker
- func (w *Worker) Clients() SupportedRpcs
- func (w *Worker) Concurrency() int
- func (w *Worker) Interval() time.Duration
- func (w *Worker) IterationTimeout() time.Duration
- func (w *Worker) MarkLostAfter() time.Duration
- func (w *Worker) Metrics() metrics.TxIndexerMetrics
- func (w *Worker) Run() error
- func (w *Worker) TxIndexerRepo() storage.TxIndexerRepo
- func (w *Worker) UpdateTxStatus(ctx context.Context, tx storage.Tx) (*rpc.TxOnChainStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( logger *logrus.Logger, repo storage.TxIndexerRepo, chains SupportedChains, ) *Service
func (*Service) GetByPolicyID ¶
func (*Service) GetTxsInTimeRange ¶
func (*Service) SetOnChainStatus ¶
func (*Service) SetSignedAndBroadcasted ¶
type SupportedChains ¶
func Chains ¶
func Chains() (SupportedChains, error)
type SupportedRpcs ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func NewWorker ¶
func NewWorker( logger *logrus.Logger, interval time.Duration, iterationTimeout time.Duration, markLostAfter time.Duration, concurrency int, repo storage.TxIndexerRepo, clients SupportedRpcs, txMetrics metrics.TxIndexerMetrics, ) *Worker
func (*Worker) Clients ¶
func (w *Worker) Clients() SupportedRpcs
func (*Worker) Concurrency ¶
func (*Worker) IterationTimeout ¶
func (*Worker) MarkLostAfter ¶
func (*Worker) Metrics ¶
func (w *Worker) Metrics() metrics.TxIndexerMetrics
func (*Worker) TxIndexerRepo ¶
func (w *Worker) TxIndexerRepo() storage.TxIndexerRepo
func (*Worker) UpdateTxStatus ¶
Click to show internal directories.
Click to hide internal directories.