Documentation ¶
Index ¶
- Constants
- Variables
- func AddRequestType(tgt *vegeta.Target, typ string)
- func GetRequestType(res vegeta.Result) string
- type Config
- type Loader
- type SafeBuffer
- type Scenario
- type SimpleScenario
- type TargetGenerator
- func (t *TargetGenerator) GenerateBranchTarget(repo, name string) vegeta.Target
- func (t *TargetGenerator) GenerateCommitTarget(repo, branch, msg string) vegeta.Target
- func (t *TargetGenerator) GenerateCreateFileTargets(repo, branch string, num int) []vegeta.Target
- func (t *TargetGenerator) GenerateDiffTarget(repo, branch string) vegeta.Target
- func (t *TargetGenerator) GenerateListTarget(repo, branch string, amount int) vegeta.Target
- func (t *TargetGenerator) GenerateMergeToMasterTarget(repo, branch string) vegeta.Target
Constants ¶
View Source
const FileCountInCommit = 20
Variables ¶
Functions ¶
func AddRequestType ¶
func GetRequestType ¶
Types ¶
type Loader ¶
type SafeBuffer ¶
type SimpleScenario ¶
type SimpleScenario struct {
FileCountInCommit int
}
type TargetGenerator ¶
type TargetGenerator struct {
ServerAddress string
}
func (*TargetGenerator) GenerateBranchTarget ¶
func (t *TargetGenerator) GenerateBranchTarget(repo, name string) vegeta.Target
func (*TargetGenerator) GenerateCommitTarget ¶
func (t *TargetGenerator) GenerateCommitTarget(repo, branch, msg string) vegeta.Target
func (*TargetGenerator) GenerateCreateFileTargets ¶
func (t *TargetGenerator) GenerateCreateFileTargets(repo, branch string, num int) []vegeta.Target
func (*TargetGenerator) GenerateDiffTarget ¶
func (t *TargetGenerator) GenerateDiffTarget(repo, branch string) vegeta.Target
func (*TargetGenerator) GenerateListTarget ¶
func (t *TargetGenerator) GenerateListTarget(repo, branch string, amount int) vegeta.Target
func (*TargetGenerator) GenerateMergeToMasterTarget ¶
func (t *TargetGenerator) GenerateMergeToMasterTarget(repo, branch string) vegeta.Target
Click to show internal directories.
Click to hide internal directories.