bzz

package
v0.0.0-...-737687b Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BzzService

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

func NewBzzService

func NewBzzService(cfg *swarmapi.Config) (*BzzService, error)

func (*BzzService) APIs

func (self *BzzService) APIs() []rpc.API

func (*BzzService) Protocols

func (self *BzzService) Protocols() (protos []p2p.Protocol)

func (*BzzService) RegisterPssProtocol

func (self *BzzService) RegisterPssProtocol(psssvc SubService) error

func (*BzzService) Start

func (self *BzzService) Start(srv *p2p.Server) error

func (*BzzService) Stop

func (self *BzzService) Stop() error

type BzzServiceAPI

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

api to interact with pss protocol TODO: change protocol methods so we only have to use pss api here and remove this structure

func (*BzzServiceAPI) AddPeer

func (self *BzzServiceAPI) AddPeer(topic pss.Topic, pubKey hexutil.Bytes, addr pss.PssAddress) error

func (*BzzServiceAPI) RemovePeer

func (self *BzzServiceAPI) RemovePeer(topic pss.Topic, pubKey hexutil.Bytes) error

type NoopBalance

type NoopBalance bool

func (*NoopBalance) Add

func (n *NoopBalance) Add(amount int64, p *protocols.Peer) error

type SubService

type SubService interface {
	node.Service
	Spec() *protocols.Spec
	Protocol() *p2p.Protocol
}

Jump to

Keyboard shortcuts

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