Documentation
¶
Index ¶
- func TopoReachbility(topo map[string][]*common.Neighbor) int
- type StatisticsClient
- func (this *StatisticsClient) GetAllReportMessage() (map[string]map[string]*common.ReportMsg, error)
- func (this *StatisticsClient) GetReportMessage(msgId string) (map[string]*common.ReportMsg, error)
- func (this *StatisticsClient) GetTopos() (map[string][]*common.Neighbor, error)
- func (this *StatisticsClient) ReportMsg(msgId string, msg *common.ReportMsg) error
- func (this *StatisticsClient) ReportNeighbors(localAddr string, neighbors []*common.Neighbor) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.