MCPcopy Create free account
hub / github.com/apache/trafficserver / TSPluginInit

Function TSPluginInit

plugins/experimental/magick/magick.cc:632–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630};
631
632void
633TSPluginInit(int argc, const char **argv)
634{
635 if (!RegisterGlobalPlugin("magick", "netlify", "daniel.morilha@netlify.com")) {
636 return;
637 }
638
639 const char *key = nullptr;
640
641 if (1 < argc) {
642 // first argument is the path to the public key used to verify query parameter magick's content.
643 key = argv[1];
644 }
645
646 plugin = new GlobalHookPlugin(key);
647}

Callers

nothing calls this directly

Calls 1

RegisterGlobalPluginFunction · 0.85

Tested by

no test coverage detected