2020-05-20 20:12:54 +08:00
|
|
|
package event
|
|
|
|
|
2022-08-18 23:54:48 +08:00
|
|
|
import "github.com/libp2p/go-libp2p/core/event"
|
|
|
|
|
2020-05-20 20:12:54 +08:00
|
|
|
// RawJSON is a type that contains a raw JSON string.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/event.RawJSON instead
|
|
|
|
type RawJSON = event.RawJSON
|
2020-05-20 20:12:54 +08:00
|
|
|
|
|
|
|
// GenericDHTEvent is a type that encapsulates an actual DHT event by carrying
|
|
|
|
// its raw JSON.
|
|
|
|
//
|
|
|
|
// Context: the DHT event system is rather bespoke and a bit messy at the time,
|
|
|
|
// so until we unify/clean that up, this event bridges the gap. It should only
|
|
|
|
// be consumed for informational purposes.
|
|
|
|
//
|
|
|
|
// EXPERIMENTAL: this will likely be removed if/when the DHT event types are
|
|
|
|
// hoisted to core, and the DHT event system is reconciled with the eventbus.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/event.GenericDHTEvent instead
|
|
|
|
type GenericDHTEvent = event.GenericDHTEvent
|