storage

package
v0.0.0-...-e558f2e Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(storage Storage) *Controller

func (*Controller) Execute

func (c *Controller) Execute(command *querylang.Command) (string, error)

type Storage

type Storage interface {
	Get(key string) (string, error)
	Set(key, value string) error
	Del(key string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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