store

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

package store -- главный тип плагина хранилища

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store -- главный тип плагина хранилища

func NewStore

func NewStore(ctx context.Context, wg *sync.WaitGroup, path string) (*Store, error)

NewStore -- возвращает новое хранилище

func (*Store) Del

func (sf *Store) Del(key string) error

Del -- удаляет значение по ключу

func (*Store) Find

func (sf *Store) Find(prefix string) ([]string, error)

Find -- возвращает список ключей по префиксу

func (*Store) Get

func (sf *Store) Get(key string) ([]byte, error)

Get -- возвращает значение по ключу

func (*Store) Put

func (sf *Store) Put(key string, value []byte) error

Put -- добавляет в хранилище значение по ключу

Jump to

Keyboard shortcuts

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