Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Router *mux.Router GeoData map[string]models.AreasDataResults // contains filtered or unexported fields }
API provides a struct to wrap the api around
type AreaStore ¶ added in v0.3.0
type AreaStore interface { Close(ctx context.Context) error Checker(context.Context, *healthcheck.CheckState) error GetArea(ctx context.Context, id string) (*models.Area, error) GetVersion(ctx context.Context, id string, versionID int) (*models.Area, error) GetAreas(ctx context.Context, offset, limit int) (*models.AreasResults, error) }
AreaStore represents all the required methods from mongo DB
Click to show internal directories.
Click to hide internal directories.