local

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BasePath string
}

type FileStore

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

func New

func New(cfg Config) (*FileStore, error)

func (*FileStore) BasePath

func (f *FileStore) BasePath() string

func (*FileStore) DeleteObject

func (f *FileStore) DeleteObject(key string) error

func (*FileStore) GetObject

func (f *FileStore) GetObject(key string) ([]byte, error)

func (*FileStore) PutObject

func (f *FileStore) PutObject(object []byte, key string) error

Jump to

Keyboard shortcuts

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