Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultProcessor ¶
type DefaultProcessor struct {
// contains filtered or unexported fields
}
func NewDefaultProcessor ¶
func NewDefaultProcessor(port int, policyStorage *policy.Storage, iSAndD node.IdentifierSignerAndDecrypter) DefaultProcessor
NewDefaultProcessor creates a processor that forwards instruction actions to the configured extension endpoint.
func (DefaultProcessor) Process ¶
func (p DefaultProcessor) Process(_ context.Context, a *types.Action) types.ActionResult
Process routes the instruction action to the external extension at threshold and crafts the final vote response when the action ends.
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func NewProcessor(f ProcessorFunction, iSAndD node.IdentifierSignerAndDecrypter, pStorage *policy.Storage, immediateResult bool) Processor
NewProcessor builds a Processor that wraps the provided instruction handler with common preprocessing and validation logic.
type ProcessorFunction ¶
type ProcessorFunction func(ctx context.Context, submissionTag types.SubmissionTag, dataFixed *instruction.DataFixed, variableMessages []hexutil.Bytes, signers []common.Address, signingPolicy *cpolicy.SigningPolicy) (data []byte, additionalResultStatus []byte, err error)
Click to show internal directories.
Click to hide internal directories.