MCPcopy
hub / github.com/perkeep/perkeep / handlerTypeWantsAuth

Function handlerTypeWantsAuth

pkg/serverinit/serverinit.go:393–401  ·  view source on GitHub ↗
(handlerType string)

Source from the content-addressed store, hash-verified

391}
392
393func handlerTypeWantsAuth(handlerType string) bool {
394 // TODO(bradfitz): ask the handler instead? This is a bit of a
395 // weird spot for this policy maybe?
396 switch handlerType {
397 case "ui", "search", "jsonsign", "sync", "status", "help", "importer":
398 return true
399 }
400 return false
401}
402
403// A Config is the wrapper around a Perkeep JSON configuration file.
404// Files on disk can be in either high-level or low-level format, but

Callers 1

setupHandlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected