blob

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Server

func Server(srv *Store) http.Handler

Types

type Store

type Store struct {
	maps.Map[string, string]
	// contains filtered or unexported fields
}

func New

func New(root string, validator func(string, string) bool) (res *Store, err error)

func (Store) Del

func (s Store) Del(bucket, name string) error

func (Store) Get

func (s Store) Get(bucket, name string) (val string, err error)

func (Store) Set

func (s Store) Set(bucket, blob string, r io.Reader, ct ft.Type) (res string, err error)

Jump to

Keyboard shortcuts

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