Documentation ¶
Index ¶
- type AccountStore
- func (a *AccountStore) New(ctx context.Context) (*accounts.Account, error)
- func (a *AccountStore) Next(ctx context.Context, node int) (acct *accounts.Account, nonce uint64, err error)
- func (a *AccountStore) NextRecv(send common.Address, n int) []common.Address
- func (a *AccountStore) NextSeed() (*accounts.Account, error)
- func (a *AccountStore) RandSeed() *common.Address
- func (a *AccountStore) Return(acct *accounts.Account, node int, nonce uint64)
- func (a *AccountStore) SignTx(acct accounts.Account, tx *types.Transaction) (*types.Transaction, error)
- type Chainload
- type Config
- type Node
- type Report
- type Reporter
- type Reports
- type SeedReq
- type Seeder
- type Sender
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountStore ¶
type AccountStore struct {
// contains filtered or unexported fields
}
func NewAccountStore ¶
func (*AccountStore) NextSeed ¶
func (a *AccountStore) NextSeed() (*accounts.Account, error)
NextSeed returns the next available account from the keystore.
func (*AccountStore) RandSeed ¶
func (a *AccountStore) RandSeed() *common.Address
func (*AccountStore) Return ¶
func (a *AccountStore) Return(acct *accounts.Account, node int, nonce uint64)
func (*AccountStore) SignTx ¶
func (a *AccountStore) SignTx(acct accounts.Account, tx *types.Transaction) (*types.Transaction, error)
type Config ¶
type Config struct { Id uint64 UrlsCSV string TPS int Senders int Cycle time.Duration Duration time.Duration Password string Gas uint64 Amount uint64 PprofAddr string Variable time.Duration }
func (*Config) MarshalLogObject ¶ added in v0.2.2
func (c *Config) MarshalLogObject(oe zapcore.ObjectEncoder) error
type Node ¶
type Node struct { Number int *goclient.Client *AccountStore SeedCh chan SeedReq // contains filtered or unexported fields }
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
Report holds statistics for a stretch of time.
func (*Report) MarshalLogObject ¶ added in v0.2.2
func (r *Report) MarshalLogObject(oe zapcore.ObjectEncoder) error
type Reporter ¶
type Reporter interface { // Report generates a report since the last (or start). Report() *Report }
Reporter tracks statistics and emits reports for an execution.
func NewReporter ¶
func NewReporter() Reporter
type Reports ¶
type Reports struct {
// contains filtered or unexported fields
}
Reports keeps a history of recent reports.
type Seeder ¶
type Seeder struct { *Node // contains filtered or unexported fields }
Seeder issues funds to sender accounts and collects funds from inactive accounts.
type Sender ¶
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (*Status) MarshalLogObject ¶ added in v0.2.2
func (s *Status) MarshalLogObject(oe zapcore.ObjectEncoder) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.