MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / init

Function init

gateway/apinto/project.go:23–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21var _ gateway.IProjectClient = &ProjectClient{}
22
23func 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
30func NewProjectClient(client admin_client.Client) *ProjectClient {
31 return &ProjectClient{client: client}

Callers

nothing calls this directly

Calls 2

SetMethod · 0.65

Tested by

no test coverage detected