store

package module
v0.0.0-...-11c2ee0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 8 Imported by: 0

README

ipfs-mpi-store

standard-readme compliant

Info

The store handles mpi program storing. It automatically delete unused file after a given delay.

WARNING : Development in progress, might contain bug

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringsToAddrs

func StringsToAddrs(addrStrings []string) (maddrs []maddr.Multiaddr, err error)

Types

type AddrList

type AddrList []maddr.Multiaddr

func (*AddrList) Set

func (al *AddrList) Set(value string) error

func (*AddrList) String

func (al *AddrList) String() string

type Config

type Config struct {
	Url             string
	Path            string
	Ipfs_store      string
	BootstrapPeers  AddrList
	ListenAddresses AddrList
	ProtocolID      string
	Maxsize         uint64
	Api_port        int
}

type Store

type Store struct {
	Ipfs_store string
	// contains filtered or unexported fields
}

func NewStore

func NewStore(ctx context.Context, host host.Host, config Config) (*Store, error)

func (*Store) Add

func (s *Store) Add(f file.File, ctx context.Context) error

func (*Store) Del

func (s *Store) Del(f file.File) error

func (*Store) Get

func (s *Store) Get(ctx context.Context) error

func (*Store) Init

func (s *Store) Init(ctx context.Context) error

Directories

Path Synopsis
interfaces module

Jump to

Keyboard shortcuts

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