This directory contains two go samples with the following deployment structure:
-
with-http-proxy
uses DBPack to proxy http requests, injectingx-dbpack-xid
andtraceparent
into the request header. -
no-http-proxy
uses gin middleware instead of DBPack proxy, adds the logic of beginning, committing, and rolling back global transactions in gin middleware, and injectsxid
into gin context after beginning global transaction.
本目录包含两个 go 示例,它们的部署结构如下: