autocommit

package
v0.0.0-...-887f819 Latest Latest
Warning

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

Go to latest
Published: May 4, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAutocommitChecker

func BindAutocommitChecker(ctx context.Context, checker Checker)

BindAutocommitChecker binds autocommit checker to context.

func ShouldAutocommit

func ShouldAutocommit(ctx context.Context) bool

ShouldAutocommit gets checker from ctx and checks if it should autocommit.

Types

type Checker

type Checker interface {
	// ShouldAutocommit returns true if it should autocommit in the context.
	ShouldAutocommit(ctx context.Context) bool
}

Checker is the interface checks if it should autocommit in the context. TODO: Choose a better name.

Jump to

Keyboard shortcuts

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