config

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

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 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

Jump to

Keyboard shortcuts

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