internal

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenPath

func GenPath(path []Path) string

Types

type Path

type Path struct {
	Type PathType
	Elem string
}

func SplitPath

func SplitPath(key string) ([]Path, error)

SplitPath splits the key into individual parts.

type PathType

type PathType int
const (
	PathTypeKey PathType = iota
	PathTypeIndex
)

type Storage

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

func (*Storage) Get

func (s *Storage) Get(key string) string

func (*Storage) Has

func (s *Storage) Has(key string) bool

Has returns whether key exists.

func (*Storage) Init

func (s *Storage) Init()

func (*Storage) Keys

func (s *Storage) Keys() []string

Keys returns all sorted keys.

func (*Storage) Set

func (s *Storage) Set(key, val string) error

func (*Storage) SubKeys

func (s *Storage) SubKeys(key string) ([]string, error)

Jump to

Keyboard shortcuts

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