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

Method Online

gateway/apinto/project.go:38–52  ·  view source on GitHub ↗
(ctx context.Context, projects ...*gateway.ProjectRelease)

Source from the content-addressed store, hash-verified

36}
37
38func (p *ProjectClient) Online(ctx context.Context, projects ...*gateway.ProjectRelease) error {
39 err := p.client.Begin(ctx)
40 if err != nil {
41 return err
42 }
43 for _, project := range projects {
44 err = p.online(ctx, project)
45 if err != nil {
46 p.client.Rollback(ctx)
47 return err
48 }
49 }
50 p.client.Commit(ctx)
51 return nil
52}
53
54func (p *ProjectClient) online(ctx context.Context, project *gateway.ProjectRelease) error {
55 if project == nil {

Callers

nothing calls this directly

Calls 4

onlineMethod · 0.95
BeginMethod · 0.65
RollbackMethod · 0.65
CommitMethod · 0.65

Tested by

no test coverage detected