OperationExecute
untyped stringOperations that can be halted.
Value
"execute"
OperationWithdraw
untyped stringOperations that can be halted.
Value
"withdraw"
TargetAll
untyped stringTargetAll addresses every target at once.
Value
"all"
TargetDCA
untyped stringTargets registered at deployment; more are added with AddTarget.
Value
"dca"
TargetLimit
untyped stringTargets registered at deployment; more are added with AddTarget.
Value
"limit"
maxTargetLength
untyped bigintmaxTargetLength bounds a target name.
Value
(32 <untyped> bigint)
operations
[]string- OID
- 0af518…5493:4
operations details
errInvalidOperation
untyped stringValue
"[GNOSWAP-ORDER-HALT-001] invalid operation"
errInvalidTarget
untyped stringValue
"[GNOSWAP-ORDER-HALT-002] invalid target"
errTargetExists
untyped stringValue
"[GNOSWAP-ORDER-HALT-003] target already exists"
makeErrorWithDetails
func(message string, details string) .uverse.error- OID
- 0af518…5493:5
makeErrorWithDetails details
targets
[]string- OID
- 0af518…5493:8
targets details
halted
map[string]bool- OID
- 0af518…5493:10
halted details
AddTarget
func(target string)AddTarget registers a target, e.g. for a new order realm. Admin or governance only. A target is 1 to 32 characters of lowercase letters, digits, '\_', or '-', and cannot be TargetAll.
- OID
- 0af518…5493:11
AddTarget details
SetHalted
func(target string, operation string, isHalted bool)SetHalted halts or resumes operation for target. Admin or governance only. Parameters: - target: a registered target, or TargetAll for every target. - operation: OperationExecute or OperationWithdraw.
- OID
- 0af518…5493:13
SetHalted details
IsHalted
func(target string, operation string) boolIsHalted reports whether operation is halted for target, by its own switch or by the TargetAll switch. It panics on an unknown target or operation.
- OID
- 0af518…5493:14
IsHalted details
GetTargets
func() []stringGetTargets returns the registered targets, in registration order.
- OID
- 0af518…5493:15
GetTargets details
GetOperations
func() []stringGetOperations returns the operations that can be halted.
- OID
- 0af518…5493:16
GetOperations details
GetHaltedJSON
func(target string) stringGetHaltedJSON returns, as JSON, whether each operation is halted for target, including the TargetAll switches.
- OID
- 0af518…5493:17
GetHaltedJSON details
validate
func(target string, operation string) .uverse.error- OID
- 0af518…5493:18
validate details
validateTarget
func(target string) .uverse.error- OID
- 0af518…5493:19
validateTarget details
validateTargetName
func(target string) .uverse.error- OID
- 0af518…5493:20
validateTargetName details
isTarget
func(target string) bool- OID
- 0af518…5493:21
isTarget details
switchKey
func(target string, operation string) string- OID
- 0af518…5493:22
switchKey details
contains
func(values []string, value string) bool- OID
- 0af518…5493:23