utils

package
v0.0.0-...-cf5f3dd Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MILLISECONDS_IN_HOURS float64 = 1000 * 60 * 60

Variables

View Source
var (
	GetDoFunc func(request *http.Request) (*http.Response, error)
)

Functions

func FormatDuration

func FormatDuration(duration float64) string

func MillisecondsToHours

func MillisecondsToHours(seconds int64) float64

Types

type MockClient

type MockClient struct {
	DoFunc func(request *http.Request) (*http.Response, error)
}

func (*MockClient) Do

func (m *MockClient) Do(request *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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