Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DurationToMicros (0.38 sec)

  1. pkg/test/echo/common/util.go

    // MicrosToDuration converts the given microseconds to a time.Duration.
    func MicrosToDuration(micros int64) time.Duration {
    	return time.Duration(micros) * time.Microsecond
    }
    
    // DurationToMicros converts the given duration to microseconds.
    func DurationToMicros(d time.Duration) int64 {
    	return int64(d / time.Microsecond)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 01 01:05:45 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  2. pkg/test/framework/components/echo/common/call.go

    		Url:                     getTargetURL(opts),
    		Count:                   int32(opts.Count),
    		Headers:                 common.HTTPToProtoHeaders(opts.HTTP.Headers),
    		TimeoutMicros:           common.DurationToMicros(opts.Timeout),
    		Message:                 opts.Message,
    		ExpectedResponse:        opts.TCP.ExpectedResponse,
    		Http2:                   opts.HTTP.HTTP2,
    		Http3:                   opts.HTTP.HTTP3,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  3. pkg/test/echo/cmd/client/main.go

    	}
    	return u
    }
    
    func getRequest(url string) (*proto.ForwardEchoRequest, error) {
    	request := &proto.ForwardEchoRequest{
    		Url:                     defaultScheme(url),
    		TimeoutMicros:           common.DurationToMicros(timeout),
    		Count:                   int32(count),
    		Qps:                     int32(qps),
    		Message:                 msg,
    		Http2:                   http2,
    		Http3:                   http3,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  4. pkg/test/echo/server/endpoint/grpc.go

    		if err != nil {
    			return err
    		}
    		req := &proto.ForwardEchoRequest{
    			Url:           "grpc://" + listener.Addr().String(),
    			Message:       "hello",
    			TimeoutMicros: common.DurationToMicros(readyInterval),
    		}
    		if s.Port.XDSReadinessTLS {
    			// TODO: using the servers key/cert is not always valid, it may not be allowed to make requests to itself
    			req.CertFile = cert
    			req.KeyFile = key
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 25 17:30:37 UTC 2023
    - 8.7K bytes
    - Viewed (0)
Back to top