paths

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilesystemToPath

func FilesystemToPath(fsRoot, fsPath string) string

FilesystemToPath converts a filesystem directory path back to a virtual document path. Example: "/logd/paths/children/proc/children/processes" -> "/proc/processes"

func FormatLexInt

func FormatLexInt(v int64) string

func FormatLogSegment

func FormatLogSegment(s *index.LogSegment, lvl int, pending bool) string

func ParseLexInt

func ParseLexInt(v string) (int64, error)

func ParseLogSegment

func ParseLogSegment(p string) (*index.LogSegment, int, error)

ParseLogSegment gets an index.LogSegment and a compaction level from a filename path

func PathToFilesystem

func PathToFilesystem(fsRoot string, virtualPath string) string

PathToFilesystem converts a virtual document path to a filesystem directory path. Example: "/proc/processes" -> "/logd/paths/children/proc/children/processes"

Types

This section is empty.

Jump to

Keyboard shortcuts

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