Documentation ¶
Index ¶
Constants ¶
View Source
const (
// WitnessPolicyKey is witness policy key in config store.
WitnessPolicyKey = "witness-policy"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WitnessPolicy ¶
type WitnessPolicy struct {
// contains filtered or unexported fields
}
WitnessPolicy evaluates witness policy.
func New ¶
func New(retriever policyRetriever, policyCacheExpiry time.Duration) (*WitnessPolicy, error)
New will create new witness policy evaluator.
func (*WitnessPolicy) Evaluate ¶
func (wp *WitnessPolicy) Evaluate(witnesses []*proof.WitnessProof) (bool, error)
Evaluate evaluates if witness policy has been satisfied for provided witnesses.
Click to show internal directories.
Click to hide internal directories.