storage_hdl

package
v0.0.0-...-2a83a9b Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(dirPath, name string) *Handler

func (*Handler) Delete

func (h *Handler) Delete(_ context.Context, id string) error

func (*Handler) Init

func (h *Handler) Init(ctx context.Context) error

func (*Handler) List

func (h *Handler) List(_ context.Context) ([]models.StorageData, error)

func (*Handler) Read

func (h *Handler) Read(_ context.Context, id string) ([]byte, error)

func (*Handler) Write

func (h *Handler) Write(ctx context.Context, id string, args [][2]string, data []byte) error

Jump to

Keyboard shortcuts

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