text
stringlengths
5.51k
28.1k
package models import ( "Talos/conf" pb "Talos/internal/rpc/proto" "Talos/tools" "context" "encoding/json" "fmt" "io/ioutil" "log" "net" "net/http" "os" "strings" "sync" "time" "github.com/soheilhy/cmux" "github.com/spf13/viper" "google.golang.org/grpc" ) // Agent agent struct type Agent struct { v...
/* Copyright 2021 The Kubernetes Authors. Licensed 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 Unless required by applicable law or agreed to in writing, ...
package shadowsocks import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import v2ray_core_common_protocol "v2ray.com/core/common/protocol" import v2ray_core_common_protocol1 "v2ray.com/core/common/protocol" // Reference imports to suppress errors if they are not otherwise used. var _ =...
// Copyright 2021 The httpx Authors. All rights reserved. // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. package httpx import ( "context" "errors" "io/ioutil" "net/http" "net/url" "strings" "time" "github.com/gogama/httpx/racing" "github.com/gogama/h...
// Copyright 2019 Aporeto Inc. // Licensed 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 // Unless required by applicable law or agreed to in writing,...
/* Copyright 2019 Cisco Systems Licensed 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 Unless required by applicable law or agreed to in writing, software d...
// Copyright 2017 The Gro authors. All rights reserved. // Portions translated from <NAME>'s Clojure-based Kern parser. // Use of this source code is governed by the same BSD-style // license as Go that can be found in the LICENSE file. package ops import ( "testing" ts "github.com/grolang/gro/assert" u8 "github....
// The MIB module provides management support for Dialer // Number Information Service (DNIS) mapping. A DNIS // entry is associated with a Voice XML (VXML) page to // provide audio play back features. Multiple DNIS // entries can be grouped together to form a DNIS // mapping with a unique map name. // // *** ABBREVI...
/* Copyright 2020 The OpenYurt Authors. Copyright 2017 The Kubernetes Authors. Licensed 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 Unless required by app...
package cmd /* Copyright 2017 - 2021 Crunchy Data Solutions, Inc. Licensed 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 Unless required by applicabl...
package copier import ( "database/sql" "database/sql/driver" "errors" "fmt" "reflect" "strings" "unicode" ) // These flags define options for tag handling const ( // Denotes that a destination field must be copied to. If copying fails then a panic will ensue. tagMust uint8 = 1 << iota // Denotes that the p...
// Copyright 2017 The Cockroach Authors. // // Licensed 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 // // Unless required by applicable law or ag...
// Licensed 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 // // Unless required by applicable law or agreed to in writing, software // distributed und...
// Copyright 2021 Google LLC // // Licensed 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 // // Unless required by applicable law or agreed to in ...
package monitor import ( "context" "encoding/json" "errors" "fmt" "strings" "sync" "time" "github.com/MadBase/MadNet/blockchain/dkg/dkgtasks" "github.com/MadBase/MadNet/blockchain/interfaces" "github.com/MadBase/MadNet/blockchain/objects" "github.com/MadBase/MadNet/blockchain/tasks" "github.com/MadBase/Ma...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: envoy/config/filter/http/rbac/v2/rbac.proto package envoy_config_filter_http_rbac_v2 import ( _ "github.com/cncf/xds/go/udpa/annotations" v2 "github.com/envoyproxy/go-control-plane/envoy/conf...
/* Copyright 2015 The Kubernetes Authors. Licensed 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 Unless required by applicable law or agreed to in writing, ...
package weed_server import ( "context" "crypto/md5" "fmt" "hash" "io" "io/ioutil" "net/http" "os" "path" "strconv" "strings" "time" "github.com/chrislusf/seaweedfs/weed/filer" "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/operation" "github.com/chrislusf/seaweedfs/wee...
package tsi1 import ( "bytes" "encoding/binary" "errors" "fmt" "io" "sync" "unsafe" "github.com/influxdata/influxdb/models" "github.com/influxdata/influxdb/pkg/estimator" "github.com/influxdata/influxdb/pkg/estimator/hll" "github.com/influxdata/influxdb/pkg/mmap" "github.com/influxdata/influxdb/tsdb" ) /...
package pxutils import ( "encoding/base64" "strconv" ) // CreatePC Variable pass in jsonstring payload and uuid:tag:ftag func CreatePC(jsonstring string, tag string) string { var a = H1(jsonstring, tag) var e = H12(a) var r = h13(e) var pc = "" for i := 0; i < len(r); i += 2 { pc += string(r[i]) } return ...
// Copyright © 2016-2020 <NAME> <<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, pu...
/* Copyright 2019 Cisco Systems Licensed 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 Unless required by applicable law or agreed to in writing, software d...
/* Copyright The containerd Authors. Licensed 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 Unless required by applicable law or agreed to...
package main import ( "encoding/hex" "encoding/json" "errors" "fmt" "io" "io/ioutil" "net/http" _ "net/http/pprof" "net/url" "os" "path" "path/filepath" "reflect" "strings" "text/tabwriter" "time" "github.com/dustin/go-humanize" "github.com/joho/godotenv" "github.com/libp2p/go-libp2p-core/crypto" ...
/* Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR...
// compile -c=2 // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main type I1 interface { int8 | int16 | int32 | int64 | int | uint } type I2 interface{ float32 | float64 } type I3 interface{ string...
// Copyright 2020 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: infra/unifiedfleet/api/v1/...
package seo import ( "fmt" "html/template" "net/http" "net/http/httptest" "net/url" "reflect" "strings" "testing" "github.com/fatih/color" "github.com/jinzhu/gorm" "github.com/itech-eng/admin" "github.com/itech-eng/qor" "github.com/itech-eng/qor/test/utils" ) var db *gorm.DB var Admin *admin.Admin var c...
// Copyright 2019 GoAdmin Core Team. All rights reserved. // Use of this source code is governed by a Apache-2.0 style // license that can be found in the LICENSE file. package plugins import ( "bytes" "encoding/json" "errors" template2 "html/template" "net/http" "plugin" "time" "github.com/aluzme/go-admin/t...
package tracker import ( "context" "encoding/json" "errors" "fmt" "html/template" "io" "log" "sort" "strings" "sync" "time" "cloud.google.com/go/datastore" "cloud.google.com/go/storage" "github.com/googleapis/google-cloud-go-testing/datastore/dsiface" "github.com/googleapis/google-cloud-go-testing/stor...
/* * Copyright 2013 <NAME> * * Licensed 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 * * Unless required by applicable law or agreed to in wr...
/* Created on Wed Jan 15 12:37:15 2020 @author: <EMAIL> @version: 1.0 @versionDate: 2020-01-15 This python3 script * Downloads all the UK postcode longitude,latitude from http://download.geonames.org/export/zip/GB_full.csv.zip * Extracts the download * Reads the resulting CSV of long/lats into a 2D array * Opti...
package gossip import ( "context" "fmt" "time" "github.com/libp2p/go-libp2p-core/host" "github.com/libp2p/go-libp2p-core/network" "github.com/libp2p/go-libp2p-core/peer" "github.com/libp2p/go-libp2p-core/protocol" "github.com/multiformats/go-multiaddr" "github.com/gohornet/hornet/pkg/metrics" "github.com/g...
// Copyright 2017 Drone.IO Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gitee import ( "crypto/hmac" "crypto/sha256" "encoding/base64" "encoding/json" "fmt" "io" "io/ioutil" "net/http" "time" "github.com/drone/go-s...
// DO NOT EDIT THIS FILE. GENERATED BY svdxgen. // +build stm32h7x3 // Package tim2 provides access to the registers of the TIM peripheral. // // Instances: // TIM2 TIM2_BASE APB1 TIM2+,SWPMI1+ General purpose timers // TIM3 TIM3_BASE APB1 TIM3 General purpose timers // TIM4 TIM4_B...
package kerb import ( "encoding/binary" "fmt" "io" "net" "os" "strconv" "strings" "time" "github.com/erock530/asn1" "github.com/erock530/go.logging" ) const ( ticketDialTCPEnv = "TICKET_DIAL_TCP" ) var ( ticketDialTCP = strings.ToUpper(os.Getenv(ticketDialTCPEnv)) == "TRUE" ) type request struct { cfg...
// Code generated by protoc-gen-go. // source: msp/msp_config.proto // DO NOT EDIT! package msp import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // MSP...
// Copyright (c) 2001-2016, <NAME> // Copyright (c) 2008-2016, Sphinx Technologies Inc // Copyright (c) 2019, Manticore Software LTD (http://manticoresearch.com) // All rights reserved // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU Library General Public Lice...
/* * Copyright (c) 2014, <NAME> <yawning at torproject dot org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice,...
package openapi import ( "fmt" "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "reflect" "github.com/dikhan/terraform-provider-openapi/v3/openapi/terraformutils" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) // schemaDefinitionPropertyType defines the type...
// pg-helper: A command-line utility to call p-sidecar-service RPC's to // perform database operations. It is intended to be used in hab hooks, // though you can also use the pg-sidecar-service client library package // in your application if you prefer to perform database operations in // your application. package mai...
package z80 import ( "bufio" "encoding/hex" "fmt" "io/ioutil" "log" "os" "regexp" "strconv" "strings" "testing" "github.com/laullon/b2t80s/cpu" "github.com/stretchr/testify/assert" ) func TestRegPair(t *testing.T) { cpu := NewZ80(nil) cpu.Registers().B = 0x0A cpu.Registers().C = 0x0B assert.Equal(t, ...
package sam import ( "errors" "fmt" "log" "sort" "strconv" "sync" "unicode" psort "github.com/exascience/pargo/sort" "github.com/exascience/elprep/utils" ) // The SAM file format version and date strings supported by this // library. This is entered by default in an @HD line in the header // section of a S...
// Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package integration import ( "bytes" "context" crand "crypto/rand" "crypto/tls" "encoding/json" "errors" "flag" "fmt" "io" "io/ioutil" "...
package queue import ( "context" "fmt" "os" "strings" "sync" "time" log "github.com/sirupsen/logrus" "github.com/flant/shell-operator/pkg/metric_storage" "github.com/flant/shell-operator/pkg/task" "github.com/flant/shell-operator/pkg/utils/exponential_backoff" "github.com/flant/shell-operator/pkg/utils/me...
// Code generated by smithy-go-codegen DO NOT EDIT. package machinelearning import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/machinelearning/types" "github.com/aws/smithy-go/middleware" smithy...
// Copyright 2022 Google LLC. All Rights Reserved. // // Licensed 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 // // Unless required by applica...
package db import ( "context" "encoding/csv" "errors" "fmt" "io/ioutil" "log" "os" "path/filepath" "sort" "strconv" "strings" "sync" "time" botgolang "github.com/mail-ru-im/bot-golang" ) var ( // ErrUnknownUser is an error when a request was gotten from unknown user. ErrUnknownUser = errors.New("unkn...
/* * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * This source code is licensed under the Apache License Version 2.0. */ package daemon_handler import ( "context" "encoding/json" "errors" "fmt" "io/ioutil" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ...
package internal import ( "crypto/tls" "time" "github.com/5xxxx/pie/driver" "go.mongodb.org/mongo-driver/bson/bsoncodec" "go.mongodb.org/mongo-driver/event" "go.mongodb.org/mongo-driver/mongo/options" "go.mongodb.org/mongo-driver/mongo/readconcern" "go.mongodb.org/mongo-driver/mongo/readpref" "go.mongodb.org...
// Copyright 2016 <NAME>, Inc. All rights reserved. // Licensed under the Apache License, version 2.0: // http://www.apache.org/licenses/LICENSE-2.0 package types import ( "math" "testing" "github.com/stretchr/testify/assert" ) func TestSetIterator(t *testing.T) { assert := assert.New(t) vs := newTestValueSto...
package importer import ( "bytes" "fmt" "net/url" "path/filepath" "reflect" "runtime" "sort" "strings" "github.com/getkin/kin-openapi/openapi3" "github.com/sirupsen/logrus" "github.com/spf13/afero" ) type openapiv3 struct { appName string pkg string basePath string // Used for Swagger2.0 files wh...
// Copyright (C) 2019-2021, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package router import ( "encoding/binary" "errors" "fmt" "strings" "sync" "time" "github.com/prometheus/client_golang/prometheus" "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanche...
package g3d import ( "fmt" "math" "github.com/go4orward/gigl/common" "github.com/go4orward/gigl/g3d/c3d" ) // ---------------------------------------------------------------------------- // Camera Initialization Parameters // ---------------------------------------------------------------------------- type CamI...
// Copyright 2016, <NAME> // Licensed under the MIT License // Age légal de départ à la retraite (as of January 2016) // // Ce service vous permet de connaitre votre âge légal de départ à la retraite et vous précise : // - votre âge légal de départ à la retraite // - le point de départ possible de votre retraite // - ...
/* Copyright 2019 Cisco Systems Licensed 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 Unless required by applicable law or agreed to in writing, software d...
/* Open Source Initiative OSI - The MIT License (MIT):Licensing The MIT License (MIT) Copyright (c) 2018 <NAME> (<EMAIL>) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
// Performance test simulating many nodes making calls to the exchange. For scale testing, run many instances of this using wrapper.sh package main import ( "fmt" "net/http" "os" "strconv" "time" "github.com/open-horizon/exchange-api/src/test/go/perfutils" ) func Usage(exitCode int) { fmt.Printf("Usage: %s <n...
/* * Copyright © 2021 Splunk, Inc. * * Licensed 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 * * Unless required by applicable law or agreed to i...
/* Copyright 2021 Polyglot Systems. Licensed 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 Unless required by applicable law or agreed to in writing, softwa...
package exec import ( "bytes" "context" "encoding/json" "fmt" "reflect" "sync" "github.com/chirino/graphql/exec" "github.com/chirino/graphql/internal/introspection" "github.com/chirino/graphql/internal/linkedmap" "github.com/chirino/graphql/log" "github.com/chirino/graphql/qerrors" "github.com/chirino/gra...
// Copyright 2015 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
// Copyright 2021 CloudWeGo Authors // // Licensed 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 // // Unless required by applicable law or agreed to...
package mgr import ( "encoding/json" "errors" "fmt" "io/ioutil" "os" "path/filepath" "time" "github.com/cloudflare/certmgr/cert" "github.com/cloudflare/certmgr/metrics" "github.com/cloudflare/certmgr/svcmgr" "github.com/cloudflare/cfssl/log" yaml "gopkg.in/yaml.v2" ) // DefaultInterval is used if no int...
// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed 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 // // Unless required by applicable...
// Copyright 2016-2019 the u-root Authors. All rights reserved // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package smbios import ( "errors" "fmt" "strings" ) // Much of this is auto-generated. If adding a new type, see README for instructions. // Memory...
// Copyright (c) 2021 Fraunhofer AISEC // Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. // // Licensed 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...
// Copyright 2019 eBay Inc. // Primary authors: <NAME>, <NAME>, // <NAME>, and <NAME>. // // Licensed 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 // https://www.apache.org/licenses/...
package expr import ( "errors" "fmt" "reflect" "sync" ) var ( primType = map[reflect.Kind]Type{ reflect.Bool: NewPrimitiveType(Bool), reflect.Int: NewPrimitiveType(Int), reflect.Int8: NewPrimitiveType(Int8), reflect.Int16: NewPrimitiveType(Int16), reflect.Int32: NewPrimitiveType(Int32), ...
package main import ( "bytes" "fmt" "io" "io/ioutil" "math/rand" "os" "os/exec" "os/signal" "path/filepath" "runtime" "strconv" "strings" "syscall" "text/template" "time" "github.com/howeyc/gopass" color "github.com/mgutz/ansi" "github.com/mholt/archiver" "github.com/spf13/afero" "github.com/urfav...
package dynamodb import ( "github.com/twhello/aws-to-go/util/datetime" ) /***************************************************************************** * The Amazon DynamoDB API contains several data types that various actions use. * This section describes each data type in detail. */ /**************************...
package sipmsg import ( "bytes" "strconv" ) type ptr uint16 // Structure to replresent position in []byte buffer // "p" points to start position and "l" points to the last. // That helps to avoid additional memory allocations. type pl struct { p ptr l ptr } // ErrorSIPMsgParse SIP message parsing error var Erro...
package main import ( "fmt" "image" "log" "golang.org/x/image/font" "golang.org/x/image/font/basicfont" "golang.org/x/image/math/fixed" "periph.io/x/conn/gpio" "periph.io/x/conn/spi" "periph.io/x/devices/ssd1306" "periph.io/x/devices/ssd1306/image1bit" ) // Created using dot2pic.com // https://ja...
// Copyright 2016 <NAME> // // Licensed 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 // // Unless required by applicable law or agreed to in writi...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.6.1 // source: product_reader.proto package readerService import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" )...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/mobile_device_constant.proto package resources import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/...
// Copyright 2020 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package arc import ( "bufio" "bytes" "context" "net" "strconv" "strings" "time" "golang.org/x/net/ipv4" "golang.org/x/net/ipv6" "golang.org...
// Copyright (c) 2020, <NAME> // All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: fragoe/reusables/v1/address.proto...
// // Copyright 2021 IBM Corporation // // Licensed 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 // // Unless required by applicable law or agreed to ...
// Copyright 2021 The Cockroach Authors. // // Licensed 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 // // Unless required by applicable law or agreed ...
package samplers // import "wonderland.org/geneos/pkg/samplers" import ( "fmt" "reflect" "sort" "strconv" "strings" "sync" "time" "wonderland.org/geneos/pkg/logger" "wonderland.org/geneos/pkg/plugins" "wonderland.org/geneos/pkg/xmlrpc" ) func init() { // logger.EnableDebugLog() } var ( log = logger...
/* * Copyright © 2018-2019 Software AG, Darmstadt, Germany and/or its licensors * * SPDX-License-Identifier: Apache-2.0 * * Licensed 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://...
// The common package contains the input and output types of the signal checking function. package common import ( "errors" "fmt" "math" "time" ) // SignalCheckInput is the input to the signal checking function. // // Notes: // // - All dates are ISO3610 e.g. "2021-07-04T14:14:18+00:00". // - Durations are in sec...
// This file is part of MinIO Orchestrator // Copyright (c) 2021 MinIO, Inc. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) ...
package searchV2 import ( "bytes" "context" "fmt" "io/ioutil" "os" "runtime" "strconv" "strings" "sync" "time" "github.com/grafana/grafana/pkg/infra/log" "github.com/grafana/grafana/pkg/services/searchV2/extract" "github.com/grafana/grafana/pkg/services/sqlstore" "github.com/grafana/grafana/pkg/services...
package kafka import ( "fmt" "io" ) // Error represents the different error codes that may be returned by kafka. // https://kafka.apache.org/protocol#protocol_error_codes type Error int const ( Unknown Error = -1 OffsetOutOfRange Error = 1 InvalidMessag...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow/core/framework/function.proto package tensorflow import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ =...
// Code generated by protoc-gen-go. // source: pkg/grpc/auditlogstore/protos/audit_log_store.proto // DO NOT EDIT! /* Package auditlogstore is a generated protocol buffer package. It is generated from these files: pkg/grpc/auditlogstore/protos/audit_log_store.proto It has these top-level messages: ListRequest Lis...
// Code generated by protoc-gen-go. // source: MSG_Login.proto // DO NOT EDIT! /* Package MSG_Login is a generated protocol buffer package. It is generated from these files: MSG_Login.proto It has these top-level messages: CS_UserBind_Req CS_UserRegister_Req SC_UserRegister_Rsp CS_Login_Req SC_Login_Rsp */ pac...
/* Copyright 2018 The Knative Authors Licensed 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 Unless required by applicable law or agreed to in writing, soft...
package chserver import ( "context" "crypto/subtle" "encoding/json" "errors" "fmt" "net" "net/http" "net/http/httputil" "net/url" "strings" "sync/atomic" "time" "github.com/gorilla/websocket" "github.com/jpillora/requestlog" "golang.org/x/crypto/ssh" "github.com/cloudradar-monitoring/rport/server/api...
// Copyright (c) 2014 The btcsuite developers // Copyright (c) 2015-2016 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package dcrjson import "encoding/json" // GetBlockHeaderVerboseResult models the data from the getblockheader command when ...
package main import ( "bytes" "time" ) type AngleType struct { Value float64 `xml:",chardata"` Unit string `xml:"unit,attr,omitempty"` PlusError *float64 `xml:"plusError,attr,omitempty"` MinusError *float64 `xml:"minusError,attr,omitempty"` } // May be one of MACLAURIN type ApproximationType str...
/* Copyright 2017 The Kubernetes Authors. Licensed 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 Unless required by applicable law or agreed to in writing, ...
package inflect import ( "testing" ) // assert helper func assertEqual(t *testing.T, a, b string) { if a != b { t.Errorf("inflect: expected %v got %v", a, b) } } // test data var SingularToPlural = map[string]string{ "search": "searches", "switch": "switches", "fix": "fixes", "box": ...
package gemini import ( "errors" "fmt" "net/http" "net/url" "strconv" "time" "github.com/thrasher-corp/gocryptotrader/common" "github.com/thrasher-corp/gocryptotrader/config" exchange "github.com/thrasher-corp/gocryptotrader/exchanges" "github.com/thrasher-corp/gocryptotrader/exchanges/request" "github.com...
package backup /* * This file contains structs and functions related to executing specific * queries to gather metadata for the objects handled in predata_relations.go. */ import ( "database/sql" "fmt" "strings" "github.com/greenplum-db/gp-common-go-libs/dbconn" "github.com/greenplum-db/gp-common-go-libs/gpl...
/* Copyright 2017 The Kubernetes Authors. Licensed 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 Unless required by applicable law or agreed to in writing, ...
//go:build !nodaemon // +build !nodaemon package main import ( "context" "encoding/hex" "encoding/json" "fmt" "io/ioutil" "net/http" "os" "path" "runtime/pprof" "strings" "github.com/filecoin-project/go-jsonrpc" "github.com/filecoin-project/lotus/api" "github.com/filecoin-project/lotus/build" snmgr "gi...
/* Copyright 2019 Cisco Systems Licensed 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 Unless required by applicable law or agreed to in writing, software d...