types

package
v1.5.38 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerElectionPath = "server"
)

define ServerElectionPath to "server"

Variables

View Source
var (
	ErrorManagerNotRunning     = fmt.Errorf("manager is not running")
	ErrorInvalidIPV4           = fmt.Errorf("invalid ip v4")
	ErrorIPNotAllowed          = fmt.Errorf("ip not allowed")
	ErrorConcurrencyLimit      = fmt.Errorf("the task concurrency reaches the limits")
	ErrorGenerateTaskIDFailed  = fmt.Errorf("generate task id failed")
	ErrorTaskAlreadyTerminated = fmt.Errorf("task is already in terminated status")
	ErrorLeaderNoFound         = fmt.Errorf("leader no found")
)

Functions

This section is empty.

Types

type RoleChangeEvent

type RoleChangeEvent <-chan RoleType

RoleChangeEvent: Provides the master-change event notifications.

type RoleType

type RoleType string

RoleType: string of role

const (
	ServerMaster  RoleType = "master"
	ServerSlave   RoleType = "slave"
	ServerUnknown RoleType = "unknown"
)

define role strings

type ServerInfo

type ServerInfo struct {
	types.ServerInfo
}

func (*ServerInfo) GetURI

func (di *ServerInfo) GetURI() string

GetURI: return uri of server

Jump to

Keyboard shortcuts

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