policyengine

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyEngine

type PolicyEngine interface {
	Execute(ctx context.Context, cAPI *ToolkitAPI, mtx *apitypes.ManagedTX) (updateType UpdateType, reason ffcapi.ErrorReason, err error)
}

type ToolkitAPI added in v1.2.1

type ToolkitAPI struct {
	Connector ffcapi.API
	TXHistory txhistory.Manager
}

type UpdateType added in v0.9.6

type UpdateType int

UpdateType informs FFTM whether the transaction needs an update to be persisted after this execution of the policy engine

const (
	UpdateNo     UpdateType = iota // Instructs that no update is necessary
	UpdateYes                      // Instructs that the transaction should be updated in persistence
	UpdateDelete                   // Instructs that the transaction should be removed completely from persistence - generally only returned when TX status is TxStatusDeleteRequested
)

Jump to

Keyboard shortcuts

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