daemonstorage

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewShell

func NewShell(config Config) *shell.Shell

Types

type Config

type Config struct {
	IPFSDaemonPort string `envconfig:"IPFS_DAEMON_PORT" default:"5001"`
	IPFSDaemonHost string `envconfig:"IPFS_DAEMON_HOST" required:"true"`
}

type Storage

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

Storage is IPFS-based storage.Storage interface implementation

func NewStorage

func NewStorage(sh *shell.Shell) *Storage

func (*Storage) Read

func (*Storage) Write

func (s *Storage) Write(ctx context.Context, message proto.Message) (cid.Cid, error)

Jump to

Keyboard shortcuts

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