- Sort Score
- Result 10 results
- Languages All
Results 351 - 360 of 1,315 for bool (0.04 sec)
-
cmd/peer-rest-client.go
resp, err := localStorageInfoRPC.Call(ctx, client.gridConn(), grid.NewMSSWith(map[string]string{ peerRESTMetrics: strconv.FormatBool(metrics), })) return resp.ValueOrZero(), err } // ServerInfo - fetch server information for a remote node. func (client *peerRESTClient) ServerInfo(ctx context.Context, metrics bool) (info madmin.ServerProperties, err error) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 09 16:58:30 UTC 2024 - 26.1K bytes - Viewed (0) -
docs_src/header_param_models/tutorial002_pv1_an.py
from pydantic import BaseModel from typing_extensions import Annotated app = FastAPI() class CommonHeaders(BaseModel): class Config: extra = "forbid" host: str save_data: bool if_modified_since: Union[str, None] = None traceparent: Union[str, None] = None x_tag: List[str] = [] @app.get("/items/") async def read_items(headers: Annotated[CommonHeaders, Header()]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 490 bytes - Viewed (0) -
src/cmd/buildid/buildid.go
"flag" "fmt" "log" "os" "strings" "cmd/internal/buildid" "cmd/internal/telemetry/counter" ) func usage() { fmt.Fprintf(os.Stderr, "usage: go tool buildid [-w] file\n") flag.PrintDefaults() os.Exit(2) } var wflag = flag.Bool("w", false, "write build ID") func main() { log.SetPrefix("buildid: ") log.SetFlags(0) counter.Open() flag.Usage = usage flag.Parse()
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Jun 21 19:58:04 UTC 2024 - 1.7K bytes - Viewed (0) -
src/archive/zip/struct.go
h.ExternalAttrs |= msdosReadOnly } } // isZip64 reports whether the file size exceeds the 32 bit limit func (h *FileHeader) isZip64() bool { return h.CompressedSize64 >= uint32max || h.UncompressedSize64 >= uint32max } func (h *FileHeader) hasDataDescriptor() bool { return h.Flags&0x8 != 0 } func msdosModeToFileMode(m uint32) (mode fs.FileMode) { if m&msdosDir != 0 { mode = fs.ModeDir | 0777
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue May 28 21:41:09 UTC 2024 - 12.1K bytes - Viewed (0) -
cmd/xl-storage-format-v2.go
func (x xlMetaV2VersionHeader) matchesNotStrict(o xlMetaV2VersionHeader) (ok bool) { ok = x.VersionID == o.VersionID && x.Type == o.Type && x.matchesEC(o) if x.VersionID == [16]byte{} { ok = ok && o.ModTime == x.ModTime } return ok } func (x xlMetaV2VersionHeader) matchesEC(o xlMetaV2VersionHeader) bool { if x.hasEC() && o.hasEC() { return x.EcN == o.EcN && x.EcM == o.EcM
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 22 15:30:50 UTC 2024 - 64K bytes - Viewed (1) -
docs_src/header_param_models/tutorial001_py310.py
from fastapi import FastAPI, Header from pydantic import BaseModel app = FastAPI() class CommonHeaders(BaseModel): host: str save_data: bool if_modified_since: str | None = None traceparent: str | None = None x_tag: list[str] = [] @app.get("/items/") async def read_items(headers: CommonHeaders = Header()):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 352 bytes - Viewed (0) -
internal/config/storageclass/storage-class_test.go
t.Errorf("Test %d, Expected `%v`, got `%v`", i+1, tt.expectedError, err) } } } func TestValidateParity(t *testing.T) { tests := []struct { rrsParity int ssParity int success bool setDriveCount int }{ {2, 4, true, 16}, {3, 3, true, 16}, {0, 0, true, 16}, {1, 4, true, 16}, {0, 4, true, 16}, {7, 6, false, 16}, {9, 0, false, 16}, {9, 9, false, 16},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 15 23:04:20 UTC 2023 - 4.3K bytes - Viewed (0) -
tests/test_sub_callbacks.py
class Invoice(BaseModel): id: str title: Optional[str] = None customer: str total: float class InvoiceEvent(BaseModel): description: str paid: bool class InvoiceEventReceived(BaseModel): ok: bool invoices_callback_router = APIRouter() @invoices_callback_router.post( "{$callback_url}/invoices/{$request.body.id}", response_model=InvoiceEventReceived )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 13.8K bytes - Viewed (0) -
internal/config/browser/browser.go
// Config storage class configuration type Config struct { CSPPolicy string `json:"csp_policy"` HSTSSeconds int `json:"hsts_seconds"` HSTSIncludeSubdomains bool `json:"hsts_include_subdomains"` HSTSPreload bool `json:"hsts_preload"` ReferrerPolicy string `json:"referrer_policy"` } // Update Updates browser with new config func (browseCfg *Config) Update(newCfg Config) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jun 21 00:58:58 UTC 2024 - 5.9K bytes - Viewed (0) -
src/cmd/api/testdata/src/pkg/p1/golden.txt
pkg p1, type EmbedURLPtr struct, embedded *URL pkg p1, type Embedded struct pkg p1, type Error interface { Error, Temporary } pkg p1, type Error interface, Error() string pkg p1, type Error interface, Temporary() bool pkg p1, type FuncType func(int, int, string) (*B, error) pkg p1, type I interface, Get(string) int64 pkg p1, type I interface, Get //deprecated pkg p1, type I interface, GetNamed(string) int64
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Dec 02 16:29:41 UTC 2022 - 3.6K bytes - Viewed (0)