-
Notifications
You must be signed in to change notification settings - Fork 76
Introspection types for core #107
Introspection types for core #107
Conversation
1d7548b
to
50ad563
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also looking good, although there's opportunity for simplification. I'm convinced we will end up rejigging/renaming the interfaces at some point, but I've focused on the implementation details for now.
introspection/providers_tree.go
Outdated
// Enums. | ||
type ( | ||
// StreamListQueryType is an Enum to represent the types of queries that can be made when looking up streams | ||
StreamListQueryType int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can generalise this type and name it QueryOutput
, with two concrete enum values: QueryOutputList
, QueryOutputFull
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've come up with QueryOutputTypeFull
& QueryOutputTypeIds
which determine whether we want to resolve an output object completely or just fetch it's Ids.
@raulk The first round of review has been addressed. |
For libp2p/go-libp2p#775
All the introspection types/protocols required to be in core.