sender

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FailResponse

type FailResponse struct {
	Task
	TxResponse sdk.TxResponse
	// contains filtered or unexported fields
}

func (FailResponse) Error

func (r FailResponse) Error() string

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

func NewSender

func NewSender(
	client client.Client,
	logger logging.Logger,
	kr keyring.Keyring,
	gasPrice float64,
	timeout time.Duration,
	pollingDelay time.Duration,
	requestQueueCh chan Task,
	successChBufferSize int,
	failureChBufferSize int,
) (*Sender, error)

func (*Sender) FailedRequestsCh

func (s *Sender) FailedRequestsCh() <-chan FailResponse

func (*Sender) Start

func (s *Sender) Start()

func (*Sender) SuccessRequestsCh

func (s *Sender) SuccessRequestsCh() <-chan SuccessResponse

type SuccessResponse

type SuccessResponse struct {
	Task
	TxResponse sdk.TxResponse
}

type Task

type Task struct {
	Msg oracletypes.MsgRequestData
	// contains filtered or unexported fields
}

func NewTask

func NewTask(id uint64, msg oracletypes.MsgRequestData) Task

func (Task) ID

func (t Task) ID() uint64

Directories

Path Synopsis
handlers
gas

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL