handler

package
v0.0.0-...-ff36db3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GossNode = []Node{}

GossNode 节点信息.

Functions

func NewAdmin

func NewAdmin()

func RemoveNode

func RemoveNode(n *MasterService, ip string)

RemoveNode 移除某一个切片.

Types

type AdminService

type AdminService struct {
	WebPort string
}

func (*AdminService) Start

func (a *AdminService) Start()

Start .

type MasterService

type MasterService struct {
	Conn map[string]net.Conn
	Auth map[string]bool
	Port string
}

func NewMaster

func NewMaster() *MasterService

NewMaster .

func (*MasterService) Start

func (m *MasterService) Start()

Start.

type Node

type Node struct {
	Types    packet.NodeTypes
	IP       string
	SourceIP string //所属ip.
	CreateAt string
	Name     string
	CpuNum   string
	MemSize  string
}

func GetApiList

func GetApiList() []Node

获取所有的api节点.

func GetStorageList

func GetStorageList() []Node

GetStoreList 获取所有的存储节点.

type NodeParams

type NodeParams struct {
	Conn  net.Conn
	Types packet.NodeTypes
}

Jump to

Keyboard shortcuts

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