Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 584 for Make (0.38 sec)

  1. internal/config/notify/config.go

    func NewConfig() Config {
    	// Make sure to initialize notification targets
    	cfg := Config{
    		NSQ:           make(map[string]target.NSQArgs),
    		AMQP:          make(map[string]target.AMQPArgs),
    		MQTT:          make(map[string]target.MQTTArgs),
    		NATS:          make(map[string]target.NATSArgs),
    		Redis:         make(map[string]target.RedisArgs),
    		MySQL:         make(map[string]target.MySQLArgs),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.8K bytes
    - Viewed (0)
  2. cmd/notification.go

    }
    
    // GetLastDayTierStats fetches per-tier stats of the last 24hrs from all peers
    func (sys *NotificationSys) GetLastDayTierStats(ctx context.Context) DailyAllTierStats {
    	errs := make([]error, len(sys.allPeerClients))
    	lastDayStats := make([]DailyAllTierStats, len(sys.allPeerClients))
    	var wg sync.WaitGroup
    	for index := range sys.peerClients {
    		if sys.peerClients[index] == nil {
    			continue
    		}
    		wg.Add(1)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  3. internal/pubsub/pubsub_test.go

    		t.Fatalf("want %d subscribers, got %d", want, got)
    	}
    }
    
    func TestSubscribeExceedingLimit(t *testing.T) {
    	ps := New[Maskable, Maskable](2)
    	ch1 := make(chan Maskable, 1)
    	ch2 := make(chan Maskable, 1)
    	ch3 := make(chan Maskable, 1)
    	doneCh := make(chan struct{})
    	defer close(doneCh)
    	if err := ps.Subscribe(MaskAll, ch1, doneCh, nil); err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. internal/bucket/bandwidth/monitor_test.go

    	m0.incrementBytes(0)
    	m1MiBPS := newBucketMeasurement(start)
    	m1MiBPS.incrementBytes(oneMiB)
    
    	test1Want := make(map[BucketOptions]Details)
    	test1Want[BucketOptions{Name: "bucket", ReplicationARN: "arn"}] = Details{LimitInBytesPerSecond: 1024 * 1024, CurrentBandwidthInBytesPerSecond: 0}
    	test1Want2 := make(map[BucketOptions]Details)
    	test1Want2[BucketOptions{Name: "bucket", ReplicationARN: "arn"}] = Details{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 06 03:21:59 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  5. src/bytes/compare_test.go

    func TestCompareBytes(t *testing.T) {
    	lengths := make([]int, 0) // lengths to test in ascending order
    	for i := 0; i <= 128; i++ {
    		lengths = append(lengths, i)
    	}
    	lengths = append(lengths, 256, 512, 1024, 1333, 4095, 4096, 4097)
    
    	if !testing.Short() {
    		lengths = append(lengths, 65535, 65536, 65537, 99999)
    	}
    
    	n := lengths[len(lengths)-1]
    	a := make([]byte, n+1)
    	b := make([]byte, n+1)
    	for _, len := range lengths {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  6. cmd/data-usage-cache.go

    	e.ObjVersions.add(summary.versions)
    
    	if e.ReplicationStats == nil {
    		e.ReplicationStats = &replicationAllStats{
    			Targets: make(map[string]replicationStats),
    		}
    	} else if e.ReplicationStats.Targets == nil {
    		e.ReplicationStats.Targets = make(map[string]replicationStats)
    	}
    	e.ReplicationStats.ReplicaSize += uint64(summary.replicaSize)
    	e.ReplicationStats.ReplicaCount += uint64(summary.replicaCount)
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  7. cmd/xl-storage-format-v2_test.go

    func TestUsesDataDir(t *testing.T) {
    	vID := uuid.New()
    	dataDir := uuid.New()
    	transitioned := make(map[string][]byte)
    	transitioned[ReservedMetadataPrefixLower+TransitionStatus] = []byte(lifecycle.TransitionComplete)
    
    	toBeRestored := make(map[string]string)
    	toBeRestored[xhttp.AmzRestore] = ongoingRestoreObj().String()
    
    	restored := make(map[string]string)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 36.4K bytes
    - Viewed (0)
  8. cmd/erasure.go

    	}
    
    	return
    }
    
    func getOnlineOfflineDisksStats(disksInfo []madmin.Disk) (onlineDisks, offlineDisks madmin.BackendDisks) {
    	onlineDisks = make(madmin.BackendDisks)
    	offlineDisks = make(madmin.BackendDisks)
    
    	for _, disk := range disksInfo {
    		ep := disk.Endpoint
    		if _, ok := offlineDisks[ep]; !ok {
    			offlineDisks[ep] = 0
    		}
    		if _, ok := onlineDisks[ep]; !ok {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  9. src/cmd/api/main_test.go

    				ok = false // broke compatibility
    			}
    		case len(required) == 0 || (len(features) > 0 && required[0] > features[0]):
    			newFeature := take(&features)
    			fmt.Fprintf(w, "+%s\n", newFeature)
    			ok = false // feature not in api/next/*
    		default:
    			take(&required)
    			take(&features)
    		}
    	}
    
    	return ok
    }
    
    // aliasReplacer applies type aliases to earlier API files,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  10. callbacks/helper.go

    				if v, ok := selectColumns[k]; (ok && v) || (!ok && !restricted) {
    					result[k] = make([]interface{}, len(mapValues))
    					columns = append(columns, k)
    				} else {
    					continue
    				}
    			}
    
    			result[k][idx] = v
    		}
    	}
    
    	sort.Strings(columns)
    	values.Values = make([][]interface{}, len(mapValues))
    	values.Columns = make([]clause.Column, len(columns))
    	for idx, column := range columns {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 14 12:32:57 GMT 2022
    - 3.7K bytes
    - Viewed (0)
Back to top