MCPcopy Index your code
hub / github.com/keploy/keploy / InitIntegrations

Method InitIntegrations

pkg/agent/proxy/proxy.go:987–1000  ·  view source on GitHub ↗
(_ context.Context)

Source from the content-addressed store, hash-verified

985}
986
987func (p *Proxy) InitIntegrations(_ context.Context) error {
988 // initialize the integrations
989 for parserType, parser := range integrations.Registered {
990 logger := p.logger.With(zap.Any("Type", parserType))
991 prs := parser.Initializer(logger)
992 p.Integrations[parserType] = prs
993 logger.Debug("initialized the parser integration", zap.String("ParserType", string(parserType)))
994 p.integrationsPriority = append(p.integrationsPriority, ParserPriority{Priority: parser.Priority, ParserType: parserType})
995 }
996 sort.Slice(p.integrationsPriority, func(i, j int) bool {
997 return p.integrationsPriority[i].Priority > p.integrationsPriority[j].Priority
998 })
999 return nil
1000}
1001
1002// In proxy.go
1003func (p *Proxy) StartProxy(ctx context.Context, opts agent.ProxyOptions) error {

Callers 1

StartProxyMethod · 0.95

Implementers 1

Proxypkg/agent/proxy/proxy.go

Calls 3

WithMethod · 0.80
DebugMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected