Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

halt state

Back to all declarations

OperationExecute

untyped string

Operations that can be halted.

Value

"execute"

OperationWithdraw

untyped string

Operations that can be halted.

Value

"withdraw"

TargetAll

untyped string

TargetAll addresses every target at once.

Value

"all"

TargetDCA

untyped string

Targets registered at deployment; more are added with AddTarget.

Value

"dca"

TargetLimit

untyped string

Targets registered at deployment; more are added with AddTarget.

Value

"limit"

maxTargetLength

untyped bigint

maxTargetLength bounds a target name.

Value

(32 <untyped> bigint)

errInvalidOperation

untyped string

Value

"[GNOSWAP-ORDER-HALT-001] invalid operation"

errInvalidTarget

untyped string

Value

"[GNOSWAP-ORDER-HALT-002] invalid target"

errTargetExists

untyped string

Value

"[GNOSWAP-ORDER-HALT-003] target already exists"

makeErrorWithDetails

func(message string, details string) .uverse.error
Open
OID
0af518…5493:5
makeErrorWithDetails details

Inspect func

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.

Open
OID
0af518…5493:11
AddTarget details

Inspect func

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.

Open
OID
0af518…5493:13
SetHalted details

Inspect func

IsHalted

func(target string, operation string) bool

IsHalted reports whether operation is halted for target, by its own switch or by the TargetAll switch. It panics on an unknown target or operation.

Open
OID
0af518…5493:14
IsHalted details

Inspect func

GetTargets

func() []string

GetTargets returns the registered targets, in registration order.

Open
OID
0af518…5493:15
GetTargets details

Inspect func

GetOperations

func() []string

GetOperations returns the operations that can be halted.

Open
OID
0af518…5493:16
GetOperations details

Inspect func

GetHaltedJSON

func(target string) string

GetHaltedJSON returns, as JSON, whether each operation is halted for target, including the TargetAll switches.

Open
OID
0af518…5493:17
GetHaltedJSON details

Inspect func

validate

func(target string, operation string) .uverse.error
Open
OID
0af518…5493:18
validate details

Inspect func

validateTarget

func(target string) .uverse.error
Open
OID
0af518…5493:19
validateTarget details

Inspect func

validateTargetName

func(target string) .uverse.error
Open
OID
0af518…5493:20
validateTargetName details

Inspect func

isTarget

func(target string) bool
Open
OID
0af518…5493:21
isTarget details

Inspect func

switchKey

func(target string, operation string) string
Open
OID
0af518…5493:22
switchKey details

Inspect func

contains

func(values []string, value string) bool
Open
OID
0af518…5493:23
contains details

Inspect func
OperationExecute : untyped string ="execute"
OperationWithdraw : untyped string ="withdraw"
TargetAll : untyped string ="all"
TargetDCA : untyped string ="dca"
TargetLimit : untyped string ="limit"
maxTargetLength : untyped bigint =(32 <untyped> bigint)
operations : []string (len=2) Inspect
errInvalidOperation : untyped string ="[GNOSWAP-ORDER-HALT-001] invalid operation"
errInvalidTarget : untyped string ="[GNOSWAP-ORDER-HALT-002] invalid target"
errTargetExists : untyped string ="[GNOSWAP-ORDER-HALT-003] target already exists"
makeErrorWithDetails : func(message string, details string) .uverse.error Inspect
targets : []string (len=2) Inspect
halted : map[string]bool Inspect
AddTarget : func(target string) Inspect
SetHalted : func(target string, operation string, isHalted bool) Inspect
IsHalted : func(target string, operation string) bool Inspect
GetTargets : func() []string Inspect
GetOperations : func() []string Inspect
GetHaltedJSON : func(target string) string Inspect
validate : func(target string, operation string) .uverse.error Inspect
validateTarget : func(target string) .uverse.error Inspect
validateTargetName : func(target string) .uverse.error Inspect
isTarget : func(target string) bool Inspect
switchKey : func(target string, operation string) string Inspect
contains : func(values []string, value string) bool Inspect