MCPcopy Create free account
hub / github.com/chainreactors/spray / loadEmbeddedConfig

Function loadEmbeddedConfig

pkg/templates.go:34–51  ·  view source on GitHub ↗
(typ string)

Source from the content-addressed store, hash-verified

32
33
34func loadEmbeddedConfig(typ string) []byte {
35 if typ == "spray_rule" {
36 return encode.MustDeflateDeCompress(sprayRuleData)
37 }else if typ == "spray_common" {
38 return encode.MustDeflateDeCompress(sprayCommonData)
39 }else if typ == "spray_dict" {
40 return encode.MustDeflateDeCompress(sprayDictData)
41 }else if typ == "extract" {
42 return encode.MustDeflateDeCompress(extractData)
43 }else if typ == "proton_rules" {
44 return encode.MustDeflateDeCompress(protonRulesData)
45 }else if typ == "found_keys" {
46 return encode.MustDeflateDeCompress(foundKeysData)
47 }else if typ == "port" {
48 return encode.MustDeflateDeCompress(portData)
49 }
50 return nil
51}

Callers 2

LoadEmbeddedConfigFunction · 0.70
LoadConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected