MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / SynthesizeAuthFile

Function SynthesizeAuthFile

internal/watcher/synthesizer/file.go:64–66  ·  view source on GitHub ↗

SynthesizeAuthFile generates Auth entries for one auth JSON file payload. It shares exactly the same mapping behavior as FileSynthesizer.Synthesize.

(ctx *SynthesisContext, fullPath string, data []byte)

Source from the content-addressed store, hash-verified

62// SynthesizeAuthFile generates Auth entries for one auth JSON file payload.
63// It shares exactly the same mapping behavior as FileSynthesizer.Synthesize.
64func SynthesizeAuthFile(ctx *SynthesisContext, fullPath string, data []byte) []*coreauth.Auth {
65 return synthesizeFileAuths(ctx, fullPath, data)
66}
67
68func synthesizeFileAuths(ctx *SynthesisContext, fullPath string, data []byte) []*coreauth.Auth {
69 if ctx == nil || len(data) == 0 {

Calls 1

synthesizeFileAuthsFunction · 0.85