- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 68 for MUX (0.02 sec)
-
pkg/kubelet/config/mux.go
sources map[string]chan interface{} } // newMux creates a new mux that can merge changes from multiple sources. func newMux(merger merger) *mux { mux := &mux{ sources: make(map[string]chan interface{}), merger: merger, } return mux } // ChannelWithContext returns a channel where a configuration source // can send updates of new configurations. Multiple calls with the same
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jan 30 20:02:23 UTC 2024 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/watch/mux.go
Andrew Stoycos <******@****.***> 1652456576 -0400
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 16 15:26:36 UTC 2022 - 9.4K bytes - Viewed (0) -
pkg/ctrlz/fw/context.go
HTMLRouter() *mux.Router // JSONRouter is used to control HTML traffic delivered to this topic. JSONRouter() *mux.Router // Layout is the template used as the primary layout for the topic's HTML content. Layout() *template.Template } type context struct { htmlRouter *mux.Router jsonRouter *mux.Router layout *template.Template }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 2K bytes - Viewed (0) -
src/net/http/servemux121.go
} // Formerly ServeMux.Handle. func (mux *serveMux121) handle(pattern string, handler Handler) { mux.mu.Lock() defer mux.mu.Unlock() if pattern == "" { panic("http: invalid pattern") } if handler == nil { panic("http: nil handler") } if _, exist := mux.m[pattern]; exist { panic("http: multiple registrations for " + pattern) } if mux.m == nil { mux.m = make(map[string]muxEntry) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:40:38 UTC 2024 - 5.8K bytes - Viewed (0) -
pkg/kubelet/status/state/state_checkpoint.go
sc.mux.RLock() defer sc.mux.RUnlock() return sc.cache.GetContainerResourceAllocation(podUID, containerName) } // GetPodResourceAllocation returns current pod resource allocation func (sc *stateCheckpoint) GetPodResourceAllocation() PodResourceAllocation { sc.mux.RLock() defer sc.mux.RUnlock() return sc.cache.GetPodResourceAllocation() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 13 00:16:44 UTC 2023 - 6.9K bytes - Viewed (0) -
prepare_stmt.go
} return nil, ErrInvalidDB } func (db *PreparedStmtDB) Close() { db.Mux.Lock() defer db.Mux.Unlock() for _, query := range db.PreparedSQL { if stmt, ok := db.Stmts[query]; ok { delete(db.Stmts, query) go stmt.Close() } } } func (sdb *PreparedStmtDB) Reset() { sdb.Mux.Lock() defer sdb.Mux.Unlock() for _, stmt := range sdb.Stmts { go stmt.Close() }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Mar 28 08:47:39 UTC 2024 - 6.4K bytes - Viewed (0) -
src/net/http/server_test.go
fmt.Fprintf(w, "OK") } mux := NewServeMux() mux.HandleFunc("/", fn) mux.HandleFunc("/index", fn) mux.HandleFunc("/home", fn) mux.HandleFunc("/about", fn) mux.HandleFunc("/contact", fn) mux.HandleFunc("/robots.txt", fn) mux.HandleFunc("/products/", fn) mux.HandleFunc("/products/1", fn) mux.HandleFunc("/products/2", fn) mux.HandleFunc("/products/3", fn) mux.HandleFunc("/products/3/image.jpg", fn)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 13 13:54:22 UTC 2024 - 7.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/routes/debugsocket.go
s.mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline) s.mux.HandleFunc("/debug/pprof/profile", pprof.Profile) s.mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol) s.mux.HandleFunc("/debug/pprof/trace", pprof.Trace) } // InstallDebugFlag installs debug flag endpoints in the socket. func (s *DebugSocket) InstallDebugFlag(flag string, handler func(http.ResponseWriter, *http.Request)) { f := DebugFlags{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Dec 08 00:33:16 UTC 2022 - 2.2K bytes - Viewed (0) -
pkg/controller/util/selectors/bimultimap.go
func (m *BiMultimap) Exists(key Key) bool { m.mux.RLock() defer m.mux.RUnlock() _, exists := m.labeledObjects[key] return exists } // PutSelector inserts or updates an object with a selector. Associations // are created or updated based on the selector. func (m *BiMultimap) PutSelector(key Key, selector pkglabels.Selector) { m.mux.Lock() defer m.mux.Unlock() selectorKey := selectorKey{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 21:41:32 UTC 2023 - 9.6K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/instrumented_services_test.go
assert.NoError(t, err) defer l.Close() prometheusURL := "http://" + l.Addr().String() + "/metrics" mux := http.NewServeMux() handler := compbasemetrics.HandlerFor(gather, compbasemetrics.HandlerOpts{}) mux.Handle("/metrics", handler) server := &http.Server{ Addr: l.Addr().String(), Handler: mux, } go func() { server.Serve(l) }() recordOperation("create_container", time.Now())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 05 13:02:13 UTC 2022 - 3.1K bytes - Viewed (0)