transaction

package
v1.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	freedom.Infra
	// contains filtered or unexported fields
}

Transaction .

func (*Transaction) BeginRequest

func (t *Transaction) BeginRequest(rt freedom.Runtime)

BeginRequest

func (*Transaction) Execute

func (t *Transaction) Execute(fun func() error) (e error)

func (*Transaction) ExecuteTx added in v1.3.1

func (t *Transaction) ExecuteTx(fun func() error, ctx context.Context, opts *sql.TxOptions) (e error)

Execute Execute local transaction.

type XA

type XA struct {
	freedom.Infra
}

Transaction .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL