Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ParseDuration (0.47 sec)

  1. src/time/format.go

    	"m":  uint64(Minute),
    	"h":  uint64(Hour),
    }
    
    // ParseDuration parses a duration string.
    // A duration string is a possibly signed sequence of
    // decimal numbers, each with optional fraction and a unit suffix,
    // such as "300ms", "-1.5h" or "2h45m".
    // Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
    func ParseDuration(s string) (Duration, error) {
    	// [-+]?([0-9]*(\.[0-9]*)?[a-z]+)+
    	orig := s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/listener_inbound.go

    	}
    	tcpProxy := &tcp.TcpProxy{
    		StatPrefix:       statPrefix,
    		ClusterSpecifier: &tcp.TcpProxy_Cluster{Cluster: fcc.clusterName},
    		IdleTimeout:      parseDuration(lb.node.Metadata.IdleTimeout),
    	}
    	tcpFilter := setAccessLogAndBuildTCPFilter(lb.push, lb.node, tcpProxy, istionetworking.ListenerClassSidecarInbound, fcc.policyService)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  3. pilot/pkg/config/kube/gateway/conversion.go

    			}
    		}
    	}
    
    	if r.Timeouts != nil {
    		if r.Timeouts.Request != nil {
    			request, _ := time.ParseDuration(string(*r.Timeouts.Request))
    			if request != 0 {
    				vs.Timeout = durationpb.New(request)
    			}
    		}
    		if r.Timeouts.BackendRequest != nil {
    			backendRequest, _ := time.ParseDuration(string(*r.Timeouts.BackendRequest))
    			if backendRequest != 0 {
    				timeout := durationpb.New(backendRequest)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  4. src/os/exec/exec_test.go

    	}
    	in.Close()
    
    	b := <-outc
    	if !bytes.Equal(b, []byte(msg)) {
    		t.Fatalf("read %q from stdout pipe; want %q", b, msg)
    	}
    }
    
    func cmdHang(args ...string) {
    	sleep, err := time.ParseDuration(args[0])
    	if err != nil {
    		panic(err)
    	}
    
    	fs := flag.NewFlagSet("hang", flag.ExitOnError)
    	exitOnInterrupt := fs.Bool("interrupt", false, "if true, commands should exit 0 on os.Interrupt")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  5. pkg/generated/openapi/zz_generated.openapi.go

    							Type:        []string{"string"},
    							Format:      "",
    						},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
  6. api/openapi-spec/swagger.json

              "type": "string"
            },
            "id": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3.1M bytes
    - Viewed (0)
Back to top