Documentation ¶ Index ¶ func NewShell(config Config) *shell.Shell type Config type Storage func NewStorage(sh *shell.Shell) *Storage func (s *Storage) Read(ctx context.Context, cid cid.Cid) (storage.ProtoUnmarshallable, error) func (s *Storage) Write(ctx context.Context, message proto.Message) (cid.Cid, error) 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 (s *Storage) Read(ctx context.Context, cid cid.Cid) (storage.ProtoUnmarshallable, error) func (*Storage) Write ¶ func (s *Storage) Write(ctx context.Context, message proto.Message) (cid.Cid, error) Source Files ¶ View all Source files storage.go Click to show internal directories. Click to hide internal directories.