Documentation ¶
Index ¶
- Constants
- func Assert(condition bool, msg string, v ...interface{})
- func DisableVerifications() func()
- func EnableAllVerifications() func()
- func EnableVerifications(verification VerificationType) func()
- func IsVerificationEnabled(verification VerificationType) bool
- func Verify(f func())
- type VerificationType
Constants ¶
View Source
const ENV_VERIFY = "ETCD_VERIFY"
Variables ¶
This section is empty.
Functions ¶
func DisableVerifications ¶
func DisableVerifications() func()
DisableVerifications unsets `ENV_VERIFY` and returns a function that can be used to bring the original settings.
func EnableAllVerifications ¶
func EnableAllVerifications() func()
EnableAllVerifications enables verification and returns a function that can be used to bring the original settings.
func EnableVerifications ¶
func EnableVerifications(verification VerificationType) func()
EnableVerifications sets `ENV_VERIFY` and returns a function that can be used to bring the original settings.
func IsVerificationEnabled ¶
func IsVerificationEnabled(verification VerificationType) bool
Types ¶
type VerificationType ¶
type VerificationType string
const ( ENV_VERIFY_VALUE_ALL VerificationType = "all" ENV_VERIFY_VALUE_ASSERT VerificationType = "assert" )
Click to show internal directories.
Click to hide internal directories.