internal

package
v0.0.0-...-9395666 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendArg

func AppendArg(b []byte, v interface{}) []byte

func Bytes

func Bytes(s string) []byte

Bytes converts string to byte slice.

func RetryBackoff

func RetryBackoff(retry int, minBackoff, maxBackoff time.Duration) time.Duration

func Sleep

func Sleep(ctx context.Context, dur time.Duration) error

func String

func String(b []byte) string

String converts byte slice to string.

func ToLower

func ToLower(s string) string

Types

type Logging

type Logging interface {
	Printf(ctx context.Context, format string, v ...interface{})
}
var Logger Logging = &logger{
	log: log.New(os.Stderr, "skytable: ", log.LstdFlags|log.Lshortfile),
}

Logger calls Output to print to the stderr. Arguments are handled in the manner of fmt.Print.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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