Documentation
¶
Index ¶
- Constants
- type AddEdgesRequest
- type AddEdgesResponse
- type AddVerticesRequest
- type AddVerticesResponse
- type Edge
- type EdgeId
- type EdgeLength
- type Generation
- type GetGenerationResponse
- type HealthzResponse
- type RecalculateDsResponse
- type ShortestPathRequest
- type ShortestPathResponse
- type Vertex
- type VertexId
Constants ¶
View Source
const AddEdgesUrl = "/add_edges"
View Source
const AddVerticesUrl = "/add_vertices"
View Source
const GetGenerationUrl = "/get_generation"
View Source
const HealthzUrl = "/healthz"
View Source
const RecalculateDsURL = "/recalculate_ds"
View Source
const ShortestPathUrl = "/shortest_path"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddEdgesRequest ¶
type AddEdgesRequest struct {
Edges []Edge `json:"edges"`
}
type AddEdgesResponse ¶
type AddEdgesResponse struct { }
type AddVerticesRequest ¶
type AddVerticesRequest struct {
Vertices []Vertex `json:"vertices"`
}
type AddVerticesResponse ¶
type AddVerticesResponse struct { }
type Edge ¶
type Edge struct { From VertexId `json:"from"` To VertexId `json:"to"` Length EdgeLength `json:"length"` Id EdgeId `json:"flag_id" gorm:"primarykey"` }
type EdgeLength ¶
type EdgeLength = float64
type Generation ¶
type Generation = uint16
type GetGenerationResponse ¶
type GetGenerationResponse struct {
Generation Generation `json:"generation"`
}
type HealthzResponse ¶
type HealthzResponse struct { }
type RecalculateDsResponse ¶
type RecalculateDsResponse struct { }
type ShortestPathRequest ¶
type ShortestPathResponse ¶
Click to show internal directories.
Click to hide internal directories.