Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var QueryEventBufferSize = 16
Number of events to buffer.
Functions ¶
func PublishQueryEvent ¶
func PublishQueryEvent(ctx context.Context, ev *QueryEvent)
func RegisterForQueryEvents ¶
func RegisterForQueryEvents(ctx context.Context) (context.Context, <-chan *QueryEvent)
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.