isolation

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode string
const (
	ModeNone      Mode = "none"
	ModeWorkspace Mode = "workspace"
	ModeSource    Mode = "source"
)

type Strategy

type Strategy interface {
	// ActivePartitions returns the list of partitions that are active for the given strategy
	ActivePartitions(ctx context.Context, db jobsdb.JobsDB) ([]string, error)
	// AugmentQueryParams augments the given GetQueryParamsT with the strategy specific parameters
	AugmentQueryParams(partition string, params *jobsdb.GetQueryParamsT)
}

Strategy defines the operations that every different isolation strategy in processor must implement

func GetStrategy

func GetStrategy(mode Mode) (Strategy, error)

GetStrategy returns the strategy for the given isolation mode. An error is returned if the mode is invalid

Jump to

Keyboard shortcuts

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