Documentation ¶
Index ¶
Constants ¶
View Source
const RoutingQueryKey = "RoutingQueryEvent"
Variables ¶
This section is empty.
Functions ¶
func PublishQueryEvent ¶
func PublishQueryEvent(ctx context.Context, ev *QueryEvent)
func RegisterForQueryEvents ¶
func RegisterForQueryEvents(ctx context.Context, ch chan<- *QueryEvent) context.Context
Types ¶
type QueryEvent ¶
func (*QueryEvent) MarshalJSON ¶
func (qe *QueryEvent) MarshalJSON() ([]byte, error)
func (*QueryEvent) UnmarshalJSON ¶
func (qe *QueryEvent) UnmarshalJSON(b []byte) error
type QueryEventType ¶
type QueryEventType int
const ( SendingQuery QueryEventType = iota PeerResponse FinalPeer QueryError Provider Value AddingPeer DialingPeer )
Click to show internal directories.
Click to hide internal directories.