server

package
v1.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const CRON_TRIGGER_PERIOD = 1000 // Period in milliseconds when cron is run
View Source
const EnableTLS = true
View Source
const GENERATOR_TRIGGER_PERIOD = 1000 // Period in milliseconds when generator is run
View Source
const Insecure = false
View Source
const MAX_COUNT = 100
View Source
const MAX_DAYS = 30
View Source
const MAX_LOG_COUNT = 500
View Source
const MAX_PRIORITY = 50000
View Source
const MIN_PRIORITY = -50000
View Source
const RELEASE_PERIOD = 1 // Period in seconds when processes are checked for max exec time or max wait time
View Source
const SkipTLSVerify = true
View Source
const TESTHOST = "localhost"
View Source
const TESTPORT = 28088

Variables

This section is empty.

Functions

func VerifyFunctionSpec added in v1.0.1

func VerifyFunctionSpec(funcSpec *core.FunctionSpec) error

func VerifyWorkflowSpec

func VerifyWorkflowSpec(workflowSpec *core.WorkflowSpec) error

func WaitForCluster

func WaitForCluster(t *testing.T, cluster []ServerInfo)

func WaitForProcessGraphs

func WaitForProcessGraphs(t *testing.T, c *client.ColoniesClient, colonyName string, generatorID string, executorPrvKey string, threshold int) int

func WaitForServerToDie

func WaitForServerToDie(t *testing.T, s ServerInfo)

Types

type ColoniesServer

type ColoniesServer struct {
	// contains filtered or unexported fields
}

func CreateColoniesServer

func CreateColoniesServer(db database.Database,
	port int,
	tls bool,
	tlsPrivateKeyPath string,
	tlsCertPath string,
	thisNode cluster.Node,
	clusterConfig cluster.Config,
	etcdDataPath string,
	generatorPeriod int,
	cronPeriod int,
	exclusiveAssign bool,
	allowExecutorReregister bool,
	retention bool,
	retentionPolicy int64,
	retentionPeriod int) *ColoniesServer

func PrepareTests added in v1.5.0

func PrepareTests(t *testing.T) (*client.ColoniesClient, *ColoniesServer, string, chan bool)

func (*ColoniesServer) ServeForever

func (server *ColoniesServer) ServeForever() error

func (*ColoniesServer) Shutdown

func (server *ColoniesServer) Shutdown()

type ServerInfo

type ServerInfo struct {
	ServerID     string
	ServerPrvKey string
	Server       *ColoniesServer
	Node         cluster.Node
	Done         chan struct{}
}

func StartCluster

func StartCluster(t *testing.T, db database.Database, size int) []ServerInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL