code: func DurationStrToSecondsInt(s string) *int {
  	if s == "" {
  		return nil
  	}
  	duration, err := time.ParseDuration(s)
  	if err != nil {
  		logrus.Errorf("Failed to parse duration:%v", s)
  		return nil
  	}
  	r := (int)(duration.Seconds())
  	return &r
  
  }
docs: // DurationStrToSecondsInt converts duration string to *int in seconds