Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 541 - 550 of 1,053 for struct_ (0.05 seconds)

  1. src/archive/zip/example_test.go

    )
    
    func ExampleWriter() {
    	// Create a buffer to write our archive to.
    	buf := new(bytes.Buffer)
    
    	// Create a new zip archive.
    	w := zip.NewWriter(buf)
    
    	// Add some files to the archive.
    	var files = []struct {
    		Name, Body string
    	}{
    		{"readme.txt", "This archive contains some text files."},
    		{"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"},
    		{"todo.txt", "Get animal handling licence.\nWrite more examples."},
    	}
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Jan 27 00:22:03 GMT 2016
    - 2K bytes
    - Click Count (0)
  2. tests/test_strict_content_type_router_level.py

    from fastapi import APIRouter, FastAPI
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    router_lax = APIRouter(prefix="/lax", strict_content_type=False)
    router_strict = APIRouter(prefix="/strict", strict_content_type=True)
    router_default = APIRouter(prefix="/default")
    
    
    @router_lax.post("/items/")
    async def router_lax_post(data: dict):
        return data
    
    
    @router_strict.post("/items/")
    async def router_strict_post(data: dict):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Feb 23 17:45:20 GMT 2026
    - 1.7K bytes
    - Click Count (0)
  3. cmd/bucket-lifecycle-audit.go

    	lcEventSrc_s3HeadObject
    	lcEventSrc_s3GetObject
    	lcEventSrc_s3ListObjects
    	lcEventSrc_s3PutObject
    	lcEventSrc_s3CopyObject
    	lcEventSrc_s3CompleteMultipartUpload
    )
    
    //revive:enable:var-naming
    type lcAuditEvent struct {
    	lifecycle.Event
    	source lcEventSrc
    }
    
    func (lae lcAuditEvent) Tags() map[string]string {
    	event := lae.Event
    	src := lae.source
    	const (
    		ilmSrc                     = "ilm-src"
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  4. cmd/object-api-common.go

    // Global object layer mutex, used for safely updating object layer.
    var globalObjLayerMutex sync.RWMutex
    
    // Global object layer, only accessed by globalObjectAPI.
    var globalObjectAPI ObjectLayer
    
    type storageOpts struct {
    	cleanUp     bool
    	healthCheck bool
    }
    
    // Depending on the disk type network or local, initialize storage API.
    func newStorageAPI(endpoint Endpoint, opts storageOpts) (storage StorageAPI, err error) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 2.1K bytes
    - Click Count (0)
  5. internal/hash/checker.go

    package hash
    
    import (
    	"bytes"
    	"errors"
    	"hash"
    	"io"
    
    	"github.com/minio/minio/internal/ioutil"
    )
    
    // Checker allows to verify the checksum of a reader.
    type Checker struct {
    	c io.Closer
    	r io.Reader
    	h hash.Hash
    
    	want []byte
    }
    
    // NewChecker ensures that content with the specified length is read from rc.
    // Calling Close on this will close upstream.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Jan 20 14:49:07 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  6. src/cmd/asm/internal/asm/line_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package asm
    
    import (
    	"cmd/asm/internal/lex"
    	"strings"
    	"testing"
    )
    
    type badInstTest struct {
    	input, error string
    }
    
    func TestAMD64BadInstParser(t *testing.T) {
    	testBadInstParser(t, "amd64", []badInstTest{
    		// Test AVX512 suffixes.
    		{"VADDPD.A X0, X1, X2", `unknown suffix "A"`},
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 1.9K bytes
    - Click Count (0)
  7. tests/non_std_test.go

    package tests_test
    
    import (
    	"testing"
    	"time"
    )
    
    type Animal struct {
    	Counter    uint64 `gorm:"primary_key:yes"`
    	Name       string `gorm:"DEFAULT:'galeone'"`
    	From       string // test reserved sql keyword as field name
    	Age        *time.Time
    	unexported string // unexported value
    	CreatedAt  time.Time
    	UpdatedAt  time.Time
    }
    
    func TestNonStdPrimaryKeyAndDefaultValues(t *testing.T) {
    	DB.Migrator().DropTable(&Animal{})
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Wed May 08 04:07:58 GMT 2024
    - 1.9K bytes
    - Click Count (0)
  8. internal/config/identity/ldap/legacy.go

    package ldap
    
    import (
    	"github.com/minio/minio/internal/config"
    )
    
    // LegacyConfig contains AD/LDAP server connectivity information from old config
    // V33.
    type LegacyConfig struct {
    	Enabled bool `json:"enabled"`
    
    	// E.g. "ldap.minio.io:636"
    	ServerAddr string `json:"serverAddr"`
    
    	// User DN search parameters
    	UserDNSearchBaseDistName  string   `json:"userDNSearchBaseDN"`
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sat Oct 08 05:12:36 GMT 2022
    - 2.2K bytes
    - Click Count (0)
  9. internal/kms/dek_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package kms
    
    import (
    	"bytes"
    	"encoding/base64"
    	"testing"
    )
    
    var dekEncodeDecodeTests = []struct {
    	Key DEK
    }{
    	{
    		Key: DEK{},
    	},
    	{
    		Key: DEK{
    			Plaintext:  nil,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue May 07 23:55:37 GMT 2024
    - 2.6K bytes
    - Click Count (0)
  10. cmd/erasure-server-pool-decom.go

    			z.doDecommissionInRoutine(ctx, idx)
    		}
    	}()
    
    	// Successfully started decommissioning.
    	return nil
    }
    
    type decomError struct {
    	Err string
    }
    
    func (d decomError) Error() string {
    	return d.Err
    }
    
    type poolSpaceInfo struct {
    	Free  int64
    	Total int64
    	Used  int64
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 42.2K bytes
    - Click Count (1)
Back to Top