utils

package
v2.27.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: GPL-3.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSyncMapSize

func GetSyncMapSize(m *sync.Map) int

GetSyncMapSize - returns the sync map size

func GetTimeNoMillis

func GetTimeNoMillis() int64

* * Returns the time truncated to seconds.

func IsConnectionClosedError

func IsConnectionClosedError(err error) bool

IsConnectionClosedError - checks the error to check if the connection was closed

func MilliToSeconds

func MilliToSeconds(t int64) (int64, error)

* * Truncates the time to seconds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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