MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / CreateGlobalStrategy

Method CreateGlobalStrategy

controller/strategy/iml.go:171–176  ·  view source on GitHub ↗
(ctx *gin.Context, driver string, input *strategy_dto.Create)

Source from the content-addressed store, hash-verified

169}
170
171func (i *imlStrategyController) CreateGlobalStrategy(ctx *gin.Context, driver string, input *strategy_dto.Create) error {
172 input.Driver = driver
173 input.Scope = strategy_dto.ToScope(strategy_dto.ScopeGlobal)
174
175 return i.strategyModule.Create(ctx, input)
176}
177
178func (i *imlStrategyController) PublishGlobalStrategy(ctx *gin.Context, driver string) error {
179 return i.strategyModule.Publish(ctx, driver, strategy_dto.ScopeGlobal, "")

Callers

nothing calls this directly

Calls 1

CreateMethod · 0.65

Tested by

no test coverage detected