2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/core/event.
|
|
|
|
//
|
2019-06-20 22:59:53 +08:00
|
|
|
// Package event contains the abstractions for a local event bus, along with the standard events
|
|
|
|
// that libp2p subsystems may emit.
|
|
|
|
//
|
|
|
|
// Source code is arranged as follows:
|
2022-08-18 23:54:48 +08:00
|
|
|
// - doc.go: this file.
|
|
|
|
// - bus.go: abstractions for the event bus.
|
|
|
|
// - rest: event structs, sensibly categorised in files by entity, and following this naming convention:
|
|
|
|
// Evt[Entity (noun)][Event (verb past tense / gerund)]
|
|
|
|
// The past tense is used to convey that something happened, whereas the gerund form of the verb (-ing)
|
|
|
|
// expresses that a process is in progress. Examples: EvtConnEstablishing, EvtConnEstablished.
|
2019-06-20 22:59:53 +08:00
|
|
|
package event
|