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 ¶
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 ¶
ParseHostId translates a string to HostId
Click to show internal directories.
Click to hide internal directories.