- Sort Score
- Num 10 results
- Language All
Results 201 - 210 of 1,053 for struct_ (0.2 seconds)
-
internal/auth/credentials_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package auth import ( "encoding/json" "testing" "time" ) func TestExpToInt64(t *testing.T) { testCases := []struct { exp any expectedFailure bool }{ {"", true}, {"-1", true}, {"1574812326", false}, {1574812326, false}, {int64(1574812326), false}, {int(1574812326), false},
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.4K bytes - Click Count (0) -
clause/order_by.go
package clause type OrderByColumn struct { Column Column Desc bool Reorder bool } type OrderBy struct { Columns []OrderByColumn Expression Expression } // Name where clause name func (orderBy OrderBy) Name() string { return "ORDER BY" } // Build build where clause func (orderBy OrderBy) Build(builder Builder) { if orderBy.Expression != nil { orderBy.Expression.Build(builder) } else {Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Nov 03 02:30:05 GMT 2020 - 1.1K bytes - Click Count (0) -
internal/pubsub/pubsub.go
var GetByteBuffer = func() []byte { return make([]byte, 0, 4096) } // Sub - subscriber entity. type Sub[T Maskable] struct { ch chan T types Mask filter func(entry T) bool } // PubSub holds publishers and subscribers type PubSub[T Maskable, M Maskable] struct { // atomics, keep at top: types uint64 numSubscribers int32 maxSubscribers int32 // not atomics: subs []*Sub[T]
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 06 16:57:30 GMT 2024 - 5.2K bytes - Click Count (0) -
scan.go
sch, _ = schema.Parse(db.Statement.Dest, db.cacheStore, db.NamingStrategy) } if len(columns) == 1 { // Is Pluck if _, ok := reflect.New(reflectValueType).Interface().(sql.Scanner); (reflectValueType != sch.ModelType && ok) || // is scanner reflectValueType.Kind() != reflect.Struct || // is not struct
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 10.4K bytes - Click Count (0) -
cmd/veeam-sos-api.go
var globalVeeamForceSC = os.Getenv("_MINIO_VEEAM_FORCE_SC") type systemInfo struct { XMLName xml.Name `xml:"SystemInfo" json:"-"` ProtocolVersion string `xml:"ProtocolVersion"` ModelName string `xml:"ModelName"` ProtocolCapabilities struct { CapacityInfo bool `xml:"CapacityInfo"` UploadSessions bool `xml:"UploadSessions"` IAMSTS bool `xml:"IAMSTS"`
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Aug 15 00:34:56 GMT 2024 - 8.8K bytes - Click Count (0) -
cmd/generic-handlers_test.go
Proto: "HTTP/1.1", Method: http.MethodGet, URL: &url.URL{Path: grid.RouteLockPath}, } if !guessIsRPCReq(r) { t.Fatal("Grid RPC path not detected") } } var isHTTPHeaderSizeTooLargeTests = []struct { header http.Header shouldFail bool }{ {header: generateHeader(0, 0), shouldFail: false}, {header: generateHeader(1024, 0), shouldFail: false}, {header: generateHeader(2048, 0), shouldFail: false},Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 6.2K bytes - Click Count (0) -
internal/config/bool-flag_test.go
package config import ( "testing" ) // Test BoolFlag.String() func TestBoolFlagString(t *testing.T) { var bf BoolFlag testCases := []struct { flag BoolFlag expectedResult string }{ {bf, "off"}, {BoolFlag(true), "on"}, {BoolFlag(false), "off"}, } for _, testCase := range testCases { str := testCase.flag.String()
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 3.5K bytes - Click Count (0) -
internal/config/lambda/event/targetid_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package event import ( "reflect" "testing" ) func TestTargetDString(t *testing.T) { testCases := []struct { tid TargetID expectedResult string }{ {TargetID{}, ":"}, {TargetID{"1", "webhook"}, "1:webhook"},
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Mar 07 16:12:41 GMT 2023 - 3.5K bytes - Click Count (0) -
internal/event/targetid_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package event import ( "reflect" "testing" ) func TestTargetDString(t *testing.T) { testCases := []struct { tid TargetID expectedResult string }{ {TargetID{}, ":"}, {TargetID{"1", "webhook"}, "1:webhook"},
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 3.5K bytes - Click Count (0) -
cmd/metrics-realtime.go
"github.com/minio/minio/internal/disk" "github.com/minio/minio/internal/net" c "github.com/shirou/gopsutil/v3/cpu" "github.com/shirou/gopsutil/v3/load" ) type collectMetricsOpts struct { hosts map[string]struct{} disks map[string]struct{} jobID string depID string } func collectLocalMetrics(types madmin.MetricType, opts collectMetricsOpts) (m madmin.RealtimeMetrics) { if types == madmin.MetricsNone { return mCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 6.3K bytes - Click Count (0)