server

package
v1.0.0-alpha6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const EnableTLS = true
View Source
const Insecure = false
View Source
const MAX_COUNT = 100
View Source
const SkipTLSVerify = true
View Source
const TESTHOST = "localhost"
View Source
const TESTPORT = 28088
View Source
const TIMEOUT_CRON_TRIGGER_INTERVALL = 1
View Source
const TIMEOUT_GENERATOR_TRIGGER_INTERVALL = 1
View Source
const TIMEOUT_RELEASE_INTERVALL = 1

Variables

This section is empty.

Functions

func WaitForCluster

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

func WaitForProcessGraphs

func WaitForProcessGraphs(t *testing.T, c *client.ColoniesClient, colonyID string, generatorID string, runtimePrvKey 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,
	serverID string,
	tls bool,
	tlsPrivateKeyPath string,
	tlsCertPath string,
	thisNode cluster.Node,
	clusterConfig cluster.Config,
	etcdDataPath string) *ColoniesServer

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