MCPcopy
hub / github.com/redis/go-redis / init

Method init

tx.go:57–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (c *Tx) init() {
58 c.cmdable = c.Process
59 c.statefulCmdable = c.Process
60
61 c.initHooks(hooks{
62 dial: c.baseClient.dial,
63 process: c.baseClient.process,
64 pipeline: c.baseClient.processPipeline,
65 txPipeline: c.baseClient.processTxPipeline,
66 })
67}
68
69func (c *Tx) Process(ctx context.Context, cmd Cmder) error {
70 err := c.processHook(ctx, cmd)

Callers 4

newTxMethod · 0.95
internal_test.goFile · 0.45
NewFailoverClientFunction · 0.45
NewSentinelClientFunction · 0.45

Calls 1

initHooksMethod · 0.80

Tested by

no test coverage detected