request

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CREATE_CMD         = "create"
	TRANSFER_CMD       = "transfer"
	POST_CMD           = "post"
	FOLLOW_CMD         = "follow"
	VOTE_CMD           = "vote"
	REPLY_CMD          = "reply"
	CONTRACT           = "contract"
	ACQUIRE_TICKET_CMD = "ticket acquire"
	VOTE_BY_TICKET_CMD = "ticket vote"

	INIT_ACCOUNT_LENGTH = 8
	INIT_POSTID_LENGTH  = 8
	MAX_ACCOUNT_NUM     = 10000000
	MAX_POSTID_NUM      = 10000000 // 10 million
)

Variables

View Source
var BPList []*accountInfo
View Source
var GlobalAccountLIst accountList
View Source
var IPList []string
View Source
var Mu = &sync.RWMutex{}
View Source
var StopSig = false
View Source
var Wg = &sync.WaitGroup{}

Functions

func EnableBP

func EnableBP(rpcClient grpcpb.ApiServiceClient, index int) error

func InitEnv

func InitEnv(baseName string, accountName string, publicKey string, privKey string)

func InitLastConductBPIndex

func InitLastConductBPIndex(rpcClient grpcpb.ApiServiceClient) error

func RandomDisableBP

func RandomDisableBP(rpcClient grpcpb.ApiServiceClient) error

func StartBPRoutine

func StartBPRoutine(filePath string)

func StartEachRoutine

func StartEachRoutine(index int)

Types

type IdList

type IdList struct {
	sync.RWMutex
	// contains filtered or unexported fields
}
var PostIdList IdList

Jump to

Keyboard shortcuts

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