Documentation
¶
Index ¶
Constants ¶
const ( PortOffsetUnknown = 0 // Coordinator/single server PortOffsetCoordinator = 1 // Coordinator/single server PortOffsetDBServer = 2 PortOffsetAgent = 3 PortOffsetSyncMaster = 4 PortOffsetSyncWorker = 5 PortOffsetIncrementOld = 5 // {our http server, agent, coordinator, dbserver, reserved} PortOffsetIncrementNew = 10 // {our http server, agent, coordinator, dbserver, syncmaster, syncworker, reserved...} )
const ( MinRecentFailuresForLog = 2 // Number of recent failures needed before a log file is shown. MaxRecentFailures = 100 // Maximum number of recent failures before the starter gives up. )
const ( ArangodConfFileName = "arangod.conf" ArangodJWTSecretFileName = "arangod.jwtsecret" ArangodJWTSecretFolderName = "jwt" ArangodJWTSecretActive = "-" )
const ( ServerTypeUnknown = "unknown" ServerTypeCoordinator = "coordinator" ServerTypeDBServer = "dbserver" ServerTypeDBServerNoResign = "dbserver_noresign" ServerTypeAgent = "agent" ServerTypeSingle = "single" ServerTypeResilientSingle = "resilientsingle" ServerTypeSyncMaster = "syncmaster" ServerTypeSyncWorker = "syncworker" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessType ¶
type ProcessType string
ProcessType specifies the types of process (the starter can work with).
const ( ProcessTypeArangod ProcessType = "arangod" ProcessTypeArangoSync ProcessType = "arangosync" )
func (ProcessType) CommandFileName ¶
func (s ProcessType) CommandFileName() string
CommandFileName returns the name of a file containing the full command for processes of this type.
func (ProcessType) LogFileName ¶
func (s ProcessType) LogFileName(suffix string) string
LogFileName returns the name of the log file used by this process
func (ProcessType) String ¶
func (s ProcessType) String() string
String returns a string representation of the given ProcessType.
type ServerType ¶
type ServerType string
ServerType specifies the types of database servers.
func AllServerTypes ¶
func AllServerTypes() []ServerType
func (ServerType) ExpectedServerRole ¶
func (s ServerType) ExpectedServerRole() (string, string)
ExpectedServerRole returns the expected `role` & `mode` value resulting from a request to `_admin/server/role`.
func (ServerType) GetName ¶
func (s ServerType) GetName() string
GetName returns readable name for the specific type of server.
func (ServerType) PortOffset ¶
func (s ServerType) PortOffset() int
PortOffset returns the offset from a peer base port for the given type of server.
func (ServerType) ProcessType ¶
func (s ServerType) ProcessType() ProcessType
ProcessType returns the type of process needed to run a server of given type.
func (ServerType) String ¶
func (s ServerType) String() string
String returns a string representation of the given ServerType.