MCPcopy
hub / github.com/spacecloud-io/space-cloud / Set

Method Set

gateway/utils/atomic.go:24–28  ·  view source on GitHub ↗

Set sets an item in the array at a particular index

(index int, value interface{})

Source from the content-addressed store, hash-verified

22
23// Set sets an item in the array at a particular index
24func (a *Array) Set(index int, value interface{}) {
25 a.lock.Lock()
26 a.array[index] = value
27 a.lock.Unlock()
28}
29
30// GetAll gets the array
31func (a *Array) GetAll() []interface{} {

Callers 15

processLinkedResultMethod · 0.95
processQueryResultMethod · 0.95
CheckAndSetMethod · 0.45
handleGetLogsMethod · 0.45
HandleGetServicesMethod · 0.45
loggerMiddleWareFunction · 0.45
handleListSecretsMethod · 0.45
GetServiceLogsFunction · 0.45
ApplySpecFunction · 0.45
TestGetProjectIDFunction · 0.45

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 1

TestGetProjectIDFunction · 0.36