nemith / netconf

NETCONF implementation in Go.
Other
29 stars 7 forks source link

new `session.Do` API #60

Closed nemith closed 1 year ago

nemith commented 1 year ago

This refactors the Do and it's Reply object.

Do no longer takes a RPCMsg as the only field that isn't overwritten is the request itself. So instead it just take a request.

Reply struct as been renamed from RPCReplyMsg to just Reply to make it a more friendly "first class" object. Methods have been added to it to make it more friendly as well: