- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for NewServeMux (0.14 sec)
-
cni/pkg/monitoring/monitoring.go
"istio.io/istio/pkg/log" "istio.io/istio/pkg/monitoring" "istio.io/istio/pkg/network" ) func SetupMonitoring(port int, path string, stop <-chan struct{}) { if port <= 0 { return } mux := http.NewServeMux() var listener net.Listener var err error if listener, err = net.Listen("tcp", fmt.Sprintf(":%d", port)); err != nil { log.Errorf("unable to listen on socket: %v", err) return }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 09 07:54:01 UTC 2023 - 1.5K bytes - Viewed (0) -
cni/pkg/nodeagent/healthServer.go
) // StartHealthServer initializes and starts a web server that exposes liveness and readiness endpoints at port 8000. func StartHealthServer() (installReady *atomic.Value, watchReady *atomic.Value) { router := http.NewServeMux() installReady, watchReady = initRouter(router) go func() { _ = http.ListenAndServe(":"+constants.ReadinessPort, router) }() return }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Apr 15 01:29:35 UTC 2024 - 1.8K bytes - Viewed (0) -
cni/pkg/nodeagent/healthServer_test.go
package nodeagent import ( "net/http" "net/http/httptest" "testing" "istio.io/istio/cni/pkg/constants" "istio.io/istio/pkg/test/util/assert" ) func TestServer(t *testing.T) { router := http.NewServeMux() installReady, watchReady := initRouter(router) assert.Equal(t, installReady.Load(), false) assert.Equal(t, watchReady.Load(), false) server := httptest.NewServer(router) defer server.Close()
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 2K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher.go
} func startCniPluginServer(ctx context.Context, pluginSocket string, handlers K8sHandlers, dataplane MeshDataplane, ) *CniPluginServer { ctx, cancel := context.WithCancel(ctx) mux := http.NewServeMux() s := &CniPluginServer{ handlers: handlers, dataplane: dataplane, cniListenServer: &http.Server{ Handler: mux, }, cniListenServerCancel: cancel, sockAddress: pluginSocket,
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Jul 02 18:48:50 UTC 2024 - 6.7K bytes - Viewed (0) -
istioctl/pkg/admin/istiodconfig_test.go
switch request.Method { case http.MethodGet: _, _ = writer.Write([]byte(getResponse)) } } func setupHTTPServer() (*httptest.Server, *url.URL) { handler := http.NewServeMux() handler.HandleFunc("/scopej/ads", adsHandler) handler.HandleFunc("/scopej/resource", resourceHandler) server := httptest.NewServer(handler) url, _ := url.Parse(server.URL) return server, url }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 6.2K bytes - Viewed (0) -
cni/pkg/log/uds.go
Time time.Time `json:"time"` Msg string `json:"msg"` Arbitrary map[string]any `json:"-"` } func NewUDSLogger(level istiolog.Level) *UDSLogger { l := &UDSLogger{} mux := http.NewServeMux() mux.HandleFunc(constants.UDSLogPath, l.handleLog) loggingServer := &http.Server{ Handler: mux, } l.loggingServer = loggingServer pluginLog.SetOutputLevel(level) return l }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 28 19:12:54 UTC 2024 - 4.7K bytes - Viewed (0) -
api/go1.txt
pkg net/http, func NewFileTransport(FileSystem) RoundTripper pkg net/http, func NewRequest(string, string, io.Reader) (*Request, error) pkg net/http, func NewServeMux() *ServeMux pkg net/http, func NotFound(ResponseWriter, *Request) pkg net/http, func NotFoundHandler() Handler pkg net/http, func ParseHTTPVersion(string) (int, int, bool)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)