common

package
v0.0.0-...-eeae653 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	// contains filtered or unexported fields
}

Node 全局Node的统一数据结构

func CreateNode

func CreateNode(info map[string]interface{}) (*Node, *error.Error)

CreateNode 创建一个Node实例化对象

func (*Node) GetIP

func (n *Node) GetIP() string

GetIP 反射

func (*Node) GetMasterAreaLocation

func (n *Node) GetMasterAreaLocation() int

GetMasterAreaLocation 反射

func (*Node) GetNodeID

func (n *Node) GetNodeID() string

GetNodeID 反射

func (*Node) GetServicePort

func (n *Node) GetServicePort() string

GetServicePort 反射

func (*Node) IsAreaMaster

func (n *Node) IsAreaMaster() bool

IsAreaMaster 反射

Jump to

Keyboard shortcuts

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