Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for durationConverter (0.25 sec)

  1. 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