- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 141 for MUX (0.02 sec)
-
staging/src/k8s.io/apiserver/pkg/server/routes/profiling.go
*/ package routes import ( "net/http" "net/http/pprof" "k8s.io/apiserver/pkg/server/mux" ) // Profiling adds handlers for pprof under /debug/pprof. type Profiling struct{} // Install adds the Profiling webservice to the given mux. func (d Profiling) Install(c *mux.PathRecorderMux) { c.UnlistedHandleFunc("/debug/pprof", redirectTo("/debug/pprof/"))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 06 11:35:01 UTC 2018 - 1.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/mux/doc.go
See the License for the specific language governing permissions and limitations under the License. */ // Package mux contains abstractions for http multiplexing of APIs.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Feb 03 20:43:13 UTC 2019 - 695 bytes - Viewed (0) -
internal/grid/msg.go
OpDisconnectClientMux // OpDisconnectServerMux instructs a server to disconnect (cancel) a server mux OpDisconnectServerMux // OpMuxClientMsg contains a message to a client Mux OpMuxClientMsg // OpMuxServerMsg contains a message to a server Mux OpMuxServerMsg // OpUnblockSrvMux contains a message that a server mux is unblocked with one. // Only Stateful streams has flow control. OpUnblockSrvMux
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Nov 28 19:22:29 UTC 2023 - 7.3K bytes - Viewed (0) -
test/chan/doubleselect.go
c2 := make(chan int) c3 := make(chan int) c4 := make(chan int) done := make(chan bool) cmux := make(chan int) go sender(*iterations, c1, c2, c3, c4) go mux(cmux, c1, done) go mux(cmux, c2, done) go mux(cmux, c3, done) go mux(cmux, c4, done) go func() { <-done <-done <-done <-done close(cmux) }() // We keep the recver because it might catch more bugs in the future.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 24 01:34:14 UTC 2017 - 2K bytes - Viewed (0) -
tests/prepared_stmt_test.go
if !ok { t.Fatalf("should assign PreparedStatement Manager back to database when using PrepareStmt mode") } pdb.Mux.Lock() if len(pdb.Stmts) == 0 { pdb.Mux.Unlock() t.Fatalf("prepared stmt can not be empty") } pdb.Mux.Unlock() pdb.Reset() pdb.Mux.Lock() defer pdb.Mux.Unlock() if len(pdb.Stmts) != 0 { t.Fatalf("prepared stmt should be empty") }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Mar 21 07:55:43 UTC 2024 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder.go
limitations under the License. */ package mux import ( "fmt" "net/http" "runtime/debug" "sort" "strings" "sync" "sync/atomic" "k8s.io/klog/v2" utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachinery/pkg/util/sets" ) // PathRecorderMux wraps a mux object and records the registered exposedPaths. type PathRecorderMux struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 01:52:15 UTC 2024 - 8.5K bytes - Viewed (0) -
src/net/http/example_test.go
}) } func ExampleNotFoundHandler() { mux := http.NewServeMux() // Create sample handler to returns 404 mux.Handle("/resources", http.NotFoundHandler()) // Create sample handler that returns 200 mux.Handle("/resources/people/", newPeopleHandler()) log.Fatal(http.ListenAndServe(":8080", mux))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 19 16:12:45 UTC 2021 - 5.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/content_type_test.go
func noopHandler() http.HandlerFunc { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { // noop }) } func TestWithContentType(t *testing.T) { mux := http.NewServeMux() mux.Handle("/text", WithContentType(noopHandler(), "text/plain")) mux.Handle("/json", WithContentType(noopHandler(), "application/json")) tests := []struct { description string path string expectedMimeType string }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 04 23:35:32 UTC 2019 - 1.8K bytes - Viewed (0) -
src/embed/example_test.go
package embed_test import ( "embed" "log" "net/http" ) //go:embed internal/embedtest/testdata/*.txt var content embed.FS func Example() { mux := http.NewServeMux() mux.Handle("/", http.FileServer(http.FS(content))) err := http.ListenAndServe(":8080", mux) if err != nil { log.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 16:35:13 UTC 2023 - 464 bytes - Viewed (0) -
pilot/pkg/bootstrap/monitoring.go
func init() { pilotVersion.With(versionTag.Value(version.Info.String())).Record(1) } func addMonitor(mux *http.ServeMux) error { exporter, err := monitoring.RegisterPrometheusExporter(nil, nil) if err != nil { return fmt.Errorf("could not set up prometheus exporter: %v", err) } mux.Handle(metricsPath, metricsMiddleware(exporter)) mux.HandleFunc(versionPath, func(out http.ResponseWriter, req *http.Request) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 01 14:41:40 UTC 2024 - 4K bytes - Viewed (0)