A microservice in Go that integrates with the Slack API to deliver meeting-related information.
.
├── .env # Environment configuration file
├── meeting.go # business logic for the application
├── api/
│ ├── api.go # The API server and routes, integrates with the MeetingService to handle requests
├── cmd/meeting-service/
│ ├── main.go # Initialization file and graceful shutdown
└── slack/
└── slack.json # Provides functionality to send messages to Slack via a client
└── mockslack/
└── mock_slack.json # Mock implementation of the SlackClientInterface, generated by mockgen for testing
Run locally:
go run ./cmd/meeting-service/main.go
CURL example:
curl -X POST http://localhost:8080/send-meeting-info \
-H "Content-Type: application/json" \
-d '{"meetingSummary": "Weekly Update", "highlights": ["Discussed project timeline", "Budget adjustments"], "channel": "general"}'