- Sort Score
- Num 10 results
- Language All
Results 311 - 320 of 2,996 for switch (0.05 seconds)
-
schema/schema.go
field.Schema.DeleteClauses = append(field.Schema.DeleteClauses, fc.DeleteClauses(field)...) } } } if field := schema.PrioritizedPrimaryField; field != nil { switch field.GORMDataType { case Int, Uint: if _, ok := field.TagSettings["AUTOINCREMENT"]; !ok { if !field.HasDefaultValue || field.DefaultValueInterface != nil {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:35:55 GMT 2026 - 13.3K bytes - Click Count (0) -
cmd/http-stats.go
st.totalS3Requests.Inc(api) // Increment the prometheus http request response histogram with appropriate label httpRequestsDuration.With(prometheus.Labels{"api": api}).Observe(w.TTFB().Seconds()) code := w.StatusCode switch { case code == 0: case code == 499: // 499 is a good error, shall be counted as canceled. st.totalS3Canceled.Inc(api)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Sep 24 17:13:00 GMT 2024 - 11.4K bytes - Click Count (0) -
internal/logger/target/kafka/kafka_scram_client_contrib.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package kafka import ( "crypto/sha512" "strings" "github.com/IBM/sarama" "github.com/xdg/scram" "github.com/minio/minio/internal/hash/sha256" ) func initScramClient(cfg Config, config *sarama.Config) { switch strings.ToLower(cfg.SASL.Mechanism) { case "sha512":
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 3.3K bytes - Click Count (0) -
internal/s3select/sql/utils.go
copy(pathExpr[1:], e.PathExpr) } e.strippedTableAlias = tableAlias e.strippedPathExpr = pathExpr return e.strippedPathExpr } func (e *JSONPathElement) String() string { switch { case e.Key != nil: return e.Key.String() case e.Index != nil: return fmt.Sprintf("[%d]", *e.Index) case e.ObjectWildcard: return ".*" case e.ArrayWildcard: return "[*]" } return "" }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Nov 10 16:12:50 GMT 2021 - 3.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java
// ============ private static OptionalEntity<User> getEntity(final CreateForm form) { switch (form.crudMode) { case CrudMode.CREATE: return OptionalEntity.of(new User()).map(entity -> { entity.setId(Base64.getUrlEncoder().encodeToString(form.name.getBytes(Constants.CHARSET_UTF_8)));Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 02 06:18:24 GMT 2026 - 21K bytes - Click Count (0) -
guava/src/com/google/common/collect/ArrayListMultimap.java
/** * Implementation of {@code Multimap} that uses an {@code ArrayList} to store the values for a given * key. A {@link HashMap} associates each key with an {@link ArrayList} of values. * * <p>When iterating through the collections supplied by this class, the ordering of values for a * given key agrees with the order in which the values were added. * * <p>This multimap allows duplicate key-value pairs. After adding a new key-value pair equal to anCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 05 23:15:58 GMT 2025 - 6.8K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/SimplexTransferListener.java
* or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 *
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Feb 06 11:28:05 GMT 2025 - 8.7K bytes - Click Count (0) -
internal/s3select/json/record.go
return r, nil } // WriteCSV - encodes to CSV data. func (r *Record) WriteCSV(writer io.Writer, opts sql.WriteCSVOpts) error { var csvRecord []string for _, kv := range r.KVS { var columnValue string switch val := kv.Value.(type) { case float64: columnValue = jsonFloat(val) case string: columnValue = val case bool, int64: columnValue = fmt.Sprintf("%v", val) case nil: columnValue = ""
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.2K bytes - Click Count (0) -
cmd/erasure-object_test.go
t.Errorf("Expected GetObject to fail with %v, but failed with %v", toObjectErr(errErasureReadQuorum, bucket, object), err) } } if gr != nil { _, err = io.Copy(io.Discard, gr) if err != toObjectErr(errErasureReadQuorum, bucket, object) { t.Errorf("Expected GetObject to fail with %v, but failed with %v", toObjectErr(errErasureReadQuorum, bucket, object), err) } gr.Close() }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 38.3K bytes - Click Count (0) -
src/main/java/jcifs/smb/SIDCacheImpl.java
* authority. * @param tc * The context that should be used to communicate with the named server. * @param sids * The SIDs that should be resolved. After this function is called, the names associated with the SIDs * may be queried with the <code>toDisplayString</code>, <code>getDomainName</code>, and <code>getAccountName</code> * methods. */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Mon Aug 25 14:34:10 GMT 2025 - 13.6K bytes - Click Count (0)