transaction

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	TxId merkle.Digest `json:"txId"`
}

Arguments - arguments for status RPC request

type StatusReply

type StatusReply struct {
	Status string `json:"status"`
}

StatusReply - results from status RPC

type Transaction

type Transaction struct {
	Log     *logger.L
	Limiter *rate.Limiter
	Start   time.Time
	Rsvr    reservoir.Reservoir
}

Transaction - an RPC entry for transaction related functions

func New

func New(log *logger.L, start time.Time, rsvr reservoir.Reservoir) *Transaction

func (*Transaction) Status

func (t *Transaction) Status(arguments *Arguments, reply *StatusReply) error

Status - query transaction status

Jump to

Keyboard shortcuts

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