Search Options

Results per page
Sort
Preferred Languages
Advance

Results 441 - 450 of 857 for NIL (0.01 sec)

  1. internal/logger/targets.go

    // list of enabled loggers
    func AddSystemTarget(ctx context.Context, t Target) error {
    	if err := t.Init(ctx); err != nil {
    		return err
    	}
    
    	if consoleTgt == nil {
    		if t.Type() == types.TargetConsole {
    			consoleTgt = t
    		}
    	}
    
    	systemTargets.add(t)
    	return nil
    }
    
    func initKafkaTargets(ctx context.Context, cfgMap map[string]kafka.Config) ([]Target, []error) {
    	tgts := []Target{}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 03 15:44:50 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v1_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.ETag)
    	if err != nil {
    		err = msgp.WrapError(err, "ETag")
    		return
    	}
    	// write "n"
    	err = en.Append(0xa1, 0x6e)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.Number)
    	if err != nil {
    		err = msgp.WrapError(err, "Number")
    		return
    	}
    	// write "s"
    	err = en.Append(0xa1, 0x73)
    	if err != nil {
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  3. docs/iam/access-manager-plugin.go

    	body, err := io.ReadAll(r.Body)
    	if err != nil {
    		writeErrorResponse(w, err)
    		return
    	}
    
    	var out bytes.Buffer
    	json.Indent(&out, body, "", "  ")
    	fmt.Printf("Received JSON payload:\n%s\n", out.String())
    
    	reqMap := make(map[string]interface{})
    	err = json.Unmarshal(body, &reqMap)
    	if err != nil {
    		writeErrorResponse(w, err)
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 08 17:15:20 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. cmd/bucket-replication-utils_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.Version)
    	if err != nil {
    		err = msgp.WrapError(err, "Version")
    		return
    	}
    	// write "brs"
    	err = en.Append(0xa3, 0x62, 0x72, 0x73)
    	if err != nil {
    		return
    	}
    	err = en.WriteMapHeader(uint32(len(z.TargetsMap)))
    	if err != nil {
    		err = msgp.WrapError(err, "TargetsMap")
    		return
    	}
    	for za0001, za0002 := range z.TargetsMap {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 61.1K bytes
    - Viewed (0)
  5. tests/transaction_test.go

    			t.Fatalf("Should find saved record")
    		}
    		return nil
    	}); err != nil {
    		t.Fatalf("no error should return, but got %v", err)
    	}
    
    	if err := DB.First(&User{}, "name = ?", user.Name).Error; err != nil {
    		t.Fatalf("Should find saved record")
    	}
    
    	if err := DB.First(&User{}, "name = ?", user1.Name).Error; err == nil {
    		t.Fatalf("Should not find rollbacked record")
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Sep 14 12:58:29 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. cmd/server-main_test.go

    			sctx := &serverCtxt{}
    			err := mergeServerCtxtFromConfigFile(testcase.config, sctx)
    			if testcase.expectedErr && err == nil {
    				t.Error("expected failure, got success")
    			}
    			if !testcase.expectedErr && err != nil {
    				t.Error("expected success, got failure", err)
    			}
    			if err == nil {
    				if len(sctx.Layout.pools) != 2 {
    					t.Error("expected parsed pools to be 2, not", len(sctx.Layout.pools))
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Dec 07 09:33:56 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. cmd/metacache_gen.go

    		return
    	}
    	err = en.WriteString(z.bucket)
    	if err != nil {
    		err = msgp.WrapError(err, "bucket")
    		return
    	}
    	// write "flt"
    	err = en.Append(0xa3, 0x66, 0x6c, 0x74)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.filter)
    	if err != nil {
    		err = msgp.WrapError(err, "filter")
    		return
    	}
    	// write "id"
    	err = en.Append(0xa2, 0x69, 0x64)
    	if err != nil {
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Nov 08 18:26:08 UTC 2021
    - 10K bytes
    - Viewed (0)
  8. cmd/background-newdisks-heal-ops_gen.go

    			if err != nil {
    				err = msgp.WrapError(err, "Path")
    				return
    			}
    		case "Endpoint":
    			z.Endpoint, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Endpoint")
    				return
    			}
    		case "Started":
    			z.Started, err = dc.ReadTime()
    			if err != nil {
    				err = msgp.WrapError(err, "Started")
    				return
    			}
    		case "LastUpdate":
    			z.LastUpdate, err = dc.ReadTime()
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 15:42:49 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  9. docs/debugging/inspect/utils.go

    )
    
    func bytesToPrivateKey(priv []byte) (*rsa.PrivateKey, error) {
    	// Try PEM
    	if block, _ := pem.Decode(priv); block != nil {
    		return x509.ParsePKCS1PrivateKey(block.Bytes)
    	}
    	// Try base 64
    	dst := make([]byte, base64.StdEncoding.DecodedLen(len(priv)))
    	if n, err := base64.StdEncoding.Decode(dst, priv); err == nil {
    		return x509.ParsePKCS1PrivateKey(dst[:n])
    	}
    	// Try Raw, return error
    	return x509.ParsePKCS1PrivateKey(priv)
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Nov 02 20:36:38 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. internal/http/listener.go

    	}
    
    	for i, serverAddr := range serverAddrs {
    		l, e := listenCfg.Listen(ctx, "tcp", serverAddr)
    		if e != nil {
    			if opts.Trace != nil {
    				opts.Trace(fmt.Sprint("listenCfg.Listen: ", e))
    			}
    
    			listenErrs[i] = e
    			continue
    		}
    
    		if opts.Trace != nil {
    			opts.Trace(fmt.Sprint("adding listener to ", l.Addr()))
    		}
    
    		listeners = append(listeners, l)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 23 10:53:03 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top