- Sort Score
- Result 10 results
- Languages All
Results 381 - 390 of 536 for fprintf (0.1 sec)
-
internal/etag/reader.go
// computed ETag does not match an expected // ETag. type VerifyError struct { Expected ETag Computed ETag } func (v VerifyError) Error() string { return fmt.Sprintf("etag: expected ETag %q does not match computed ETag %q", v.Expected, v.Computed) } // UUIDHash - use uuid to make md5sum type UUIDHash struct { uuid []byte } // Write - implement hash.Hash Write
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 4.8K bytes - Viewed (0) -
docs_src/dependencies/tutorial008d.py
from fastapi import Depends, FastAPI, HTTPException app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("We don't swallow the internal error here, we raise again 😎") raise @app.get("/items/{item_id}") def get_item(item_id: str, username: str = Depends(get_username)): if item_id == "portal-gun":
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 694 bytes - Viewed (0) -
docs_src/dependencies/tutorial008d_an.py
from typing_extensions import Annotated app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("We don't swallow the internal error here, we raise again 😎") raise @app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]): if item_id == "portal-gun":
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 744 bytes - Viewed (0) -
internal/grid/grid_test.go
var n byte <-processHandler for { select { case in, ok := <-request: if !ok { return nil } if in[0] != n { return NewRemoteErrString(fmt.Sprintf("expected incoming %d, got %d", n, in[0])) } n++ resp <- append([]byte{}, in...) case <-ctx.Done(): return NewRemoteErr(ctx.Err()) } } }, OutCapacity: 5,
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 36.4K bytes - Viewed (0) -
ci/official/containers/linux_arm64/devel.bashrc
# See the License for the specific language governing permissions and # limitations under the License. # # ============================================================================== # Do not print anything if this is not being used interactively [ -z "$PS1" ] && return # Set up attractive prompt export PS1="\[\e[31m\]tf-docker\[\e[m\] \[\e[33m\]\w\[\e[m\] > " export TERM=xterm-256color
Registered: Tue Oct 29 12:39:09 UTC 2024 - Last Modified: Mon Sep 18 14:52:45 UTC 2023 - 988 bytes - Viewed (0) -
ci/official/containers/linux_arm64/devel.usertools/get_test_list.sh
# Hides all extra output and always exits with success for now. OUTPUT=$1 shift
Registered: Tue Oct 29 12:39:09 UTC 2024 - Last Modified: Mon Sep 18 14:52:45 UTC 2023 - 1K bytes - Viewed (0) -
cmd/admin-handlers-pools.go
idx = i } } else { idx = globalEndpoints.GetPoolIdx(v) } if idx == -1 { apiErr := toAdminAPIErr(ctx, errInvalidArgument) apiErr.Description = fmt.Sprintf("specified pool '%s' not found, please specify a valid pool", v) // We didn't find any matching pools, invalid input writeErrorResponseJSON(ctx, w, apiErr, r.URL) return }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Jun 28 00:22:30 UTC 2024 - 10.9K bytes - Viewed (0) -
cmd/admin-handlers-idp-config.go
return } cfg, err := readServerConfig(ctx, objectAPI, nil) if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } cfgKey := fmt.Sprintf("%s:%s", subSys, cfgName) if cfgName == madmin.Default { cfgKey = subSys } if err = cfg.DelKVS(cfgKey); err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 12.7K bytes - Viewed (0) -
utils/utils.go
results[idx] = string(v) case uint: results[idx] = strconv.FormatUint(uint64(v), 10) default: results[idx] = "nil" vv := reflect.ValueOf(v) if vv.IsValid() && !vv.IsZero() { results[idx] = fmt.Sprint(reflect.Indirect(vv).Interface()) } } } return strings.Join(results, "_") } func Contains(elems []string, elem string) bool { for _, e := range elems { if elem == e { return true }
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 4.1K bytes - Viewed (0) -
internal/grid/handlers.go
peerPrefixS3 = "peerS3" healPrefix = "heal" ) func init() { // Static check if we exceed 255 handler ids. // Extend the type to uint16 when hit. if uint32(handlerLast) > 255 { panic(fmt.Sprintf("out of handler IDs. %d > %d", handlerLast, 255)) } } func (h HandlerID) valid() bool { return h != handlerInvalid && h < handlerLast } func (h HandlerID) isTestHandler() bool {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Sep 09 16:58:30 UTC 2024 - 27.7K bytes - Viewed (0)