files

package
v0.0.0-...-3976360 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCorruptCurrentFile = errors.New("corrupt current file")
)

Functions

func CurrentFileName

func CurrentFileName(dbname string) string

func GetCurrentManifest

func GetCurrentManifest(fs file.FileSystem, dbname, current string) (string, error)

func InfoLogFileName

func InfoLogFileName(dbname string) string

func LockFileName

func LockFileName(dbname string) string

func LogFileName

func LogFileName(dbname string, number uint64) string

func MakeFileName

func MakeFileName(dbname string, number uint64, ext string) string

func ManifestFileName

func ManifestFileName(dbname string, number uint64) string

func OldInfoLogFileName

func OldInfoLogFileName(dbname string) string

func SSTTableFileName

func SSTTableFileName(dbname string, number uint64) string

func SetCurrentManifest

func SetCurrentManifest(fs file.FileSystem, dbname, current string, manifestNumber uint64) (err error)

func TableFileName

func TableFileName(dbname string, number uint64) string

Types

type Kind

type Kind int
const (
	Invalid Kind = iota
	Lock
	Current
	Manifest
	Table
	Temp
	SSTTable
	Log
	InfoLog
)

func Parse

func Parse(name string) (kind Kind, number uint64)

func (Kind) String

func (k Kind) String() string

Jump to

Keyboard shortcuts

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