Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 727 for golang (0.22 sec)

  1. internal/lru/lru.go

    package lru
    
    // golang -lru
    // https://github.com/hashicorp/golang-lru
    import (
    	"sync"
    	"time"
    )
    
    // EvictCallback is used to get a callback when a cache entry is evicted
    type EvictCallback[K comparable, V any] func(key K, value V)
    
    // LRU implements a thread-safe LRU with expirable entries.
    type LRU[K comparable, V any] struct {
    	size      int
    	evictList *LruList[K, V]
    	items     map[K]*Entry[K, V]
    	onEvict   EvictCallback[K, V]
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. cmd/jwt_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"net/http"
    	"os"
    	"testing"
    
    	jwtgo "github.com/golang-jwt/jwt/v4"
    	xjwt "github.com/minio/minio/internal/jwt"
    )
    
    func getTokenString(accessKey, secretKey string) (string, error) {
    	claims := xjwt.NewMapClaims()
    	claims.SetExpiry(UTCNow().Add(defaultJWTExpiry))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  3. CHANGELOG/CHANGELOG-1.30.md

    - go.uber.org/zap: v1.19.0 → v1.26.0
    - golang.org/x/crypto: v0.14.0 → v0.21.0
    - golang.org/x/mod: v0.12.0 → v0.15.0
    - golang.org/x/net: v0.17.0 → v0.23.0
    - golang.org/x/sync: v0.3.0 → v0.6.0
    - golang.org/x/sys: v0.13.0 → v0.18.0
    - golang.org/x/term: v0.13.0 → v0.18.0
    - golang.org/x/text: v0.13.0 → v0.14.0
    - golang.org/x/tools: v0.12.0 → v0.18.0
    - google.golang.org/protobuf: v1.31.0 → v1.33.0
    Registered: Fri Sep 05 09:05:11 UTC 2025
    - Last Modified: Wed Jun 18 18:59:10 UTC 2025
    - 398.1K bytes
    - Viewed (0)
  4. cmd/http-stats.go

    		}
    		apiStats[k] = v
    	}
    	return apiStats
    }
    
    // HTTPStats holds statistics information about
    // HTTP requests made by all clients
    type HTTPStats struct {
    	s3RequestsInQueue       int32 // ref: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
    	_                       int32 // For 64 bits alignment
    	s3RequestsIncoming      uint64
    	rejectedRequestsAuth    uint64
    	rejectedRequestsTime    uint64
    	rejectedRequestsHeader  uint64
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. CHANGELOG/CHANGELOG-1.20.md

    - go.opencensus.io: v0.22.2 → v0.22.3
    - golang.org/x/crypto: 75b2880 → 7f63de1
    - golang.org/x/exp: da58074 → 6cc2880
    - golang.org/x/lint: fdd1cda → 738671d
    - golang.org/x/net: ab34263 → 69a7880
    - golang.org/x/oauth2: 858c2ad → bf48bf1
    - golang.org/x/sys: ed371f2 → 5cba982
    - golang.org/x/text: v0.3.3 → v0.3.4
    - golang.org/x/time: 555d28b → 3af7569
    - golang.org/x/xerrors: 9bdfabe → 5ec99f8
    Registered: Fri Sep 05 09:05:11 UTC 2025
    - Last Modified: Wed Jan 19 21:05:45 UTC 2022
    - 409K bytes
    - Viewed (0)
  6. tests/postgres_test.go

    	DB.Migrator().DropTable(&Post{}, &Category{}, "post_categories")
    	DB.AutoMigrate(&Post{}, &Category{})
    
    	post := Post{
    		Title: "Hello World",
    		Categories: []*Category{
    			{Title: "Coding"},
    			{Title: "Golang"},
    		},
    	}
    
    	if err := DB.Create(&post).Error; err != nil {
    		t.Errorf("Failed, got error: %v", err)
    	}
    }
    
    func TestPostgresOnConstraint(t *testing.T) {
    	if DB.Dialector.Name() != "postgres" {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sat Oct 08 09:16:32 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  7. tests/gaussdb_test.go

    	DB.Migrator().DropTable(&Post{}, &Category{}, "post_categories")
    	DB.AutoMigrate(&Post{}, &Category{})
    
    	post := Post{
    		Title: "Hello World",
    		Categories: []*Category{
    			{Title: "Coding"},
    			{Title: "Golang"},
    		},
    	}
    
    	if err := DB.Create(&post).Error; err != nil {
    		t.Errorf("Failed, got error: %v", err)
    	}
    }
    
    func TestGaussDBOnConstraint(t *testing.T) {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  8. cmd/api-headers.go

    			// report encoding bugs to AWS, and use ASCII-only metadata to ensure reliable S3 API
    			// compatibility.
    			if needsMimeEncoding(v) {
    				// see https://github.com/golang/go/blob/release-branch.go1.24/src/net/mail/message.go#L325
    				if strings.ContainsAny(v, "\"#$%&'(),.:;<>@[]^`{|}~") {
    					v = mime.BEncoding.Encode("UTF-8", v)
    				} else {
    					v = mime.QEncoding.Encode("UTF-8", v)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. docs/bucket/lifecycle/README.md

    Note that transition event notification is a MinIO extension.
    
    ## Explore Further
    
    - [MinIO | Golang Client API Reference](https://docs.min.io/community/minio-object-store/developers/go/API.html)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  10. tests/prepared_stmt_test.go

    	pdb.Mux.Lock()
    	defer pdb.Mux.Unlock()
    	if len(pdb.Stmts.Keys()) != 0 {
    		t.Fatalf("prepared stmt should be empty")
    	}
    }
    
    func isUsingClosedConnError(err error) bool {
    	// https://github.com/golang/go/blob/e705a2d16e4ece77e08e80c168382cdb02890f5b/src/database/sql/sql.go#L2717
    	return err.Error() == "sql: statement is closed"
    }
    
    // TestPreparedStmtConcurrentClose test calling close and executing SQL concurrently
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 8K bytes
    - Viewed (0)
Back to top