client

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 7 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TopoReachbility

func TopoReachbility(topo map[string][]*common.Neighbor) int

TopoReachability calculate the max reachability of this net

Types

type StatisticsClient

type StatisticsClient struct {
	Server string
}

StatisticsClient statistics client

func NewStatisticsClient

func NewStatisticsClient(serverAddr string) *StatisticsClient

NewStatisticsClient create a statistics client instance

func (*StatisticsClient) GetAllReportMessage

func (this *StatisticsClient) GetAllReportMessage() (map[string]map[string]*common.ReportMsg, error)

GetReportMessage get report message from server

func (*StatisticsClient) GetReportMessage

func (this *StatisticsClient) GetReportMessage(msgId string) (map[string]*common.ReportMsg, error)

GetReportMessage get report message from server

func (*StatisticsClient) GetTopos

func (this *StatisticsClient) GetTopos() (map[string][]*common.Neighbor, error)

ReportNeighbors report local neighbor to server

func (*StatisticsClient) ReportMsg

func (this *StatisticsClient) ReportMsg(msgId string, msg *common.ReportMsg) error

ReportMsg report received/broadcast message to server

func (*StatisticsClient) ReportNeighbors

func (this *StatisticsClient) ReportNeighbors(localAddr string, neighbors []*common.Neighbor) error

ReportNeighbors report local neighbor to server

Jump to

Keyboard shortcuts

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