Skip to content

Comments

feat(eventbridge): add EventBridge service implementation#216

Merged
sivchari merged 2 commits intomainfrom
feat/eventbridge-basic-implementation
Feb 13, 2026
Merged

feat(eventbridge): add EventBridge service implementation#216
sivchari merged 2 commits intomainfrom
feat/eventbridge-basic-implementation

Conversation

@sivchari
Copy link
Owner

Summary

Add basic EventBridge service implementation for Issue #26.

Changes

  • internal/service/eventbridge/service.go: Service registration with JSON 1.1 protocol
  • internal/service/eventbridge/types.go: Request/Response types for all APIs
  • internal/service/eventbridge/storage.go: In-memory storage with default event bus
  • internal/service/eventbridge/handlers.go: 12 API handlers with proper error handling
  • test/integration/eventbridge_test.go: Integration tests using AWS SDK v2

Implemented APIs

Event Bus Management

  • CreateEventBus
  • DeleteEventBus
  • DescribeEventBus
  • ListEventBuses

Rule Management

  • PutRule
  • DeleteRule
  • DescribeRule
  • ListRules

Target Management

  • PutTargets
  • RemoveTargets
  • ListTargetsByRule

Event Operations

  • PutEvents

Test Plan

  • Build passes
  • CI lint passes
  • Integration tests pass

Closes #26

Implement basic EventBridge service with the following APIs:
- Event Bus: CreateEventBus, DeleteEventBus, DescribeEventBus, ListEventBuses
- Rule: PutRule, DeleteRule, DescribeRule, ListRules
- Target: PutTargets, RemoveTargets, ListTargetsByRule
- Event: PutEvents

This implementation uses AWS JSON 1.1 protocol with X-Amz-Target header
dispatching and includes in-memory storage with default event bus.

Closes #26
- Add defaultEventBusName constant to avoid magic string
- Add nolint:gosec comments for int32 conversions
- Fix wsl errors for cuddled declarations
@github-actions
Copy link
Contributor

📊 Integration Test Coverage Report

Total Coverage: 64.7%

@sivchari sivchari marked this pull request as ready for review February 13, 2026 03:31
@sivchari sivchari merged commit 7768cfe into main Feb 13, 2026
3 checks passed
@sivchari sivchari deleted the feat/eventbridge-basic-implementation branch February 13, 2026 03:31
@github-actions github-actions bot mentioned this pull request Feb 13, 2026
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.

EventBridge: Service implementation

1 participant