Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sports Service #5

Open
wants to merge 14 commits into
base: feat-get_race-request
Choose a base branch
from
Open

Conversation

ashleyjlive
Copy link
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