utils

package
v0.0.0-...-edc38d9 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: BSD-3-Clause Imports: 8 Imported by: 5

Documentation

Overview

*

  • Copyright 2020 Whiteblock Inc. All rights reserved.
  • Use of this source code is governed by a BSD-style
  • license that can be found in the LICENSE file.

Index

Constants

View Source
const (
	Kibi int64 = 1 << (10 * iota)
	Mibi
	Gibi
	Tibi
)

Variables

This section is empty.

Functions

func CreateDNSSubdomains

func CreateDNSSubdomains(n int) (dns []string)

func GetUUIDString

func GetUUIDString() string

GetUUIDString generates a new UUID

func LogError

func LogError(err error) error

LogError takes in an error, logs that error and returns that error. Used to help reduce code clutter and unify the error handling in the code. Has no effect if err == nil

func LogErrorN

func LogErrorN(err error, n int) error

func Memconv

func Memconv(mem string, defaultMulti int64) (int64, error)

func NewTestingLogger

func NewTestingLogger(t *testing.T) *logrus.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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