ardielle / ardielle-tools

Apache License 2.0
18 stars 19 forks source link

Request Object form for Client and Handler w/ support for context #75

Open xythian opened 7 years ago

xythian commented 7 years ago

Make a variant of the Go code generator which generates signatures of the form:

Verb(context, RequestArgumentStruct) (ResponseStruct, error) (no response object) Verb(context, RequestArgumentStruct) error

Where all arguments are fields on the request struct.

This would enable the Client and server Handler forms to be merged, possibly eliminate the rdl.Context in favor of the the Go context (with helpers to read/write the RDL-specific attributes), and mean that adding new optional parameters does not change the signature of handlers and clients.

boynton commented 7 years ago

Would need to be driven by a generator flag to not break compatibility

boynton commented 7 years ago

Released s part of 1.4.14