()
| 21 | var _ gateway.IProjectClient = &ProjectClient{} |
| 22 | |
| 23 | func init() { |
| 24 | driver.RegisterApiPublishHandler(func(ctx context.Context, client admin_client.Client, api *entity.Router, extends map[string]any) error { |
| 25 | return client.Set(ctx, api.ID, api) |
| 26 | |
| 27 | }) |
| 28 | } |
| 29 | |
| 30 | func NewProjectClient(client admin_client.Client) *ProjectClient { |
| 31 | return &ProjectClient{client: client} |
nothing calls this directly
no test coverage detected