internal

package
v0.0.0-...-51b3ee1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeRate

func ComputeRate(actual uint64, last uint64, interval float64) float64

ComputeRate computes rate based on the given input.

func RateComputer

func RateComputer(interval float64) func(uint64, uint64) float64

RateComputer is clojure around ComputeRate.

Types

type ErrParser

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

ErrParser extends strconv functions for integers, adding support for lazy error checking. All conversions are done using base 10, assuming 64 bit integers.

func (*ErrParser) Err

func (p *ErrParser) Err() error

Err returns the last error encountered by the parser.

func (*ErrParser) ParseInt

func (p *ErrParser) ParseInt(s string) int

ParseInt extends strconv.ParseInt by preserving last occurred error.

func (*ErrParser) ParseUint64

func (p *ErrParser) ParseUint64(s string) uint64

ParseUint64 extends strconv.ParseUint64 by preserving last occurred error.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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