bitxhub

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTo = "000000000000000000000000000000000000000a"
)

Variables

View Source
var ValidationContractAddr = types.String2Address("000000000000000000000000000000000000000c")

Functions

func DeployRules

func DeployRules(path, key, addr string) error

func NewBee

func NewBee(tps int, keyPath string, addrs []string) (*bee, error)

func NewBxhClient

func NewBxhClient(addr, path string, logger *logrus.Entry) (*rpcx.ChainClient, error)

Types

type Broker

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

func New

func New(config *Config) (*Broker, error)

func (*Broker) Start

func (broker *Broker) Start(typ string) error

func (*Broker) Stop

func (broker *Broker) Stop(current time.Time) error

type Config

type Config struct {
	Concurrent  int
	TPS         int
	Duration    int // s uint
	Type        string
	Validator   string
	Rule        []byte
	KeyPath     string
	BitxhubAddr []string
}

Jump to

Keyboard shortcuts

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