Add internal-apis client #59
No reviewers
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry.go#59
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feature/lbryinc3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cool new feature!
One suggestion I'd have is to avoid named return parameters, I know Grin doesn't like them very much. aka
func ...(...)(err error)
instead offunc ...(...) error
I believe that across lbry.go and internal-apis we alias this to
log
I'd name this
defaultAPIEndpoint
ordefaultAPIHost
as Server Address is a bit too genericthis can go
you can shorten this to
return ioutil.ReadAll(r.Body)
@ -0,0 +21,4 @@
}
// APIResponse reflects internal-apis JSON response format.
type APIResponse struct {
perhaps you can reuse this https://github.com/lbryio/lbry.go/blob/master/extras/api/server.go#L35
@ -0,0 +21,4 @@
}
// APIResponse reflects internal-apis JSON response format.
type APIResponse struct {
the fields do not match unfortunately