cmd

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Copyright © 2020 louisehong

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version    = "latest"
	Build      = ""
	BuildTime  = ""
	BuildBy    = "louisehong"
	VersionStr = fmt.Sprintf("stress version: %v, build git hash: %v ,\ngo version: %v ,Build Time : %v\nBuildBy: %v", Version, Build, runtime.Version(), BuildTime, BuildBy)
)

Functions

func Dispose

func Dispose(concurrency int, totalNumber uint64, request *pkg.Request)

Dispose is 处理函数

func DisposeMultiLine added in v1.1.1

func DisposeMultiLine(totalNumber uint64, requests []*pkg.Request)

DisposeMultiLine 处理行数多于100

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewCmdCompletion added in v1.1.2

func NewCmdCompletion(out io.Writer, boilerPlate string) *cobra.Command

func ReadStdin

func ReadStdin() error

ReadStdin is read curl file from stdin

func RunCompletion added in v1.1.2

func RunCompletion(out io.Writer, copyRight string, cmd *cobra.Command, args []string) error

func Start

func Start()

Start is for cli url stress

func StartCurl

func StartCurl()

StartCurl is for curl file

Types

This section is empty.

Jump to

Keyboard shortcuts

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