Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoordBounds ¶
type DB ¶
type DB interface { AddVertices(ctx context.Context, vertices []Vertex, generation Generation) error AddEdges(ctx context.Context, edges []Edge, generation Generation) error AddArcFlags(ctx context.Context, edgeIds []EdgeId, generation Generation) error GetVertexIds(ctx context.Context, id RegionId, generation Generation) ([]VertexId, error) GetEdgesFrom(ctx context.Context, from []VertexId, generation Generation) (map[VertexId][]Edge, error) GetArcFlags(ctx context.Context, edgeIds []EdgeId, generation Generation) ([]ArcFlag, error) GetVertexCount(ctx context.Context, coordsBetween CoordBounds, generation Generation) (int64, error) GetVertexCountOnVerticalSegment(ctx context.Context, latitude MinMax, longtitude float64, generation Generation) (int64, error) GetVertexCountOnHorizontalSegment(ctx context.Context, latitude float64, longtitude MinMax, generation Generation) (int64, error) GetVertexRegion(ctx context.Context, id VertexId, generation Generation) (RegionId, error) GetEdgeToRegionMapping(ctx context.Context, regionId RegionId, generation Generation) (map[EdgeId]RegionId, error) GetCurrentGeneration(ctx context.Context) (Generation, error) GetNextGeneration(ctx context.Context) (Generation, error) GetActiveGeneration(ctx context.Context) (Generation, error) SetFlag(ctx context.Context, edgeIds []EdgeId, region RegionId, generation Generation) error SetRegion(ctx context.Context, coordsBetween CoordBounds, region RegionId, generation Generation) (rowsAffected int64, err error) SetCurrentGeneration(ctx context.Context, generation Generation) error SetNextGeneration(ctx context.Context, generation Generation) error SetActiveGeneration(ctx context.Context, generation Generation) error }
func ConnectToDefault ¶
type Generation ¶
type Generation = api.Generation
Click to show internal directories.
Click to hide internal directories.