text stringlengths 8.57k 38.1k |
|---|
package main
import (
"encoding/base64"
"encoding/json"
"fmt"
"net/http"
"strconv"
"strings"
"time"
log "github.com/Sirupsen/logrus"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sts"
"github.com/gorilla/mux"
)
// StartServer starts a newly cre... |
package main
import (
"bufio"
"bytes"
"encoding/json"
"fmt"
"io"
"math/rand"
"net"
"sync"
"time"
log "github.com/sirupsen/logrus"
"github.com/willf/bitset"
"github.com/qlcchain/qlc-pool/simplejson"
)
const (
MaxReqSize = 10 * 1024 * 1024
)
const (
SessionStateConnected = iota
SessionStateSubscribed... |
// 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 app
import (
"bytes"
"context"
"crypto/sha1"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"reflect"
"runtime"
"strconv"
"strings"
"sync"
"text/template"
"time"
"github.com/maxence-charriere/go-app/v9/pkg/errors"
)
const (
defaultThemeColor = "#2d2c2c"
defaultPreRenderCacheSize ... |
// Copyright 2018 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 applicable ... |
// Code generated by protoc-gen-go.
// source: testv3.proto
// DO NOT EDIT!
/*
Package grpc_testing_not_regenerate is a generated protocol buffer package.
It is generated from these files:
testv3.proto
It has these top-level messages:
SearchResponseV3
SearchRequestV3
*/
package grpc_testing_not_regenerate
import... |
// Copyright 2016 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 remote provides our interface to the Google remote execution APIs
// (https://github.com/bazelbuild/remote-apis) which Please can use to distribute
// work to remote servers.
package remote
import (
"bytes"
"context"
"encoding/hex"
"fmt"
"os"
"path"
"sync"
"time"
pb "github.com/bazelbuild/remote-a... |
/*
Copyright 2020 Adevinta
*/
package store
import (
"context"
"fmt"
"sort"
"time"
"github.com/jmoiron/sqlx"
log "github.com/sirupsen/logrus"
)
const (
FindingStatusOpen = "OPEN"
FindingStatusFixed = "FIXED"
FindingStatusNew = "NEW"
FindingStatusInvalidated = "INVALIDATED"
Findin... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: desc_test2.proto
package testprotos
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
nopkg "github.com/jhump/protoreflect/internal/testprotos/nopkg"
pkg "github.com/jhump/protoreflect/internal/testprotos/pkg"
math "math"
)
// Reference impor... |
// Copyright 2013 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package network
import (
"bytes"
"fmt"
"net"
"sort"
"github.com/juju/collections/set"
"github.com/juju/errors"
)
// Private and special use network ranges for IPv4 and IPv6.
// See: http://tools.ietf.org/html/rfc1918
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/probes/http/proto/config.proto
package proto
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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/filter/network/thrift_proxy/v3alpha/thrift_proxy.proto
package envoy_config_filter_network_thrift_proxy_v3alpha
import (
fmt "fmt"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
types "github.com/gogo/protobuf/types"
proto "github.co... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/errors/bidding_error.proto
package errors
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
v... |
/*
Copyright © 2020 Doppler <<EMAIL>>
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 paginate
import (
"database/sql"
"errors"
"fmt"
"reflect"
"regexp"
"strings"
"sync"
"time"
)
// ErrPaginatorIsClosed is an error returned by Scan when trying to Scan
// on a Paginator that is closed. That is, a paginator whose values were
// already scanned.
var ErrPaginatorIsClosed = errors.New("pagi... |
// Copyright (c) 2018 Cisco and/or its affiliates.
//
// 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... |
// Copyright 2020 The Moov Authors
// Use of this source code is governed by an Apache License
// license that can be found in the LICENSE file.
package config
const (
// TRecordType indicates type of transmitter “T” record
TRecordType = "T"
// ARecordType indicates type of payer “A” record
ARecordType = "A"
// ... |
// Copyright 2015 The Vanadium 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 vom_test
import (
"bytes"
"fmt"
"io"
"math/rand"
"os"
"reflect"
"runtime"
"strings"
"sync"
"testing"
"github.com/davecgh/go-spew/spew... |
// Copyright 2019 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 security
import (
"context"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
"syscall"
"github.com/shirou/gopsut... |
package main
import "bufio"
import "fmt"
import "os"
import "encoding/hex"
import "log"
import "io/ioutil"
var (
debug = true
// Rijndael S-box
s = [256]byte {
0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76,
0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0xA... |
// app interface for graphical user interface.
// The basic business execution order is: New()-->[SetLog(io.Writer)-->]Init()-->SpiderPrepare()-->Run()
package app
import (
"io"
"reflect"
"strconv"
"strings"
"sync"
"time"
"github.com/henrylee2cn/pholcus/app/crawler"
"github.com/henrylee2cn/pholcus/app/distrib... |
// Copyright 2014 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 irsdk
import "C"
import (
"bytes"
"errors"
"fmt"
"log"
"reflect"
"unsafe"
utils "github.com/leonb/irsdk-go/utils"
)
var telemetryData = NewTelemetryData()
type irCharVar struct {
name string
desc string
value byte
unit string
}
type irBoolVar struct {
name string
desc string
value bool
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: result.proto
package releases
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 _ = math.Inf
// This is a compil... |
// 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.
// Solaris system calls.
// This file is compiled as ordinary Go code,
// but it is also input to mksyscall,
// which parses the //sys lines and generates syste... |
package zorm
import (
"database/sql"
"errors"
"reflect"
"regexp"
"strconv"
"strings"
"time"
"gitee.com/chunanyong/zorm/gouuid"
)
//wrapPageSQL 包装分页的SQL语句
//wrapPageSQL SQL statement for wrapping paging
func wrapPageSQL(dbType string, sqlstr string, page *Page) (string, error) {
//新的分页方法都已经不需要order by了,不再强制检... |
// Package v4 implements signing for AWS V4 signer
//
// Provides request signing for request that need to be signed with
// AWS V4 Signatures.
//
// Standalone Signer
//
// Generally using the signer outside of the SDK should not require any additional
// logic when using Go v1.5 or higher. The signer does this by tak... |
/*
Copyright 2016 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 tryjobs
import (
"context"
"encoding/json"
"fmt"
"net/http"
"strconv"
"strings"
"sync"
"time"
"github.com/golang/protobuf/ptypes"
buildbucketpb "go.chromium.org/luci/buildbucket/proto"
buildbucket_api "go.chromium.org/luci/common/api/buildbucket/buildbucket/v1"
"go.skia.org/infra/go/buildbucket"
... |
// Copyright (c) 2013-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 main
import (
"fmt"
"net"
"os"
"path/filepath"
"runtime"
"sort"
"strconv"
"strings"
flags "github.com... |
package migration_01_to_11
import (
"errors"
"fmt"
"io"
"strconv"
"strings"
"sync"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/dcrec/secp256k1/v4"
"github.com/decred/dcrd/dcrutil/v4"
"github.com/decred/dcrd/wire"
"github.com/decred/dcrlnd/keychain"
"github.com/decred/dcrlnd/lnwire"... |
// Copyright 2013, Google 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 topo
import (
"fmt"
"reflect"
"sort"
"strconv"
"strings"
"sync"
"code.google.com/p/go.net/context"
log "github.com/golang/glog"
"github.com/you... |
package main
import (
"bufio"
"bytes"
"context"
"crypto"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"encoding/json"
"encoding/pem"
"errors"
"flag"
"fmt"
"io/ioutil"
"log"
"net"
"net/http"
"net/url"
"os"
"os/exec"
"path/filepath"
"s... |
/*
Copyright © 2021 VMware
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
distribut... |
package server
import (
"encoding/json"
"fmt"
"strings"
"sync"
"github.com/blang/semver/v4"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/OpenBankingUK/conformance-suite/pkg/authentication"
"github.com/OpenBankingUK/conformance-suite/pkg/discovery"
"github.com/OpenBankingUK/conformance-s... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/tasks/v2/target.proto
package tasks
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not otherwise used.... |
// Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" fil... |
package accounting
import ()
type Locale struct {
Name string // currency name
FractionLength int // default decimal length
ThouSep string // thousands seperator
DecSep string // decimal seperator
SpaceSep string // space seperator
UTFSymbol string // UTF symbol
HTMLSymbo... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: opencensus/proto/agent/common/v1/common.proto
package v1
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they are not otherwise ... |
// Copyright 2010 <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... |
// A REST client to interact with LINSTOR's REST API
// Copyright (C) LINBIT HA-Solutions GmbH
// All Rights Reserved.
// Author: <NAME> <<EMAIL>>
//
// 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 Lic... |
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package s3
import (
"context"
"io"
"time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
"github.com/aws/aws-sdk-go-v2/private/protocol"
)
// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006... |
package instance
import (
"errors"
"fmt"
"strconv"
"time"
"github.com/project-flogo/flow/state"
"github.com/project-flogo/core/support"
"github.com/project-flogo/core/support/log"
"github.com/project-flogo/core/support/trace"
"github.com/project-flogo/flow/definition"
"github.com/project-flogo/flow/model"
... |
// Copyright 2019 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 crostini
import (
"context"
"fmt"
"os"
"path/filepath"
"strconv"
"strings"
"time"
"golang.org/x/sys/unix"
"chromiumos/tast/errors"
... |
package c8y
import (
"bytes"
"context"
"crypto/tls"
"encoding/base64"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"path"
"reflect"
"regexp"
"strings"
"sync"
"github.com/google/go-querystring/query"
"github.com/tidwall/gjson"
"moul.io/http2curl"
)
// ContextAuthTokenKey todo
ty... |
//
//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 in ... |
package log
import (
"context"
"fmt"
"github.com/tiandh987/SharkAgent/pkg/log/klog"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"log"
"sync"
)
// 文件内容:
// 1、std
// 全局 zapLogger
// 2、Init()
// 初始化 std
// 3、New()
// 通过给定的 Options 创建一个 zapLogger
// 4、实现 Logger 接口定义的方法
//
// 1、type InfoLogger interface
// 2、ty... |
// Package markdown translates Markdown to quiki source code.
package markdown
import (
"bytes"
"fmt"
"io"
"regexp"
"strings"
"github.com/russross/blackfriday/v2"
)
var punctuationRegex = regexp.MustCompile(`[^\w\- ]`)
// Run parses Markdown and renders quiki soure code.
func Run(input []byte) []byte {
r := ... |
// Copyright 2020 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 source
import (
"bytes"
"fmt"
"go/ast"
"go/format"
"go/parser"
"go/token"
"go/types"
"strings"
"unicode"
"golang.org/x/tools/go/analysis"
"... |
// Simple SISO Channel interface that creates links and emulates multipath channel between transmitters and receivers
// Will soon be moved to github.com/wiless/gocomm package
package channel
import (
cell "github.com/wiless/cellular"
"github.com/wiless/gocomm"
"github.com/wiless/gocomm/core"
"github.com/wiless/vl... |
// Copyright (c) 2014-2018 by <NAME>. All Rights Reserved.
// Use of this source code is governed by a MIT-style license that can
// be found in the LICENSE file.
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// prope... |
package main
import (
"bytes"
"context"
"os/exec"
"regexp"
"strings"
"time"
"github.com/dpinela/mflg/internal/buffer"
"github.com/dpinela/mflg/internal/clipboard"
"github.com/dpinela/mflg/internal/config"
"github.com/dpinela/mflg/internal/highlight"
"github.com/dpinela/mflg/internal/streak"
"github.com/dp... |
package main
import (
"flag"
utils "github.com/opoirion/snATACUtils/ATACdemultiplexUtils"
"github.com/biogo/store/interval"
"fmt"
"log"
"strings"
"strconv"
"bytes"
"path"
"io"
"sort"
"time"
)
/*BEDFILENAME bed file name (input) */
var BEDFILENAME utils.Filename
/*PEAKFILE file containg cluster-specific... |
package main
//go:generate gotext -srclang=en update -out=./catalog.go -lang=en,de
import (
"camcontrol/camera"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"time"
"github.com/asticode/go-astikit"
"github.com/asticode/go-astilectron"
)
var (
VersionAstilectron s... |
// SPDX-License-Identifier: Apache-2.0
// Copyright 2016-2020 Authors of Cilium
package cmd
import (
"bytes"
"encoding/json"
"fmt"
stdlog "log"
"net"
"sync"
"time"
"github.com/go-openapi/runtime/middleware"
"github.com/google/uuid"
"github.com/cilium/cilium/api/v1/models"
. "github.com/cilium/cilium/api/... |
// Copyright (c) 2018-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 cli
import (
"os"
"github.com/hpcng/singula... |
// Copyright 2015 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.
//go:generate go run gen.go
package draw
import (
"image"
"image/color"
"math"
"sync"
"bosun.org/_third_party/golang.org/x/image/math/f64"
)
// Copy co... |
/*
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 ... |
// Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" fil... |
package build
import (
"bufio"
"context"
"fmt"
"os"
"os/exec"
"path/filepath"
"reflect"
"strings"
"sync"
"text/template"
"time"
"github.com/testground/testground/pkg/api"
"github.com/testground/testground/pkg/docker"
"github.com/testground/testground/pkg/rpc"
"github.com/docker/docker/api/types"
"git... |
// 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... |
package repostitory
import (
"context"
"encoding/hex"
"fmt"
"math/rand"
"regexp"
"strconv"
"time"
"github.com/bianjieai/tibc-relayer-go/internal/pkg/types/errors"
"github.com/tendermint/tendermint/light/provider"
tmtypes "github.com/tendermint/tendermint/types"
"github.com/irisnet/core-sdk-go/bank"
"gi... |
package claim
import (
"encoding/base64"
"encoding/json"
"io/ioutil"
"os"
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/cnabio/cnab-go/bundle"
"github.com/cnabio/cnab-go/bundle/definition"
"github.com/cnabio/cnab-go/utils/crud"
)
var _ Pr... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: components/automate-gateway/api/iam/v2/common/rules.proto
package common
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.E... |
/* @file @copyright defined in aergo/LICENSE.txt */
package p2p
import (
"fmt"
"net"
"strconv"
"sync"
"sync/atomic"
"time"
"github.com/aergoio/aergo/p2p/metric"
"github.com/aergoio/aergo/p2p/p2pcommon"
"github.com/aergoio/aergo/p2p/p2putil"
"github.com/aergoio/aergo/p2p/subproto"
inet "github.com/libp2p/... |
/*
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 i... |
package core
import (
"bytes"
"fmt"
"io"
"math/big"
"sync"
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethe... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/service/auth/v2/external_auth.proto
package envoy_service_auth_v2
import (
context "context"
fmt "fmt"
core "github.com/cilium/proxy/go/envoy/api/v2/core"
_type "github.com/cilium/proxy/go/envoy/type"
_ "github.com/cncf/udpa/go/udpa/annotations"
... |
// Package openvg is a high-level 2D vector graphics library built on OpenVG
package openvg
/*
#cgo CFLAGS: -I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads
#cgo LDFLAGS: -L/opt/vc/lib -lGLESv2 -lEGL -lbcm_host -ljpeg
#include "VG/openvg.h"
#include "VG/vgu.h"
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: peer/proposal_response.proto
package peer
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
common "github.com/hyperledger/fabric-protos-go/common"
math "math"
)
// Reference imports to ... |
package main
import (
"encoding/csv"
"flag"
"fmt"
"io"
"log"
"os"
"regexp"
"strconv"
"strings"
"time"
"github.com/paidright/datalab/util"
)
var version = flag.Bool("version", false, "Just print the version and exit")
var quiet = flag.Bool("quiet", false, "Tone down the output noise")
var colsString = flag... |
// 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 bootperf provides constants and common utilities for test platform.BootPerf.
package bootperf
import (
"bytes"
"context"
"io/ioutil"
"m... |
// Copyright 2019 <NAME><<EMAIL>>
//
// 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 ... |
/*
Copyright 2020 Authors of Arktos.
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... |
package converter
import (
"bytes"
"io"
"log"
"os"
"path/filepath"
"strings"
"github.com/binzume/modelconv/geom"
"github.com/binzume/modelconv/mqo"
"github.com/qmuntal/gltf"
"github.com/qmuntal/gltf/modeler"
"image"
"image/color"
"image/jpeg"
"image/png"
_ "image/gif"
_ "image/jpeg"
"github.com/bl... |
// Copyright 2015 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package params
import (
"github.com/go-macaroon-bakery/macaroon-bakery/v3/bakery"
"github.com/juju/charm/v8"
"gopkg.in/macaroon.v2"
"github.com/juju/juju/core/life"
)
// ExternalControllerInfoResults contains the result... |
// Copyright (c) 2014-2016 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package chaincfg
import (
"time"
"github.com/satindergrewal/btcd/chaincfg/chainhash"
"github.com/satindergrewal/btcd/wire"
)
// genesisCoinbaseTx is the coinbase t... |
package statement_test
import (
"bytes"
"database/sql"
"encoding/json"
"strconv"
"testing"
"github.com/genjidb/genji"
"github.com/genjidb/genji/document"
"github.com/genjidb/genji/internal/testutil"
"github.com/genjidb/genji/internal/testutil/assert"
"github.com/genjidb/genji/types"
"github.com/stretchr/te... |
package driver
import (
"context"
"encoding/json"
"fmt"
gosync "sync"
"time"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/l2"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/e... |
package e2e
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
"testing"
"time"
gravitytypes "github.com/Gravity-Bridge/Gravity-Bridge/module/x/gravity/types"
"github.com/cosmos/cosmos-sdk/server"
srvconfig "github.com/cosmos/cosmos-sdk/server... |
//
// Copyright 2020 The Dragonfly 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 la... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/api/v2/core/config_source.proto
package core
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
import duration "github.com/golang/protobuf/ptypes/duration"
import _ "github... |
package i2c
// DO NOT EDIT THIS FILE. GENERATED BY xgen.
import (
"bits"
"mmio"
"unsafe"
"stm32/o/f411xe/mmap"
)
type I2C_Periph struct {
CR1 RCR1
CR2 RCR2
OAR1 ROAR1
OAR2 ROAR2
DR RDR
SR1 RSR1
SR2 RSR2
CCR RCCR
TRISE RTRISE
FLTR RFLTR
}
func (p *I2C_Periph) BaseAddr() uintptr {
retu... |
// +build !exclude_app_test
package node
import (
"bufio"
"context"
"fmt"
"io"
lg "log"
"os"
"path/filepath"
"regexp"
"runtime"
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
pb "github.com/spacemeshos/api/release/go/spa... |
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package gen
import (
"fmt"
"io"
"strconv"
"time"
)
type _Entity interface {
Is_Entity()
}
type ExportFilterType struct {
And []*ExportFilterType `json:"AND"`
Or []*ExportFilterType `json:"OR"`
ID ... |
/*
Copyright 2018 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, ... |
// 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 w... |
package main
import (
"bytes"
"crypto/tls"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"net/http"
"os"
"path"
"path/filepath"
"strings"
"time"
"github.com/golang/glog"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/api/v1"
clientset "k8s.io/kubernetes/pkg/cli... |
package config
type ConfigHighLevel struct {
// Initial list of brokers as a CSV list of broker host or host:port. The application may also use rd_kafka_brokers_add() to add brokers during runtime.
// kafka broker 地址
// 对应为 metadata.broker.list 或 bootstrap.servers
// alias: bootstrap.servers
MetadataBrokerList st... |
// Package hollownodes implements hollow nodes.
//
// ref. https://github.com/kubernetes/kubernetes/blob/master/pkg/kubemark/hollow_kubelet.go
// ref. https://github.com/kubernetes/kubernetes/blob/master/pkg/kubemark/hollow_proxy.go
//
// The purpose is to make it easy to run on EKS.
// ref. https://github.com/kubernet... |
// Code generated by transpiler. DO NOT EDIT.
/**
* Go Video Downloader
*
* Copyright 2019 Tenta, 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.or... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/targets/gce/proto/config.proto
package proto
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... |
package handler
import (
"bytes"
"context"
"crypto/sha256"
"crypto/tls"
"encoding/base64"
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
"time"
"github.com/go-redis/redis/v8"
"github.com/golang-jwt/jwt"
alertpb "github.com/m3o/services/alert/proto/alert"
balance "github.com/m3o/services/balance/p... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: policy/v1beta1/cfg.proto
/*
Package v1beta1 is a generated protocol buffer package.
It is generated from these files:
policy/v1beta1/cfg.proto
It has these top-level messages:
AttributeManifest
Rule
Action
Instance
Handler
Connection
*/
package v1b... |
package discovery
import (
"os"
"context"
"encoding/json"
"fmt"
"log"
"strconv"
"sort"
"sync"
"path/filepath"
"github.com/coreos/etcd/client"
"k8s.io/client-go/dynamic"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runti... |
// textViewNumbered.go
/*
This software use gotk3 that is licensed under the ISC License:
https://github.com/gotk3/gotk3/blob/master/LICENSE
Copyright ©2019 H.F.M - TextView Numbered library "https//github/hfmrow"
This program comes with absolutely no warranty. See the The MIT License (MIT) for details:
https:/... |
package redisClient
import (
"errors"
"fmt"
"sync"
"time"
"github.com/sirupsen/logrus"
"github.com/go-redis/redis"
)
// RedisNil means nil reply, .e.g. when key does not exist.
const RedisNil = redis.Nil
// Client a struct representing the redis client
type Client struct {
opts Options
client Comma... |
package ingressmonitor
import (
"bytes"
"encoding/base32"
"errors"
"fmt"
"html/template"
"strings"
"time"
"github.com/jelmersnoeck/ingress-monitor/apis/ingressmonitor/v1alpha1"
"github.com/jelmersnoeck/ingress-monitor/internal/metrics"
"github.com/jelmersnoeck/ingress-monitor/internal/provider"
"github.com... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.13.0
// source: public/base/base.proto
package base
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/run... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.