beestore

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

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeeStore

type BeeStore struct {
	Client *http.Client
	// contains filtered or unexported fields
}

BeeStore provies a storage.PutGetter that adds/retrieves chunks to/from swarm through the HTTP chunk API.

func NewBeeStore

func NewBeeStore(host string, port int, tls, pin bool, batch string, readOnly bool) (*BeeStore, error)

NewBeeStore creates a new APIStore.

func (*BeeStore) Close

func (b *BeeStore) Close() error

func (*BeeStore) Get

func (b *BeeStore) Get(ctx context.Context, _ storage.ModeGet, address swarm.Address) (ch swarm.Chunk, err error)

func (*BeeStore) Put

func (b *BeeStore) Put(ctx context.Context, _ storage.ModePut, chs ...swarm.Chunk) (exist []bool, err error)

Jump to

Keyboard shortcuts

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