Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for tears (0.17 sec)

  1. internal/bucket/object/lock/lock.go

    		}
    	} else if *retention.Years == 0 {
    		return fmt.Errorf("Default retention period must be a positive integer value for 'Years'")
    	} else if *retention.Years > maximumRetentionYears {
    		return fmt.Errorf("Default retention period too large for 'Years' %d", *retention.Years)
    	}
    
    	*dr = DefaultRetention(retention)
    
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  2. internal/bucket/object/lock/lock_test.go

    			value:       DefaultRetention{Mode: RetGovernance},
    			expectedErr: fmt.Errorf("either Days or Years must be specified"),
    			expectErr:   true,
    		},
    		{
    			value:       DefaultRetention{Mode: RetGovernance, Days: &days},
    			expectedErr: nil,
    			expectErr:   false,
    		},
    		{
    			value:       DefaultRetention{Mode: RetGovernance, Years: &years},
    			expectedErr: nil,
    			expectErr:   false,
    		},
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  3. tests/associations_has_many_test.go

    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	// Count
    	AssertAssociationCount(t, users, "Team", 6, "")
    
    	// Find
    	var teams []User
    	if DB.Model(&users).Association("Team").Find(&teams); len(teams) != 6 {
    		t.Errorf("teams count should be %v, but got %v", 6, len(teams))
    	}
    
    	// Append
    	DB.Model(&users).Association("Team").Append(
    		&User{Name: "pet-slice-append-1"},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 15.6K bytes
    - Viewed (0)
  4. tests/associations_many2many_test.go

    	}
    
    	DB.Create(&users)
    
    	// Count
    	AssertAssociationCount(t, users, "Team", 6, "")
    
    	// Find
    	var teams []User
    	if DB.Model(&users).Association("Team").Find(&teams); len(teams) != 6 {
    		t.Errorf("teams count should be %v, but got %v", 6, len(teams))
    	}
    
    	// Append
    	teams1 := []User{*GetUser("friend-append-1", Config{})}
    	teams2 := []User{}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 13.2K bytes
    - Viewed (0)
  5. docs/en/docs/alternatives.md

    ## Intro
    
    **FastAPI** wouldn't exist if not for the previous work of others.
    
    There have been many tools created before that have helped inspire its creation.
    
    I have been avoiding the creation of a new framework for several years. First I tried to solve all the features covered by **FastAPI** using many different frameworks, plug-ins, and tools.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Cookie.kt

                year = matcher.group(1).toInt()
              }
            }
    
            pos = dateCharacterOffset(s, end + 1, limit, false)
          }
    
          // Convert two-digit years into four-digit years. 99 becomes 1999, 15 becomes 2015.
          if (year in 70..99) year += 1900
          if (year in 0..69) year += 2000
    
          // If any partial is omitted or out of range, return -1. The date is impossible. Note that leap
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  7. src/archive/zip/struct.go

    // See: https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-dosdatetimetofiletime
    func msDosTimeToTime(dosDate, dosTime uint16) time.Time {
    	return time.Date(
    		// date bits 0-4: day of month; 5-8: month; 9-15: years since 1980
    		int(dosDate>>9+1980),
    		time.Month(dosDate>>5&0xf),
    		int(dosDate&0x1f),
    
    		// time bits 0-4: second/2; 5-10: minute; 11-15: hour
    		int(dosTime>>11),
    		int(dosTime>>5&0x3f),
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

          fileToClose?.closeQuietly()
        }
      }
    
      companion object {
        // TODO(jwilson): what to do about timeouts? They could be different and unfortunately when any
        //     timeout is hit we like to tear down the whole stream.
    
        private const val SOURCE_UPSTREAM = 1
        private const val SOURCE_FILE = 2
    
        @JvmField val PREFIX_CLEAN = "OkHttp cache v1\n".encodeUtf8()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  9. doc/godebug.md

    A GODEBUG setting may not be added if doing so is infeasible,
    but that should be extremely rare.
    
    GODEBUG settings added for compatibility will be maintained
    for a minimum of two years (four Go releases).
    Some, such as `http2client` and `http2server`,
    will be maintained much longer, even indefinitely.
    
    When possible, each GODEBUG setting has an associated
    [runtime/metrics](/pkg/runtime/metrics/) counter
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/eventbus/EventBus.java

    /**
     * Dispatches events to listeners, and provides ways for listeners to register themselves.
     *
     * <h2>Avoid EventBus</h2>
     *
     * <p><b>We recommend against using EventBus.</b> It was designed many years ago, and newer
     * libraries offer better ways to decouple components and react to events.
     *
     * <p>To decouple components, we recommend a dependency-injection framework. For Android code, most
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 25 16:37:57 GMT 2021
    - 12.8K bytes
    - Viewed (0)
Back to top