parser

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package parser defines storage key parsing operations.

Index

Constants

View Source
const (
	MaxIdentifierSize      = 256
	Delimiter              = "/"
	ByteDelimiter     byte = '/'
)

Variables

View Source
var (
	ErrInvalidContents = errors.New("spaces and keys must be ^[a-z0-9]{1,256}$")
	ErrInvalidPath     = errors.New("path is not of the form space/key")
)

Functions

func CheckContents

func CheckContents(identifier string) error

CheckContents returns an error if the identifier (space or key) format is invalid.

func ResolvePath

func ResolvePath(path string) (space string, key string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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