tiflow
tiflow copied to clipboard
What's the different between `tiflow/cdc/api` and `tiflow/pkg/api`?
Before asking a question, make sure you have
- [X] Searched existing Stack Overflow questions
- [X] Googled your question
- [X] Searched open and closed GitHub issues
- [X] Read the documentation
What is your question?
Seems that the two packages are used to implement some parts of TiCDC OpenAPI.
@asddongmen Can we merge the two packages?
@lonng,tiflow/cdc/api
provides the OpenAPI implementation, while tiflow/pkg/api
accompanied with a rest client is used to interacting with the OpenAPI. At present, tiflow/pkg/api
is mainly used by cli commands. In the future, it can be extracted to another standalone project such as 'tiflow-client-go'. What's your opinion? @asddongmen @sdojjy
@lonng,
tiflow/cdc/api
provides the OpenAPI implementation, whiletiflow/pkg/api
accompanied with a rest client is used to interacting with the OpenAPI. At present,tiflow/pkg/api
is mainly used by cli commands. In the future, it can be extracted to another standalone project such as 'tiflow-client-go'. What's your opinion? @asddongmen @sdojjy
Yes, I believe that we can merge these two packages in the near future.