package http
import "codeberg.org/eris/eris-go/http"
Index ¶
- type HttpStore
- func NewClient(u *url.URL) (store *HttpStore)
- func (store *HttpStore) Allowed() eris.AllowOps
- func (store *HttpStore) Close() (err error)
- func (store *HttpStore) Drop(ref eris.Ref) error
- func (store *HttpStore) Get(ctx context.Context, chunk []byte, ref eris.Ref) (err error)
- func (store *HttpStore) Has(ctx context.Context, ref eris.Ref, chunkSize int) (present bool)
- func (store *HttpStore) Put(ctx context.Context, chunk []byte, ref eris.Ref) error
- type StoreHandler
Types ¶
type HttpStore ¶
type HttpStore struct {
// contains filtered or unexported fields
}
func NewClient ¶
func (*HttpStore) Allowed ¶
func (*HttpStore) Close ¶
func (*HttpStore) Drop ¶
func (*HttpStore) Get ¶
func (*HttpStore) Has ¶
func (*HttpStore) Put ¶
type StoreHandler ¶
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)
Source Files ¶
http_client.go http_server.go
- Version
- v0.0.0-20250117134628-64f8be33f6fe (latest)
- Published
- Jan 17, 2025
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 1 day ago –
Tools for package owners.