ipfs

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Service) error

func Announce

func Announce(announce []string) Option

func Listen

func Listen(listen []string) Option

func PrivateKey

func PrivateKey(key []byte) Option

func Public

func Public() Option

type Service

type Service struct {
	peer.Node
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, options ...Option) (*Service, error)

func (*Service) AddFile

func (s *Service) AddFile(r io.Reader) (cid.Cid, error)

func (*Service) Close

func (s *Service) Close()

func (*Service) GetFile

func (s *Service) GetFile(ctx context.Context, cid cid.Cid) (peer.ReadSeekCloser, error)

Jump to

Keyboard shortcuts

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