MCPcopy Index your code
hub / github.com/InferCore/InferCore / effectiveInfercoreAPIKey

Method effectiveInfercoreAPIKey

internal/server/server.go:165–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163}
164
165func (s *Server) effectiveInfercoreAPIKey() string {
166 if k := strings.TrimSpace(os.Getenv("INFERCORE_API_KEY")); k != "" {
167 return k
168 }
169 return strings.TrimSpace(s.cfg.Server.InfercoreAPIKey)
170}
171
172func (s *Server) withOptionalInfercoreAuth(next http.Handler) http.Handler {
173 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected