Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DEFAULT_TIMEOUT = 3 UDP_DIAGRAM_VERSION = 1 )
Functions ¶
This section is empty.
Types ¶
type CallbackParams ¶
func (CallbackParams) GetData ¶
func (c CallbackParams) GetData() []byte
func (CallbackParams) GetDiagram ¶
func (c CallbackParams) GetDiagram() IDiagram
func (CallbackParams) GetRemoteAddr ¶
func (c CallbackParams) GetRemoteAddr() net.Addr
type ICallbackParams ¶
type IDashboardProvider ¶
type INodeProvider ¶
type INodeProvider interface { PeekNodes() []*node.RemoteNode // Get nodes by distance limited with <param>max</param> GetNearbyNodes(max int) []*node.RemoteNode GetLocalNode() *node.LocalNode Start() }
type ISyncProvider ¶
type NetworkDiagram ¶
type NetworkDiagram struct { ID string NodeID string Timestamp int64 DCategory string DType string Version int }
func (NetworkDiagram) GetDCategory ¶
func (d NetworkDiagram) GetDCategory() string
func (NetworkDiagram) GetDType ¶
func (d NetworkDiagram) GetDType() string
func (NetworkDiagram) GetID ¶
func (d NetworkDiagram) GetID() string
func (NetworkDiagram) GetNodeID ¶
func (d NetworkDiagram) GetNodeID() string
func (NetworkDiagram) GetTimestamp ¶
func (d NetworkDiagram) GetTimestamp() int64
func (NetworkDiagram) GetVersion ¶
func (d NetworkDiagram) GetVersion() int
type SyncStrategy ¶
type SyncStrategy int
const ( SYNC_STRATEGY_CLOSER SyncStrategy = iota SYNC_STRATEGY_ALL )
type TCPDiagram ¶
type TCPDiagram struct {
NetworkDiagram
}
func NewTCPDiagram ¶
func NewTCPDiagram() *TCPDiagram
type UDPCallbackParams ¶
type UDPCallbackParams struct {
CallbackParams
}
func (UDPCallbackParams) GetUDPDiagram ¶
func (u UDPCallbackParams) GetUDPDiagram() UDPDiagram
func (UDPCallbackParams) GetUDPRemoteAddr ¶
func (u UDPCallbackParams) GetUDPRemoteAddr() *net.UDPAddr
type UDPDiagram ¶
type UDPDiagram struct { NetworkDiagram Expire int64 LocalAddr string LocalPort int }
Click to show internal directories.
Click to hide internal directories.