Search Options

Results per page
Sort
Preferred Languages
Advance

Results 431 - 440 of 589 for CONST (0.07 sec)

  1. internal/dsync/drwmutex_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package dsync
    
    import (
    	"context"
    	"fmt"
    	"runtime"
    	"sync/atomic"
    	"testing"
    	"time"
    )
    
    const (
    	id     = "1234-5678"
    	source = "main.go"
    )
    
    func testSimpleWriteLock(t *testing.T, duration time.Duration) (locked bool) {
    	drwm1 := NewDRWMutex(ds, "simplelock")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  2. cmd/iam.go

    // Types of users configured in the server.
    const (
    	// This mode uses the internal users system in MinIO.
    	MinIOUsersSysType UsersSysType = "MinIOUsersSys"
    
    	// This mode uses users and groups from a configured LDAP
    	// server.
    	LDAPUsersSysType UsersSysType = "LDAPUsersSys"
    )
    
    const (
    	statusEnabled  = "enabled"
    	statusDisabled = "disabled"
    )
    
    const (
    	embeddedPolicyType  = "embedded-policy"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  3. internal/hash/checksum.go

    	logger.LogIf(ctx, "hash", err)
    }
    
    // MinIOMultipartChecksum is as metadata on multipart uploads to indicate checksum type.
    const MinIOMultipartChecksum = "x-minio-multipart-checksum"
    
    // ChecksumType contains information about the checksum type.
    type ChecksumType uint32
    
    const (
    
    	// ChecksumTrailing indicates the checksum will be sent in the trailing header.
    	// Another checksum type will be set.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            writeResponse(pushedStream, request, pushPromise.response)
          }
        }
      }
    
      @ExperimentalOkHttpApi
      companion object {
        private const val CLIENT_AUTH_NONE = 0
        private const val CLIENT_AUTH_REQUESTED = 1
        private const val CLIENT_AUTH_REQUIRED = 2
    
        private val UNTRUSTED_TRUST_MANAGER =
          object : X509TrustManager {
            @Throws(CertificateException::class)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  5. cmd/last-minute.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    //go:generate msgp -file=$GOFILE -unexported
    
    package cmd
    
    import (
    	"time"
    
    	"github.com/minio/madmin-go/v3"
    )
    
    const (
    	sizeLessThan1KiB = iota
    	sizeLessThan1MiB
    	sizeLessThan10MiB
    	sizeLessThan100MiB
    	sizeLessThan1GiB
    	sizeGreaterThan1GiB
    	// Add new entries here
    
    	sizeLastElemMarker
    )
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 05 17:40:45 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. cmd/lock-rest-server.go

    		dst.Code = dsync.RespLockConflict
    	case errLockNotFound:
    		dst.Code = dsync.RespLockNotFound
    	default:
    		dst.Code = dsync.RespErr
    		dst.Err = err.Error()
    	}
    	return dst, nil
    }
    
    const (
    	// Lock maintenance interval.
    	lockMaintenanceInterval = 1 * time.Minute
    
    	// Lock validity duration
    	lockValidityDuration = 1 * time.Minute
    )
    
    // lockMaintenance loops over all locks and discards locks
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. cmd/dummy-data-generator_test.go

    	if totalLength < 0 {
    		panic("Negative length passed to DummyDataGen!")
    	}
    	if skipOffset < 0 {
    		panic("Negative rotations are not allowed")
    	}
    
    	skipOffset %= int64(len(alphabets))
    	const multiply = 100
    	as := bytes.Repeat(alphabets, multiply)
    	b := as[skipOffset : skipOffset+int64(len(alphabets)*(multiply-1))]
    	return &DummyDataGen{
    		length: totalLength,
    		b:      b,
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 02 15:13:05 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/rule.go

    package lifecycle
    
    import (
    	"bytes"
    	"encoding/xml"
    )
    
    // Status represents lifecycle configuration status
    type Status string
    
    // Supported status types
    const (
    	Enabled  Status = "Enabled"
    	Disabled Status = "Disabled"
    )
    
    // Rule - a rule for lifecycle configuration.
    type Rule struct {
    	XMLName             xml.Name            `xml:"Rule"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt

            threadToCancel!!.interrupt()
          }
          latch.countDown()
        }.apply { start() }
        return latch
      }
    
      companion object {
        // The size of the socket buffers in bytes.
        private const val SOCKET_BUFFER_SIZE = 256 * 1024
      }
    }
    
    class CancelModelParamProvider : SimpleProvider() {
      override fun arguments() =
        CancelTest.CancelMode.values().flatMap { c ->
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. internal/s3select/json/preader.go

    	dst = append(dst, in...)
    	return dst, err
    }
    
    // jsonSplitSize is the size of each block.
    // Blocks will read this much and find the first following newline.
    // 128KB appears to be a very reasonable default.
    const jsonSplitSize = 128 << 10
    
    // startReaders will read the header if needed and spin up a parser
    // and a number of workers based on GOMAXPROCS.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top