Rendered at 18:47:10 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
0x445442 6 hours ago [-]
Result<T> {
String resultCode;
T data;
List<String> errors;
}
7 days ago [-]
looksjjhg 7 hours ago [-]
I’ve read the readme 3 times and I still don’t understand what it is … it looks like someone learning effect systems but not quite there yet !?
qw 7 hours ago [-]
From what I can tell it is a library for standardising return values that is independent on the transport medium. A HTTP service may return a particular http code or body, and gRPC would have its own representation.
I think this library maps the different representations into a single representation. The business logic, metrics, logging etc. will use the single representation instead of being tightly coupled to the transport medium
Example from the docs where the "PAYMENT_DECLINED" state is mapped from protocol specific responses:
I think this library maps the different representations into a single representation. The business logic, metrics, logging etc. will use the single representation instead of being tightly coupled to the transport medium
Example from the docs where the "PAYMENT_DECLINED" state is mapped from protocol specific responses: