Skip to content

Sports Service#5

Open
ashleyjlive wants to merge 14 commits into
feat-get_race-requestfrom
feat-sports-service
Open

Sports Service#5
ashleyjlive wants to merge 14 commits into
feat-get_race-requestfrom
feat-sports-service

Conversation

@ashleyjlive

Copy link
Copy Markdown
Owner

Description

Implement a sport service which interfaces with the API system to provide list requests (with optional filtering).

api/main.go:
• Added endpoint definition for sports events requests.
• Registered sports handler to the newly created gRPC endpoint.
api/proto/sports:
• Defined sports service ListEvents request.
sports:
• Created sports service implementation which allows for retrieval of sporting events via front facing API handler.
• Updated base docs to include sports service.
• Allow for database path to be set upon instantiation of process - else defaults to home directory.
• Added test suite to test events functionality.
db.go, events.go:
• Added initialisation, insertion and clear functions for use in test suite.
• Update README.md with building, command line and testing sections.
• Switch testing header with directory structure to improve flow.
• Provide example of API server interaction.
• Document seed command line parameter.
main.go, events.go:
• Allow for seeding of database on startup.
events_test.go:
• Update calls to `eventsRepo.Init` to disable seeding.
• Updated README.me with changes to events interface.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant