types

package
v0.0.0-...-6ac6f58 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerElectionPath = "server"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleChangeEvent

type RoleChangeEvent <-chan RoleType

Provides the master-change event notifications.

type RoleType

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

type ServerInfo

type ServerInfo struct {
	types.ServerInfo
}

ServerInfo describe the server member info

func (*ServerInfo) GetURI

func (di *ServerInfo) GetURI() string

GetURI return the http target address

Jump to

Keyboard shortcuts

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