Documentation ¶
Index ¶
Constants ¶
View Source
const ( OutOf = "OutOf" MinPercent = "MinPercent" LogRequired = "LogRequired" AND = "AND" OR = "OR" )
Gate values.
View Source
const ( RoleBatch = "batch" RoleSystem = "system" )
Role values.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements the witness policy config store.
func NewPolicyStore ¶
NewPolicyStore returns a new witness policy config store.
type WitnessPolicyConfig ¶
type WitnessPolicyConfig struct { MinNumberSystem int MinNumberBatch int MinPercentSystem int MinPercentBatch int OperatorFnc operatorFnc Operator string LogRequired bool }
WitnessPolicyConfig parses witness policy.
func Parse ¶
func Parse(policy string) (*WitnessPolicyConfig, error)
Parse parses witness policy from policy string.
func (*WitnessPolicyConfig) String ¶
func (wp *WitnessPolicyConfig) String() string
Click to show internal directories.
Click to hide internal directories.