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 ffcapi.API, mtx *apitypes.ManagedTX) (updateType UpdateType, reason ffcapi.ErrorReason, err error)
}
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 )
Click to show internal directories.
Click to hide internal directories.