localfiber

package module
v0.0.0-...-7be668a Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFiberClient

func NewFiberClient(ctx context.Context, cfg Config) (*fibre.Client, error)

func NewFiberClientWithKeyring

func NewFiberClientWithKeyring(ctx context.Context, kr keyring.Keyring, cfg Config) (*fibre.Client, error)

func NewKeyring

func NewKeyring(keyringPath, keyName, chainID string) (keyring.Keyring, error)

Types

type Adapter

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

func NewAdapter

func NewAdapter(c *fibre.Client) *Adapter

func (*Adapter) Download

func (a *Adapter) Download(ctx context.Context, blobID block.FiberBlobID) ([]byte, error)

func (*Adapter) Listen

func (a *Adapter) Listen(_ context.Context, _ []byte) (<-chan block.FiberBlobEvent, error)

func (*Adapter) Upload

func (a *Adapter) Upload(ctx context.Context, namespace []byte, data []byte) (block.FiberUploadResult, error)

type Config

type Config struct {
	KeyringPath  string
	KeyName      string
	StateAddress string
	ChainID      string
	UploadConc   int
	DownloadConc int
}

Jump to

Keyboard shortcuts

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