utils

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Byte = 1 << (iota * 10)
	KiByte
	MiByte
	GiByte
	TiByte
	PiByte
	EiByte
)
View Source
const (
	IByte = 1
	KByte = IByte * 1000
	MByte = KByte * 1000
	GByte = MByte * 1000
	TByte = GByte * 1000
	PByte = TByte * 1000
	EByte = PByte * 1000
)
View Source
const (
	EnvKeyNodeNamespace = "BAETYL_NODE_NAMESPACE"
)
View Source
const (
	ReadBuff = 100 * KiByte
)

Variables

This section is empty.

Functions

func Bytes added in v2.4.3

func Bytes(s uint64) string

func CreateWriteFile added in v2.2.0

func CreateWriteFile(filePath string, data []byte) error

func ExtractNodeInfo

func ExtractNodeInfo(cert utils.Certificate) error

func IBytes added in v2.4.3

func IBytes(s uint64) string

func Wrapper

func Wrapper(handler HandlerFunc) func(ctx *routing.Context) error

Types

type HandlerFunc

type HandlerFunc func(ctx *routing.Context) (interface{}, error)

Jump to

Keyboard shortcuts

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