internal

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger     = log.New(os.Stderr, "ch: ", log.LstdFlags|log.Lshortfile)
	Warn       = log.New(os.Stderr, "WARN: ch: ", log.LstdFlags|log.Lshortfile)
	Deprecated = log.New(os.Stderr, "DEPRECATED: ch: ", log.LstdFlags|log.Lshortfile)
)

Functions

func Bytes

func Bytes(s string) []byte

StringToBytes converts string to byte slice.

func MakeSliceNextElemFunc

func MakeSliceNextElemFunc(v reflect.Value) func() reflect.Value

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

BytesToString converts byte slice to string.

func Unwrap

func Unwrap(err error) error

Types

type Flag

type Flag uint64

func (Flag) Has

func (flag Flag) Has(other Flag) bool

func (*Flag) Remove

func (flag *Flag) Remove(other Flag)

func (*Flag) Set

func (flag *Flag) Set(other Flag)

Directories

Path Synopsis
* COPY from https://github.com/zentures/cityhash/ NOTE: The code is modified to be compatible with CityHash128 used in ClickHouse
* COPY from https://github.com/zentures/cityhash/ NOTE: The code is modified to be compatible with CityHash128 used in ClickHouse

Jump to

Keyboard shortcuts

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