mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-02-05 05:50:08 +08:00
20 lines
808 B
Go
20 lines
808 B
Go
package event
|
|
|
|
import "github.com/libp2p/go-libp2p/core/event"
|
|
|
|
// RawJSON is a type that contains a raw JSON string.
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/event.RawJSON instead
|
|
type RawJSON = event.RawJSON
|
|
|
|
// 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.
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/event.GenericDHTEvent instead
|
|
type GenericDHTEvent = event.GenericDHTEvent
|