Documentation ¶
Index ¶
- func BeginFind(req BeginReq) error
- func BeginHandler(c *gin.Context)
- func BeginUpdateDelayHandler(c *gin.Context)
- func ChoseNextNode(NeighborList map[string]conf.Neighbor, path string) (string, error)
- func GetNeighborDelay(req GetNeighborDelayReq) error
- func GetNeighborDelayHandler(c *gin.Context)
- func HandleRequest(req RequestReq) error
- func HandleUpdate(req UpdateTauReq) error
- func HandleUpdateData(req UpdateDataReq) error
- func LogConfig(c *gin.Context)
- func RecordAntResult(req DestNodeReq) error
- func RecordPathResult(content string) error
- func RequestHandler(c *gin.Context)
- func ResultHandler(c *gin.Context)
- func SourceNodeHandleResponse(req DestNodeReq) error
- func StartWebService(c *conf.Conf)
- func TestSt(c *gin.Context)
- func UpdateData(destNum string)
- func UpdateDataHandler(c *gin.Context)
- func UpdateHandler(c *gin.Context)
- func XOR(data, delta string) string
- type BeginReq
- type DestNodeReq
- type GetDelayResp
- type GetNeighborDelayReq
- type RequestReq
- type TestReq
- type UpdateDataReq
- type UpdateTauReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginHandler ¶
func BeginUpdateDelayHandler ¶
func ChoseNextNode ¶
func GetNeighborDelay ¶
func GetNeighborDelay(req GetNeighborDelayReq) error
func GetNeighborDelayHandler ¶
func RequestHandler ¶
func ResultHandler ¶
func SourceNodeHandleResponse ¶
func SourceNodeHandleResponse(req DestNodeReq) error
func StartWebService ¶
Types ¶
type DestNodeReq ¶
type DestNodeReq struct { SourceURL string `json:"source_url"` DestNumber string `json:"dest_number"` Round int `json:"round"` AntNumber int `json:"ant_number"` IsLastAnt bool `json:"is_last_ant"` IsLastRound bool `json:"is_last_round"` Path string `json:"path"` PathDelay float64 `json:"path_delay"` PathDelayDetail string `json:"path_delay_detail"` IsSuccess bool `json:"is_success"` }
type GetDelayResp ¶
type GetNeighborDelayReq ¶
type RequestReq ¶
type RequestReq struct { SourceURL string `json:"source_url"` DestNumber string `json:"dest_number"` Round int `json:"round"` AntNumber int `json:"ant_number"` IsLastAnt bool `json:"is_last_ant"` IsLastRound bool `json:"is_last_round"` Data string `json:"data"` TimeStampNano int64 `json:"time_stamp_nano"` Path string `json:"path"` PathDelay float64 `json:"path_delay"` PathDelayDetail string `json:"path_delay_detail"` }
type UpdateDataReq ¶
type UpdateDataReq struct {
DataDelta string `json:"data_delta"`
}
Click to show internal directories.
Click to hide internal directories.