Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for durationConverter (0.12 sec)

  1. pkg/bootstrap/option/instance.go

    		return skipOption(name)
    	}
    	return newOption(name, value)
    }
    
    func newDurationOption(name Name, value *durationpb.Duration) *instance {
    	return newOptionOrSkipIfZero(name, value).withConvert(durationConverter(value))
    }
    
    func newTCPKeepaliveOption(name Name, value *networkingAPI.ConnectionPoolSettings_TCPSettings_TcpKeepalive) *instance {
    	return newOptionOrSkipIfZero(name, value).withConvert(keepaliveConverter(value))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  2. pkg/bootstrap/option/convert.go

    	}
    }
    
    func jsonConverter(d any) convertFunc {
    	return func(o *instance) (any, error) {
    		b, err := json.Marshal(d)
    		return string(b), err
    	}
    }
    
    func durationConverter(value *durationpb.Duration) convertFunc {
    	return func(*instance) (any, error) {
    		return value.AsDuration().String(), nil
    	}
    }
    
    // openCensusAgentContextConverter returns a converter that returns the list of
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 00:35:05 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top