text
stringlengths
8.57k
38.1k
/* Copyright IBM Corp. 2017 All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package cluster import ( "bytes" "crypto/tls" "crypto/x509" "encoding/hex" "encoding/json" "encoding/pem" "fmt" "sync" "sync/atomic" "time" "github.com/hyperledger/fabric-protos-go/common" "github.com/hyperledger/fab...
/* Copyright 2017 the Heptio Ark contributors. 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 writ...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: github.com/yext/cloudprober/targets/gce/proto/config.proto package cloudprober_targets_gce import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = pr...
// Copyright 2020 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 w...
/* 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 under the License ...
package ghostferry import ( "bytes" "errors" "fmt" "math" "strconv" "strings" "sync" "time" sql "github.com/Shopify/ghostferry/sqlwrapper" sq "github.com/Masterminds/squirrel" "github.com/go-mysql-org/go-mysql/schema" "github.com/sirupsen/logrus" ) type ReverifyBatch struct { PaginationKeys []uint64 T...
// Copyright (c) 2019-2021, Sylabs Inc. All rights reserved. // This software is licensed under a 3-clause BSD license. Please consult the // LICENSE.md file distributed with the sources of this project regarding your // rights to use or distribute this software. package singularity import ( "fmt" "os/exec" "strin...
package remotemachineset import ( "bytes" "context" "fmt" "reflect" "strings" "time" log "github.com/sirupsen/logrus" kapi "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/serializer"...
package main import ( "fmt" "os" "reflect" "regexp" //"sort" "errors" "strings" "sync" "time" "net/url" "flag" "github.com/golang/glog" "encoding/json" "runtime" "golang.org/x/net/context" "github.com/signalfx/golib/datapoint" "github.com/signalfx/metricproxy/protocol/signalfx" "github.com/code...
// Copyright (C) MongoDB, Inc. 2017-present. // // 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 package options import ( "time" "github.com/mo...
// Copyright 2018 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...
package basic import ( "fmt" "strings" "sort" ) type Variant int func (v Variant) String() string { return VariantInfos[v].DisplayName } const ( VariantStandard = Variant(iota) VariantEightPiece VariantAtomic ) type VariantInfo struct { StartFen string DisplayName string } var VariantInfos = []Variant...
package main import ( "archive/zip" "bytes" "context" "crypto/md5" "encoding/base64" "encoding/json" "flag" "fmt" "html/template" "io" "io/ioutil" "mime" "net/http" "path/filepath" "regexp" "runtime" "strings" "cloud.google.com/go/storage" "github.com/gorilla/mux" "golang.org/x/sync/errgroup" "go...
// Package oasis provides the Oasis network/node/client related test helpers. package oasis import ( "crypto" "fmt" "io" "math" "os/exec" "path/filepath" "strconv" "strings" "syscall" "time" "github.com/pkg/errors" "github.com/oasislabs/oasis-core/go/common/crypto/drbg" "github.com/oasislabs/oasis-core/...
// mapstructure-to-hcl2 fills the gaps between hcl2 and mapstructure for Packer // // By generating a struct that the HCL2 ecosystem understands making use of // mapstructure tags. // // Packer heavily uses the mapstructure decoding library to load/parse user // config files. Packer now needs to move to HCL2. // // Her...
// Copyright 2021 The h2 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 import ( "fmt" "math" "math/rand" "github.com/itsubaki/q" "gonum.org/v1/plot" "gonum.org/v1/plot/plotter" "gonum.org/v1/plot/vg" "gonum.o...
package pe import ( "bytes" "crypto/dsa" "crypto/ecdsa" "crypto/md5" "crypto/rsa" "crypto/sha1" "crypto/sha256" "crypto/x509" "crypto/x509/pkix" "encoding/asn1" "errors" "fmt" "hash" "io" "math/big" "sort" "strings" "github.com/Velocidex/ordereddict" "github.com/Velocidex/pkcs7" ) const ( IMAGE_D...
// Port of fuse_kernel.h to the Go programming language. // // Modifications include naming transformations to account for go conventions, // fmt.Stringer implementations, and go implementations of several macros. // // Modifications by <NAME> and released into public domain. // Use of this source code is governed by t...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: config.proto package configpb import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import any "github.com/golang/protobuf/ptypes/any" import timestamp "github.com/golang/protobuf/ptypes/timestamp" import keyspb "github.com/goog...
package ztime import ( "database/sql/driver" "errors" "fmt" "math" "regexp" "strconv" "strings" "time" "github.com/torlangballe/zutil/zlog" "github.com/torlangballe/zutil/zstr" "github.com/torlangballe/zutil/zwords" ) const ( Iso8601Format = "2006-01-02T15:04:05-0700" Iso8601DateFormat = "2006-01-02...
/* Copyright 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, softw...
// Copyright © 2021 Kaleido, Inc. // // 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://www.apache.org/licenses/LICENSE-2.0 // // Unle...
// Copyright 2015 The LUCI Authors. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.12.1 // source: go.chromium.org/lu...
// Copyright 2009 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 scanner import ( "os" "path/filepath" "runtime" "testing" "github.com/rogpeppe/godef/go/token" ) var fset = token.NewFileSet() ...
package data import ( "encoding/json" "fmt" "sort" "strconv" "time" ) // TimeSeriesType represents the type of time series the schema can be treated as (if any). type TimeSeriesType int // TODO: Create and link to Grafana documentation on Long vs Wide const ( // TimeSeriesTypeNot means this Frame is not a vali...
// Copyright (c) 2016 Uber Technologies, Inc. // // 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...
// Package transport provides streaming object-based transport over http for intra-cluster continuous // intra-cluster communications (see README for details and usage example). /* * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. */ package transport import ( "encoding/binary" "fmt" "io" "io/ioutil...
// DBDeployer - The MySQL Sandbox // Copyright © 2006-2020 <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 require...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.19.1 // source: envoy/extensions/stat_sinks/graphite_statsd/v3/graphite_statsd.proto package graphite_statsdv3 import ( v3 "github.com/cilium/proxy/go/envoy/config/core/v3" _ "github.com/cncf/xds/go/udpa/ann...
package consensus import ( "context" "math/big" "go.opencensus.io/trace" "github.com/filecoin-project/go-filecoin/actor" "github.com/filecoin-project/go-filecoin/actor/builtin/account" "github.com/filecoin-project/go-filecoin/address" "github.com/filecoin-project/go-filecoin/metrics" "github.com/filecoin-pro...
// Package design defines types which describe the data types used by action controllers. // These are the data structures of the request payloads and parameters as well as the response // payloads. // There are primitive types corresponding to the JSON primitive types (bool, string, integer and // number), array types...
// Copyright 2016-2018, Pulumi 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...
/* The MIT License (MIT) Copyright (c) 2015 tSURooT <<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, me...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow/core/framework/attr_value.proto package framework 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 _ ...
package helper import ( "bufio" "fmt" "path/filepath" "regexp" "strings" "time" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/onsi/gomega/gexec" ) type OcRunner struct { // path to oc binary path string } // NewOcRunner initializes new OcRunner func NewOcRunner(ocPath string) OcRunner...
package crconfig /* * Licensed to the Apache Software Foundation (ASF) under one * 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 ...
// Code generated by smithy-go-codegen DO NOT EDIT. package types import ( "time" ) // Returns information about a specific approval on a pull request. type Approval struct { // The state of the approval, APPROVE or REVOKE. REVOKE states are not stored. ApprovalState ApprovalState // The Amazon Resource Name (...
package minidump // Package minidump provides a loader for Windows Minidump files. // Minidump files are the Windows equivalent of unix core dumps. // They can be created by the kernel when a program crashes (however this is // disabled for Go programs) or programmatically using either WinDbg or the // ProcDump utilit...
package influxql import ( "bytes" "errors" "hash/fnv" "math" "sort" "time" ) // DB represents an interface for creating transactions. type DB interface { Begin() (Tx, error) } const ( // Return an error if the user is trying to select more than this number of points in a group by statement. // Most likely t...
// Copyright 2019 Yunion // // 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...
package build /* Onix Config Manager - Artisan Copyright (c) 2018-Present by www.gatblau.org Licensed under the Apache License, Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0 Contributors to this project, hereby assign copyright in this code to the project, to be licensed under the same terms as t...
package metadata import ( "context" "encoding/hex" "fmt" "net" "regexp" "strconv" "strings" "github.com/elliotchance/orderedmap" "github.com/gosnmp/gosnmp" "github.com/kentik/ktranslate/pkg/eggs/logger" snmp_util "github.com/kentik/ktranslate/pkg/inputs/snmp/util" "github.com/kentik/ktranslate/pkg/kt" )...
// Code generated by protoc-gen-go. // source: google.golang.org/cloud/bigtable/internal/cluster_service_proto/bigtable_cluster_service_messages.proto // DO NOT EDIT! /* Package google_bigtable_admin_cluster_v1 is a generated protocol buffer package. It is generated from these files: google.golang.org/cloud/bigtable...
// Copyright 2020 The go-lpc 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 conddb // import "github.com/go-lpc/mim/conddb" import ( "fmt" "math" "strconv" ) const ( numASICs = math.MaxUint8 ) type ASIC struct { Prim...
// // Copyright (c) 2020 10X Genomics, Inc. All rights reserved. // // Martian job monitor. // // Manages process lifetime and data collection for martian stage code. // package main import ( "fmt" "math" "os" "os/exec" "path" "regexp" "runtime" "strconv" "strings" "syscall" "time" "github.com/google/shl...
/******************************************************************************\ * The Romualdo Language * * * * Copyright 2020-2021 <NAME> * * Licensed...
// -*- coding: utf-8 -*- // Copyright (C) 2017 Nippon Telegraph and Telephone 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...
package codegen import ( "bufio" "context" "fmt" "io" "os" "os/exec" "strings" "sync" "github.com/docker/buildx/util/progress" shellquote "github.com/kballard/go-shellquote" "github.com/moby/buildkit/client" "github.com/moby/buildkit/client/llb" gateway "github.com/moby/buildkit/frontend/gateway/client" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.13.0 // source: wso2/discovery/subscription/application.proto package subscription import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/websecurityscanner/v1alpha/finding.proto package websecurityscanner import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors...
// ADVANCED DISTRIBUTED SYSTEMS package main // We import some useful modules import ( "bufio" "fmt" "math/rand" "net" "os" "strconv" "strings" "time" ) // We create the structure "Node". A "Node" will consist of an IP Address, Port, ID, what it receives and an id type Node struct { ip...
package service import ( "context" "encoding/json" "fmt" "io/ioutil" laserContext "laser-control/context" "laser-control/params" "math" "net/http" "sort" "strconv" "sync" "time" "github.com/algo-data-platform/LaserDB/sdk/go/laser_client/lib" "github.com/zentures/cityhash" // "real.path.com/ads/ads_comm...
// Copyright (c) 2013-2017 The btcsuite developers // Copyright (c) 2015-2017 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package rpc import ( "crypto/sha256" "crypto/subtle" "crypto/tls" "encoding/base64" "encoding/json" "fmt" "io" ...
// This file was generated from JSON Schema using quicktype, do not modify it directly. // To parse and unparse this JSON data, add this code to your project and do: // // chatPostMessage, err := UnmarshalChatPostMessage(bytes) // bytes, err = chatPostMessage.Marshal() package chat_postMessage import "bytes" im...
// Command Group: "Statistics & Population Genetics" package main import ( "flag" "fmt" "github.com/vertgenlab/gonomics/bed" "github.com/vertgenlab/gonomics/dna" "github.com/vertgenlab/gonomics/exception" "github.com/vertgenlab/gonomics/fasta" "github.com/vertgenlab/gonomics/fileio" "github.com/vertgenlab/gon...
package purbs import ( "crypto/cipher" "crypto/hmac" "crypto/sha256" "encoding/binary" "sort" "strconv" "gopkg.in/dedis/kyber.v2/util/key" "gopkg.in/dedis/kyber.v2/util/random" "gopkg.in/dedis/onet.v2/log" ) // Creates a struct with parameters that are *fixed* across all PURBs. Should be constants, but here...
/* * Minio Client, (C) 2015, 2016 Minio, 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...
package transport import ( "bytes" "fmt" "time" ) const ( // Maximum reordering in packets before packet threshold loss detection considers a packet lost. // https://www.rfc-editor.org/rfc/rfc9002.html#section-6.1.1 packetThreshold = 3 // Maximum reordering in time before time threshold loss detection conside...
package main import ( "context" "crypto/ed25519" "fmt" "net/http" "os" "strconv" "strings" "sync" "time" "github.com/aws/aws-sdk-go-v2/aws/external" "github.com/aws/aws-sdk-go-v2/service/dynamodb" "github.com/aws/aws-sdk-go-v2/service/sqs" "github.com/aws/aws-sdk-go/aws/session" dynamodbv1 "github.com/a...
// Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
// Package bitswap implements the IPFS exchange interface with the BitSwap // bilateral exchange protocol. package bitswap import ( "context" "errors" "fmt" "sync" "time" delay "github.com/ipfs/go-ipfs-delay" deciface "github.com/ipfs/go-bitswap/decision" bsbpm "github.com/ipfs/go-bitswap/internal/blockprese...
// Copyright 2018 GoPacket Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. package layers import ( "encoding/binary" "errors" "fmt" "math" "net" "time" "github.com/graniet/gopacket" ) co...
// Copyright (c) 2014 RightScale, Inc. - see LICENSE // Websockets tunnel client, which runs at the HTTP server end (yes, I know, it's confusing) // This client connects to a websockets tunnel server and waits to receive HTTP requests // tunneled through the websocket, then issues these HTTP requests locally to an...
package controller import ( "context" "fmt" operatorv1 "github.com/openshift/api/operator/v1" "github.com/openshift/cluster-ingress-operator/pkg/dns" logf "github.com/openshift/cluster-ingress-operator/pkg/log" "github.com/openshift/cluster-ingress-operator/pkg/manifests" "github.com/openshift/cluster-ingress-...
package e2e import ( "bytes" "context" "fmt" "math/rand" "testing" "time" "github.com/coreos/etcd-operator/pkg/apis/etcd/v1beta2" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime/schema" pgsqlapis "github.com/operator-backing-service-samples/postgresql-operator/pkg/apis" pgv1...
/* Copyright 2019 The Tekton 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, software d...
package processor import ( "fmt" "sort" "sync" "time" "github.com/Jeffail/benthos/v3/internal/docs" "github.com/Jeffail/benthos/v3/lib/log" "github.com/Jeffail/benthos/v3/lib/message/tracing" "github.com/Jeffail/benthos/v3/lib/metrics" "github.com/Jeffail/benthos/v3/lib/types" "github.com/Jeffail/gabs/v2" )...
package main import ( "fmt" "math/rand" "os" "strconv" "strings" "time" lib "github.com/cncf/devstatscode" yaml "gopkg.in/yaml.v2" ) // metrics contain list of metrics to evaluate type metrics struct { Metrics []metric `yaml:"metrics"` } // metric contain each metric data // some metrics can be allowed to ...
// Copyright © 2013 Galvanized Logic Inc. // Use is governed by a FreeBSD license found in the LICENSE file. // Package gen is used to generate the golang OpenGL bindings from the // latest OpenGL specification header file. The 4.3 specification header // file was downloaded from // www.opengl.org/registry/api/glc...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/service/ratelimit/v2/rls.proto package envoy_service_ratelimit_v2 import ( context "context" fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" ratelimit "github.com/envoyproxy/go...
// Copyright (c) 2017, <NAME> // See LICENSE for details. package hcdataapi import ( "container/heap" "fmt" "math" "sync" "time" "github.com/HcashOrg/hcd/chaincfg/chainhash" ) // constants from time const ( SecondsPerMinute int64 = 60 SecondsPerHour int64 = 60 * 60 SecondsPerDay int64 = 24 * SecondsPe...
package chi import ( "fmt" "log" "net/http" "testing" ) func TestTree(t *testing.T) { hStub := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {}) hIndex := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {}) hFavicon := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) ...
// Copyright (c) 2022 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
// Copyright (c) 2019 Uber Technologies, 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 o...
// Copyright (c) 2018-2021, <NAME> // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. package td import ( "bytes" "fmt" "reflect" "strconv" "strings" "unicode" "unicode/utf8" "github.com/maxatome/go-te...
// Copyright 2019 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 loader import ( "bytes" "cmd/internal/bio" "cmd/internal/dwarf" "cmd/internal/objabi" "cmd/internal/sys" "cmd/oldlink/internal/sym" "fmt" "log"...
// Copyright 2018 The Fuchsia 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 ir import ( "flag" "fmt" "io" "log" "sort" "strings" "text/template" "fidl/compiler/backend/common" "fidl/compiler/backend/types" ) var...
// Copyright (C) 2020 Google 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 t...
package main import ( "fmt" "log" "math" "os" "runtime" "sort" "strings" "sync" "time" "git.curoverse.com/arvados.git/sdk/go/arvados" "git.curoverse.com/arvados.git/sdk/go/keepclient" ) // CheckConfig returns an error if anything is wrong with the given // config and runOptions. func CheckConfig(config Co...
// Copyright 2019 Yunion // // 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...
package raft import ( "context" "errors" "fmt" "math/rand" "net" "net/http" "sync" "sync/atomic" "time" "github.com/sumimakito/raft/pb" "go.uber.org/zap" "google.golang.org/protobuf/proto" ) type ServerInfo struct { ID string `json:"id"` Endpoint string `json:"endpoint"` } type ServerStates stru...
// This file and its contents are licensed under the Apache License 2.0. // Please see the included NOTICE for copyright information and // LICENSE for a copy of the license. package querier import ( "context" "fmt" "math" "sort" "strings" "time" "github.com/blang/semver/v4" "github.com/jackc/pgx/v4" "githu...
/******************************************************************************* * Copyright 2020 BenchmarkXPRT Development Community * * 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 * * h...
// Copyright (c) 2003-2005 <NAME>. All rights reserved. // Copyright (c) 2006-2015 Sippy Software, Inc. All rights reserved. // Copyright (c) 2015 <NAME>. All rights reserved. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source: pkg/proto/configuration/bb_replicator/bb_replicator.proto package bb_replicator import ( blobstore "github.com/buildbarn/bb-storage/pkg/proto/configuration/blobstore" global "github.com/build...
package expreduce import ( "fmt" "log" "os" "os/signal" "strings" "time" "github.com/corywalker/expreduce/expreduce/atoms" "github.com/corywalker/expreduce/expreduce/logging" "github.com/corywalker/expreduce/expreduce/parser" "github.com/corywalker/expreduce/expreduce/streammanager" "github.com/corywalker/...
package blockpool import ( "math/big" "math/rand" "sort" "sync" "time" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/errs" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/logger/glog" ) // the blockpool's mod...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: moc_baremetalhostagent.proto package baremetalhostagent import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "github.com/microsoft/moc/rpc/common" grpc "google.golang...
package env import ( "os" "testing" "time" "github.com/jbsmith7741/go-tools/appenderr" "github.com/jbsmith7741/trial" ) /* func TestDecoder_Unmarshal(t *testing.T) { type Level3 struct { FirstField *string SecondField string `env:"second_field"` } type level2 struct { FirstField *string SecondFiel...
package aws import ( "context" "errors" "fmt" "sort" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/ec2/ec2iface" "github.com/aws/aws-sdk-go/service/e...
/* * Copyright 2019 Armory, 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, ...
package main import ( "fmt" "image" "image/color" "image/draw" "math" "os" "golang.org/x/image/font" "golang.org/x/image/font/opentype" "golang.org/x/image/font/sfnt" "golang.org/x/image/math/fixed" "golang.org/x/image/vector" ) type FontFace struct { handle font.Face fontHandle *sfnt.Font buffer ...
package types import ( "crypto/tls" "crypto/x509" "encoding" "errors" "fmt" "io/ioutil" "os" "strconv" "strings" "github.com/abronan/valkeyrie/store" "github.com/containous/flaeg/parse" "github.com/containous/mux" "github.com/containous/traefik/ip" "github.com/containous/traefik/log" traefiktls "github...
// Copyright 2013 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. // Native Client SRPC message passing. // This code is needed to invoke SecureRandom, the NaCl equivalent of /dev/random. package syscall import ( "errors" ...
package smoketest import ( "bufio" "bytes" "context" "database/sql" "fmt" "math/rand" "os" "os/exec" "regexp" "sort" "strings" "testing" "text/template" "time" _ "github.com/jackc/pgx/v4/stdlib" // import db driver uuid "github.com/satori/go.uuid" "github.com/target/goalert/migrate" "github.com/targ...
// Copyright 2013 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 import ( "bytes" "flag" "fmt" "go/ast" "go/parser" "go/token" "io" "log" "os" "sort" "cmd/internal/edit" "cmd/internal/objabi" ) con...
// Copyright 2017 <NAME> // // // SPDX-License-Identifier: UPL-1.0 OR Apache-2.0 package godror /* #include "dpiImpl.h" */ import "C" import ( "bytes" "database/sql/driver" "fmt" "io" "math" "reflect" "strconv" "time" "unsafe" errors "golang.org/x/xerrors" ) var _ = driver.Rows((*...
package buildah import ( "archive/tar" "fmt" "io" "io/ioutil" "net/http" "net/url" "os" "path" "path/filepath" "strconv" "strings" "sync" "syscall" "time" "github.com/containers/buildah/copier" "github.com/containers/buildah/define" "github.com/containers/buildah/pkg/chrootuser" "github.com/containe...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: alameda_api/v1alpha1/datahub/events/types.proto package events 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 ...
package cst import ( "context" "fmt" "io" "net/http" "strconv" "strings" "time" "github.com/minio/cli" miniogopolicy "github.com/minio/minio-go/v6/pkg/policy" "github.com/minio/minio-go/v6/pkg/s3utils" minio "github.com/minio/minio/cmd" "github.com/minio/minio/cmd/logger" "github.com/mini...