cluster

package
v0.0.0-...-f9b9731 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DefaultRpcPort = 9999
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HostAddr

type HostAddr string

HostAddr is an address in host:port format

var LocalHostRpcAddr HostAddr

ThisHostRPCAddress contains address of the logrange instance

func GetHostAddr

func GetHostAddr(addr string, port int) HostAddr

GetHostAddr gets an address (IP or domain) and adds the port number to it

type HostId

type HostId uint16

HostId is a type which keeps a host identifier

var HostId16 HostId

HostId must be unique identifier in multi-host environment. The id could be used for generating some cross-cluster unique identifiers like chunk id etc. The value is assigned by data.Init() if it is not explicitly defined for the process when it is started

func ParseHostId

func ParseHostId(hid string) (HostId, error)

ParseHostId translates a string to HostId

func (HostId) String

func (h HostId) String() string

String returns string by its HostId value

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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