Source File
dht.go
Belonging Package
github.com/libp2p/go-libp2p/core/event
package event// RawJSON is a type that contains a raw JSON string.type RawJSON string// 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.type GenericDHTEvent struct {// Type is the type of the DHT event that occurred.Type string// Raw is the raw JSON representation of the event payload.Raw RawJSON}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |