Documentation
¶
Overview ¶
Foliage basic test package. Provides the basic example of usage of the SDK.
Index ¶
- Variables
- func CacheTest(cacheStore *cache.Store)
- func CreateTestGraph(runtime *statefun.Runtime)
- func KVMuticesSimpleTest(runtime *statefun.Runtime, testDurationSec int, workersCount int, ...)
- func MasterFunction(executor sfPlugins.StatefunExecutor, ...)
- func RegisterFunctionTypes(runtime *statefun.Runtime)
- func Start()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NatsURL - nats server url NatsURL string = system.GetEnvMustProceed("NATS_URL", "nats://nats:foliage@nats:4222") // MasterFunctionContextIncrement - does the master stateful function do the increment operation on each call in its context MasterFunctionContextIncrement bool = system.GetEnvMustProceed("MASTER_FUNC_CONTEXT_INCREMENT", true) // MasterFunctionContextIncrementOption - Default increment value MasterFunctionContextIncrementOption int = system.GetEnvMustProceed("MASTER_FUNC_CONTEXT_INCREMENT_OPTION", 1) // MasterFunctionObjectContextProcess - make master function read and write its object context in idle mode MasterFunctionObjectContextProcess bool = system.GetEnvMustProceed("MASTER_FUNC_OBJECT_CONTEXT_PROCESS", false) // MasterFunctionJSPlugin - enable js plugin for the master function MasterFunctionJSPlugin bool = system.GetEnvMustProceed("MASTER_FUNC_JS_PLUGIN", false) // MasterFunctionLogs - enable logging of the master function MasterFunctionLogs bool = system.GetEnvMustProceed("MASTER_FUNC_LOGS", true) // CreateSimpleGraphTest - create a simple graph on runtime start CreateSimpleGraphTest bool = system.GetEnvMustProceed("CREATE_SIMPLE_GRAPH_TEST", true) // KVMuticesTest - test the Foliage global key/value mutices KVMuticesTest bool = system.GetEnvMustProceed("KV_MUTICES_TEST", true) // KVMuticesTestDurationSec - key/value mutices test duration KVMuticesTestDurationSec int = system.GetEnvMustProceed("KV_MUTICES_TEST_DURATION_SEC", 10) // KVMuticesTestWorkers - key/value mutices workers to apply in the test KVMuticesTestWorkers int = system.GetEnvMustProceed("KV_MUTICES_TEST_WORKERS", 4) )
Functions ¶
func CreateTestGraph ¶
func KVMuticesSimpleTest ¶
func MasterFunction ¶
func MasterFunction(executor sfPlugins.StatefunExecutor, contextProcessor *sfPlugins.StatefunContextProcessor)
func RegisterFunctionTypes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.