common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KB = 1 << (10 * iota)
	MB = 1 << (10 * iota)
	GB = 1 << (10 * iota)
)

Variables

This section is empty.

Functions

func EnsureDirExists

func EnsureDirExists(dirPath string) error

Types

type Chunk

type Chunk struct {
	Key     string
	Value   []byte
	Deleted bool
}

type Scanner

type Scanner interface {
	Scan() bool
	ScanValue() *Chunk
}

type Utils

type Utils struct {
	// contains filtered or unexported fields
}

func NewUtils

func NewUtils() *Utils

func (*Utils) Encode

func (u *Utils) Encode(chunk *Chunk) ([]byte, error)

Jump to

Keyboard shortcuts

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