Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 876 for makeAs (0.14 sec)

  1. cmd/api-utils.go

    func s3EncodeName(name, encodingType string) string {
    	if strings.ToLower(encodingType) == "url" {
    		return s3URLEncode(name)
    	}
    	return name
    }
    
    // getHandlerName returns the name of the handler function. It takes the type
    // name as a string to clean up the name retrieved via reflection. This function
    // only works correctly when the type is present in the cmd package.
    func getHandlerName(f http.HandlerFunc, cmdType string) string {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Mar 04 18:05:56 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/lex/input.go

    	if err != nil {
    		in.Error("unquoting #line file name: ", err)
    	}
    	tok = in.Stack.Next()
    	if tok != '\n' {
    		in.Error("unexpected token at end of #line: ", tok)
    	}
    	pos := src.MakePos(in.Base(), uint(in.Line())+1, 1) // +1 because #line nnn means line nnn starts on next line
    	in.Stack.SetBase(src.NewLinePragmaBase(pos, file, objabi.AbsFile(objabi.WorkingDir(), file, *flags.TrimPath), uint(line), 1))
    }
    
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Fri Sep 06 13:17:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    Call             Type T     Result
    
    make(T, n)       slice      slice of type T with length n and capacity n
    make(T, n, m)    slice      slice of type T with length n and capacity m
    
    make(T)          map        map of type T
    make(T, n)       map        map of type T with initial space for approximately n elements
    
    make(T)          channel    unbuffered channel of type T
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/security/get-current-user.md

    ///
    
    ```Python hl_lines="25"
    {!> ../../docs_src/security/tutorial002.py!}
    ```
    
    ////
    
    ## Get the user
    
    `get_current_user` will use a (fake) utility function we created, that takes a token as a `str` and returns our Pydantic `User` model:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="19-22  26-27"
    {!> ../../docs_src/security/tutorial002_an_py310.py!}
    ```
    
    ////
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. cmd/batch-expire.go

    				time.Sleep(wait)
    			}
    		}
    		i++
    		wk.Take()
    		go func(toExpire []expireObjInfo) {
    			defer wk.Give()
    
    			toExpireAll := make([]ObjectInfo, 0, len(toExpire))
    			toDel := make([]ObjectToDelete, 0, len(toExpire))
    			oiCache := newObjInfoCache()
    			for _, exp := range toExpire {
    				if exp.ExpireAll {
    					toExpireAll = append(toExpireAll, exp.ObjectInfo)
    					continue
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  6. fastapi/routing.py

                    and `response_model_exclude_defaults`. You probably want to use one of
                    those two instead of this one, as those allow returning `None` values
                    when it makes sense.
    
                    Read more about it in the
                    [FastAPI docs for Response Model - Return Type](https://fastapi.tiangolo.com/tutorial/response-model/#response_model_exclude_none).
                    """
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 172.1K bytes
    - Viewed (0)
  7. src/builtin/builtin.go

    // constant. See the Go language specification's "Length and capacity" section for
    // details.
    func cap(v Type) int
    
    // The make built-in function allocates and initializes an object of type
    // slice, map, or chan (only). Like new, the first argument is a type, not a
    // value. Unlike new, make's return type is the same as the type of its
    // argument, not a pointer to it. The specification of the result depends on
    // the type:
    //
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. cmd/tier.go

    	return err
    }
    
    // NewTierConfigMgr - creates new tier configuration manager,
    func NewTierConfigMgr() *TierConfigMgr {
    	return &TierConfigMgr{
    		drivercache: make(map[string]WarmBackend),
    		Tiers:       make(map[string]madmin.TierConfig),
    	}
    }
    
    func (config *TierConfigMgr) refreshTierConfig(ctx context.Context, objAPI ObjectLayer) {
    	const tierCfgRefresh = 15 * time.Minute
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Sep 12 20:44:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  9. cmd/xl-storage-disk-id-check.go

    	p.metricsCache.InitOnce(5*time.Second,
    		cachevalue.Opts{},
    		func(ctx context.Context) (DiskMetrics, error) {
    			diskMetric := DiskMetrics{
    				LastMinute: make(map[string]AccElem, len(p.apiLatencies)),
    				APICalls:   make(map[string]uint64, len(p.apiCalls)),
    			}
    			for i, v := range p.apiLatencies {
    				diskMetric.LastMinute[storageMetric(i).String()] = v.total()
    			}
    			for i := range p.apiCalls {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sat Oct 26 09:56:26 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  10. cmd/api-resources_test.go

    		}
    		if fetchOwner != testCase.fetchOwner {
    			t.Errorf("Test %d: Expected %t, got %t", i+1, testCase.fetchOwner, fetchOwner)
    		}
    		if maxKeys != testCase.maxKeys {
    			t.Errorf("Test %d: Expected %d, got %d", i+1, testCase.maxKeys, maxKeys)
    		}
    		if encodingType != testCase.encodingType {
    			t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.encodingType, encodingType)
    		}
    	}
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 7.1K bytes
    - Viewed (0)
Back to top