http

package
v0.0.0-...-77f6fb2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpStore

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

func NewClient

func NewClient(u *url.URL) (store *HttpStore)

func (*HttpStore) Allowed

func (store *HttpStore) Allowed() eris.AllowOps

func (*HttpStore) Close

func (store *HttpStore) Close() (err error)

func (*HttpStore) Drop

func (store *HttpStore) Drop(ref eris.Ref) error

func (*HttpStore) Get

func (store *HttpStore) Get(ctx context.Context, chunk []byte, ref eris.Ref) (err error)

func (*HttpStore) Has

func (store *HttpStore) Has(ctx context.Context, ref eris.Ref, chunkSize int) (present bool)

func (*HttpStore) Put

func (store *HttpStore) Put(ctx context.Context, chunk []byte, ref eris.Ref) error

type StoreHandler

type StoreHandler struct {
	Store          eris.Store
	Encode, Decode bool
}

HTTP handler for serving ERIS blocks If Decode is true then clients may request decoded data.

func (StoreHandler) ServeHTTP

func (handler StoreHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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