SetInitConnFunc sets the connection initialization function to be called on reconnections.
(fn func(context.Context, *Conn) error)
| 640 | |
| 641 | // SetInitConnFunc sets the connection initialization function to be called on reconnections. |
| 642 | func (cn *Conn) SetInitConnFunc(fn func(context.Context, *Conn) error) { |
| 643 | cn.initConnFunc = fn |
| 644 | } |
| 645 | |
| 646 | // ExecuteInitConn runs the stored connection initialization function if available. |
| 647 | func (cn *Conn) ExecuteInitConn(ctx context.Context) error { |
no outgoing calls