Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoTransactionManager ¶
type MongoTransactionManager struct { Ctx context.Context Client *mongo.Client Session mongo.Session }
func NewMongoTransactionManager ¶
func NewMongoTransactionManager(ctx context.Context, client *mongo.Client) *MongoTransactionManager
func (*MongoTransactionManager) WithSession ¶
func (tm *MongoTransactionManager) WithSession(fn func(sc context.Context) error) error
Click to show internal directories.
Click to hide internal directories.