Documentation
¶
Index ¶
- Constants
- Variables
- func EnvOrDefault(env string, defaultVal string) string
- func ExtractFile(fs afero.Fs, absPath string, targetFs afero.Fs, targetPath string, ...) (string, error)
- func FloatEquals(a, b float64) bool
- func FormatDuration(d time.Duration) string
- func GetExchPairLogger(ex common.Exchange, pair common.Pair) zerolog.Logger
- func GogoProtoTsToTime(ts *types.Timestamp) time.Time
- func GogoProtoTsToTimePtr(ts *types.Timestamp) *time.Time
- func GunzipWrite(w io.Writer, r io.Reader) error
- func JoinErrs(errs ...error) error
- func JoinErrsS(errs ...string) error
- func MakeExitChan() chan os.Signal
- func ProtoTsToTime(ts *timestamp.Timestamp) time.Time
- func ProtoTsToTimePtr(ts *timestamp.Timestamp) *time.Time
- func TimeProfile(name string, fn func())
- func TimePtrToProtoTsPtr(t *time.Time) *timestamp.Timestamp
- func TimeToGogoProtoTs(ts *time.Time) types.Timestamp
- func TimeToGogoProtoTsPtr(ts *time.Time) *types.Timestamp
- func TimeToProtoTsPtr(t time.Time) *timestamp.Timestamp
- func UnmarshalResponse(resp *http.Response, out interface{}) error
- type TimeRange
Constants ¶
View Source
const EPSILON float64 = 0.00000001
Variables ¶
View Source
var TimeProfileEnabled bool
Functions ¶
func EnvOrDefault ¶
func ExtractFile ¶
func FloatEquals ¶
func FormatDuration ¶
func GetExchPairLogger ¶
func MakeExitChan ¶
func TimeProfile ¶
func TimeProfile(name string, fn func())
func UnmarshalResponse ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.