badger

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const TargetLabel = "_target"

TargetLabel 内置label

Variables

View Source
var (
	ProfileSequence = []byte{0x80}
	MetaSequence    = []byte{0x86}

	PrefixProfiles    = []byte{0x81}
	PrefixProfileMeta = []byte{0x82}
	PrefixSampleType  = []byte{0x83}
	PrefixTarget      = []byte{0x84}
	PrefixLabel       = []byte{0x85}
	PrefixIndex       = []byte{0x86}
)

Functions

func NewStore

func NewStore(opt Options) storage.Store

Types

type Options

type Options struct {
	Path       string
	GCInternal time.Duration
}

func DefaultOptions

func DefaultOptions(path string) Options

func (Options) WithGCInternal

func (opt Options) WithGCInternal(internal time.Duration) Options

Jump to

Keyboard shortcuts

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