Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Struct (1.16 sec)

  1. generics.go

    package gorm
    
    import (
    	"context"
    	"database/sql"
    	"fmt"
    	"sort"
    	"strings"
    
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/logger"
    )
    
    type result struct {
    	Result       sql.Result
    	RowsAffected int64
    }
    
    func (info *result) ModifyStatement(stmt *Statement) {
    	stmt.Result = info
    }
    
    // Build implements clause.Expression interface
    func (result) Build(clause.Builder) {
    }
    
    func WithResult() *result {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  2. cmd/object-api-interface.go

    }
    
    // ExpirationOptions represents object options for object expiration at objectLayer.
    type ExpirationOptions struct {
    	Expire bool
    }
    
    // TransitionOptions represents object options for transition ObjectLayer operation
    type TransitionOptions struct {
    	Status         string
    	Tier           string
    	ETag           string
    	RestoreRequest *RestoreObjectRequest
    	RestoreExpiry  time.Time
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. cmd/object-api-options.go

    		}
    	}
    
    	return
    }
    
    func parseObjectAttributes(h http.Header) (attributes map[string]struct{}) {
    	attributes = make(map[string]struct{})
    	for _, headerVal := range h.Values(xhttp.AmzObjectAttributes) {
    		for v := range strings.SplitSeq(strings.TrimSpace(headerVal), ",") {
    			if v != "" {
    				attributes[v] = struct{}{}
    			}
    		}
    	}
    
    	return
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Sep 06 17:34:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  4. statement.go

    	"reflect"
    	"regexp"
    	"sort"
    	"strconv"
    	"strings"
    	"sync"
    
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/logger"
    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils"
    )
    
    // Statement statement
    type Statement struct {
    	*DB
    	TableExpr            *clause.Expr
    	Table                string
    	Model                interface{}
    	Unscoped             bool
    	Dest                 interface{}
    	ReflectValue         reflect.Value
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool-rebalance.go

    )
    
    //go:generate msgp -file $GOFILE -unexported
    
    // rebalanceStats contains per-pool rebalance statistics like number of objects,
    // versions and bytes rebalanced out of a pool
    type rebalanceStats struct {
    	InitFreeSpace uint64 `json:"initFreeSpace" msg:"ifs"` // Pool free space at the start of rebalance
    	InitCapacity  uint64 `json:"initCapacity" msg:"ic"`   // Pool capacity at the start of rebalance
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Sep 04 20:47:24 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  6. cmd/admin-handlers-pools.go

    		writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Rebalance routine is run on the first node of any pool participating in rebalance.
    	pools.StartRebalance()
    
    	b, err := json.Marshal(struct {
    		ID string `json:"id"`
    	}{ID: id})
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	writeSuccessResponseJSON(w, b)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Sep 04 20:47:24 UTC 2025
    - 11K bytes
    - Viewed (0)
  7. tests/generics_test.go

    		t.Fatalf("failed to find user, got error: %v", err)
    	} else if u.Name != "" || u.Age != user.Age {
    		t.Errorf("found invalid user, got %v, expect %v", u, user)
    	}
    
    	result := struct {
    		ID   int
    		Name string
    	}{}
    	if err := gorm.G[User](DB).Where("name = ?", user.Name).Scan(ctx, &result); err != nil {
    		t.Fatalf("failed to scan user, got error: %v", err)
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
  8. cmd/object-handlers.go

    		UserAgent:    r.UserAgent(),
    		Host:         handlers.GetSourceIP(r),
    	})
    }
    
    // ObjectTagSet key value tags
    type ObjectTagSet struct {
    	Tags []tags.Tag `xml:"Tag"`
    }
    
    type objectTagging struct {
    	XMLName xml.Name      `xml:"Tagging"`
    	TagSet  *ObjectTagSet `xml:"TagSet"`
    }
    
    // GetObjectTaggingHandler - GET object tagging
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 120.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

        return ListTestSuiteBuilder.using(
                new TestStringListGenerator() {
                  @Override
                  protected List<String> create(String[] elements) {
                    // For this test we trust ArrayList works
                    List<String> list = new ArrayList<>();
                    Collections.addAll(list, elements);
                    return new AbstractSequentialList<String>() {
                      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 15:04:05 UTC 2025
    - 12K bytes
    - Viewed (0)
  10. go.mod

    	github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect
    	github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
    	github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
    	github.com/fatih/structs v1.1.0 // indirect
    	github.com/felixge/httpsnoop v1.0.4 // indirect
    	github.com/go-asn1-ber/asn1-ber v1.5.8-0.20250403174932-29230038a667 // indirect
    	github.com/go-ini/ini v1.67.0 // indirect
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Sep 06 17:33:19 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top