cmd

package
v0.0.0-...-f4d91ac Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

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.

Package cmd

Copyright © 2021 DANIEL PORTO <daniel.porto@gmail.com>

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.

Copyright © 2021 DNAIEL PORTO <daniel.porto@gmail.com>

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.

Copyright © 2021 Daniel Porto <daniel.porto@gmail.com>

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

This section is empty.

Functions

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 Log

func Log(message string, a ...interface{})

func LogDebug

func LogDebug(message string, a ...interface{})

func LogError

func LogError(message string, a ...interface{})

func LogFatal

func LogFatal(message string, a ...interface{})

func LogWtag

func LogWtag(tag, message string, a ...interface{})

Types

type StatsStorage

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

func (*StatsStorage) ForceRecomputeArray

func (s *StatsStorage) ForceRecomputeArray()

func (*StatsStorage) GetAverage

func (s *StatsStorage) GetAverage(percent bool) int64

func (*StatsStorage) GetLatencyValues

func (s *StatsStorage) GetLatencyValues() (*[]int64, int64)

func (*StatsStorage) GetLatencyValuesFlattened

func (s *StatsStorage) GetLatencyValuesFlattened() *[]int64

GetLatencyValuesFlattened this version uses more memory and is not required as the compute methods are aware of repetitions

func (*StatsStorage) GetMax

func (s *StatsStorage) GetMax(percent bool) int64

func (*StatsStorage) GetMedian

func (s *StatsStorage) GetMedian(percent bool) int64

func (*StatsStorage) GetPercentile

func (s *StatsStorage) GetPercentile(percentile float32) int64

func (*StatsStorage) GetSTD

func (s *StatsStorage) GetSTD(percent bool) float64

func (*StatsStorage) PrintStatsMap

func (s *StatsStorage) PrintStatsMap()

func (*StatsStorage) ReportStats

func (s *StatsStorage) ReportStats() string

func (*StatsStorage) StoreLatencySample

func (s *StatsStorage) StoreLatencySample(latency int64) bool

Jump to

Keyboard shortcuts

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