Skip to content

feat: proto-defined client interface#34

Merged
odsod merged 1 commit intomainfrom
odsod/push-owtstnwurmmq
Apr 14, 2026
Merged

feat: proto-defined client interface#34
odsod merged 1 commit intomainfrom
odsod/push-owtstnwurmmq

Conversation

@odsod
Copy link
Copy Markdown
Member

@odsod odsod commented Apr 14, 2026

Summary

  • Define MercedesBenzFleetApi proto service with 8 RPCs (vehicles, services, compatibility)
  • Define MercedesBenzVehicleSpecApi proto service with 3 RPCs (images, specification)
  • Add protoc-gen-connect-go plugin with simple mode
  • *Client implements both fleetv1connect.MercedesBenzFleetApiClient and vehiclespecv1connect.MercedesBenzVehicleSpecApiClient
  • Migrate all method signatures from Go request/response structs to proto types
  • Update CLI commands to use proto request builders
  • Upgrade to Go 1.26, golangci-lint v2 with --fix and GOFLAGS=-mod=mod

Test plan

  • ./tools/mage Lint — 0 issues across all modules
  • ./tools/mage Test — all tests pass
  • Interface assertions enforced at compile time

- define MercedesBenzFleetApi service with 8 RPCs (vehicles, services, compatibility)
- define MercedesBenzVehicleSpecApi service with 3 RPCs (images, specification)
- add protoc-gen-connect-go to buf.gen.yaml (simple mode) with GOFLAGS fix
- implement interface assertions in client.go for both services
- migrate all method signatures from Go structs to proto req/resp
- update CLI commands to use proto request builders
- upgrade to Go 1.26, golangci-lint v2 with --fix and GOFLAGS=-mod=mod
@odsod odsod force-pushed the odsod/push-owtstnwurmmq branch from 3e166ce to a3e0643 Compare April 14, 2026 15:55
@odsod odsod merged commit 2483f25 into main Apr 14, 2026
1 check passed
@odsod odsod deleted the odsod/push-owtstnwurmmq branch April 14, 2026 15:56
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