Documentation ¶
Overview ¶
Package P2P represent a peer to peer linked on go-libp2p.
Index ¶
- type EndPoint
- func (e *EndPoint) Enabled() bool
- func (e *EndPoint) Handle(err error)
- func (e *EndPoint) HasTarget() bool
- func (e *EndPoint) Listen(stop chan error)
- func (e *EndPoint) PushMsgForFiles(stop chan error)
- func (e *EndPoint) SetTarget(target string)
- func (e *EndPoint) Shutdown()
- func (e *EndPoint) Target() string
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndPoint ¶
type EndPoint struct {
// contains filtered or unexported fields
}
func New ¶
func New( cfg config.P2P, per persistenceadapter.Adapter, wallets wallet.IWallets, logs *zap.Logger, evt *event.Event, opts ...Option, ) *EndPoint
New represent a new peer to peer adapter.
func (*EndPoint) PushMsgForFiles ¶
Click to show internal directories.
Click to hide internal directories.