new session.Do API #60
No reviewers
Labels
No labels
breaking-change
bug
dependencies
duplicate
enhancement
go
good first issue
help wanted
invalid
investigation
proposal
proposal-accepted
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nemith/netconf!60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "nemith/call_method"
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?
This refactors the
Doand it'sReplyobject.Dono longer takes aRPCMsgas the only field that isn't overwritten is the request itself. So instead it just take a request.Replystruct as been renamed fromRPCReplyMsgto justReplyto make it a more friendly "first class" object. Methods have been added to it to make it more friendly as well:Decodemethod wrapsxml.Unmarshalfor decoding the bodyErrwas added to return the rpc-errors with the severity oferror(notwarning) as Go errors.This prompted some other cleanup:
NotificationMsg->NotificationRPCMsgwas unexported as there really shouldn't be anything that a user need to use directly.Dodirectly if wanted.This is a breaking change, but we are not 1.0 yet.