text stringlengths 5.51k 28.1k |
|---|
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: binlogdata.proto
/*
Package binlogdata is a generated protocol buffer package.
It is generated from these files:
binlogdata.proto
It has these top-level messages:
Charset
BinlogTransaction
StreamKeyRangeRequest
StreamKeyRangeResponse
StreamTablesReque... |
// Copyright 2021 CloudJ Company Limited. All rights reserved.
package services
import (
"cloudiac/portal/consts"
"cloudiac/portal/consts/e"
"cloudiac/portal/libs/db"
"cloudiac/portal/models"
"cloudiac/portal/services/logstorage"
"cloudiac/portal/services/vcsrv"
"cloudiac/utils"
"cloudiac/utils/logs"
"contex... |
package gen_apiV2
import (
"bytes"
"fmt"
"github.com/davecgh/go-spew/spew"
"go/ast"
"go/printer"
"go/token"
"golang.org/x/tools/go/ast/astutil"
"golang.org/x/tools/go/packages"
"log"
"path"
"reflect"
"regexp"
"strings"
)
const mode packages.LoadMode = packages.NeedName |
packages.NeedTypes |
packages.N... |
// Code generated by mojo. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.19.4
// source: mojo/geom/feature.proto
package geom
import (
_ "github.com/mojo-lang/core/go/pkg/mojo"
core "github.com/mojo-lang/core/go/pkg/mojo/core"
protoreflec... |
package protocol
import (
"time"
gc "github.com/go-check/check"
)
// RPCSuite tests RPC Request & Response validation cases by building instances
// broken in every conceivable way, and incrementally updating them until they
// pass validation.
type RPCSuite struct{}
func (s *RPCSuite) TestReadRequestValidation(c... |
package box2d
import (
"image"
"math"
"unsafe"
)
type ContactFeatureType uint8
const (
ContactFeatureTypeVertex ContactFeatureType = 0
ContactFeatureTypeFace ContactFeatureType = 1
)
// ContactFeature is features that intersect to form the contact point
type ContactFeature struct {
IndexA uint8 ... |
package aws
import (
"encoding/json"
"encoding/pem"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/fullsailor/pkcs7"
"github.com/hashicorp/vault/helper/strutil"
"github.com/hashicorp/vault/logical"
"github.com/hashicorp/vault/logical/framework"
)
func pathL... |
package chart
import (
"errors"
"fmt"
"io"
"math"
"github.com/golang/freetype/truetype"
util "github.com/beevee/go-chart/util"
)
// BarChart is a chart that draws bars on a range.
type BarChart struct {
Title string
TitleStyle Style
ColorPalette ColorPalette
Width int
Height int
DPI float64
... |
// Copyright 2021 The Prometheus 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... |
//: ----------------------------------------------------------------------------
//: Copyright (C) 2017 Verizon. 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 Licen... |
package client
import (
"context"
"errors"
"fmt"
"math"
"sort"
"strings"
"sync"
"time"
"github.com/drand/drand/chain"
"github.com/drand/drand/log"
"github.com/hashicorp/go-multierror"
)
const (
defaultRequestTimeout = time.Second * 5
defaultSpeedTestInterval = time.Minute * 5
// defaultRequestConcur... |
package chain
import (
"context"
"encoding/json"
"runtime/debug"
"sync"
"gx/ipfs/QmNf3wujpV2Y7Lnj2hy2UrmuX8bhMDStRHbnSLh7Ypf36h/go-hamt-ipld"
"gx/ipfs/QmR8BauakNcBa3RbE4nbQu76PDiJgoQgz8AJdhJuiU4TAw/go-cid"
bstore "gx/ipfs/QmRu7tiRnFk9mMPpVECQTBQJqXtmG132jJxA1w9A7TtpBz/go-ipfs-blockstore"
"gx/ipfs/QmSz8kAe2JCK... |
package element
import (
"encoding/xml"
"errors"
"github.com/bhollier/ui/pkg/ui/util"
"github.com/faiface/pixel"
"github.com/faiface/pixel/pixelgl"
"github.com/xlab/treeprint"
"net/http"
)
// Interface type for something
// that is an element
type Element interface {
// Function to get the element's parent
G... |
package api
import (
"context"
"errors"
"fmt"
"github.com/gin-gonic/gin"
"github.com/jeremywohl/flatten"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
"gopkg.in/yaml.v2"
"io/ioutil"
"log"
"net/http"
"os"
"path/filepath"
"reflect"
"run... |
package rainforest
import (
"bufio"
"crypto/md5"
"encoding/hex"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"os/user"
"path/filepath"
"strconv"
"strings"
)
// RFMLReader reads form RFML formatted file.
// It exports some settings that can be set before parsing.
type RFMLReader struct {
r *bufio.Reader
// Version ... |
package configs
import (
"fmt"
"strings"
"github.com/nginxinc/kubernetes-ingress/internal/nginx"
api_v1 "k8s.io/api/core/v1"
"github.com/nginxinc/kubernetes-ingress/internal/configs/version2"
conf_v1alpha1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/configuration/v1alpha1"
)
const nginx502Server = "unix:... |
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the cod... |
package main
import (
"encoding/hex"
"fmt"
"os"
"strconv"
"github.com/fatih/color"
"github.com/kristjank/ark-go/arkcoin"
"github.com/kristjank/ark-go/core"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
)
//DisplayCalculatedVoteRatio based on parameters in config.toml
func DisplayCalculatedVoteRa... |
// Copyright © 2019 Annchain Authors <EMAIL ADDRESS>
//
// 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 applicab... |
/*
* Tencent is pleased to support the open source community by making 蓝鲸 available.
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the Li... |
package httpfs
import (
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"path"
"regexp"
"sort"
"strings"
"sync"
"time"
"github.com/kataras/compress"
)
var (
// Images a regexp that can be used on `DefaultCacheOptions.CompressIgnore`
// to ignore already-compressed images (and pdf).
Images =... |
package qcompile
import (
"fmt"
"go/ast"
"go/types"
"math"
"github.com/quasilyte/quasigo/internal/bytecode"
"github.com/quasilyte/quasigo/internal/ir"
"github.com/quasilyte/quasigo/internal/qopt"
"github.com/quasilyte/quasigo/internal/qruntime"
)
var voidType = &types.Tuple{}
var voidSlot = ir.Slot{Kind: ir... |
package dcos
import (
"bytes"
"crypto/x509"
"errors"
"io"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"time"
homedir "github.com/mitchellh/go-homedir"
toml "github.com/pelletier/go-toml"
"github.com/spf13/afero"
"github.com/spf13/cast"
)
// TOML keys for the DC/OS configuration.
const (
configKeyU... |
package main
import (
"errors"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"strconv"
"time"
"github.com/buger/jsonparser"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
"github.com/tkanos/gonfig"
)
type Configuration struct {
Cookie string
CrawlIntervalSecond int
Daily... |
// Package datagen used to generate millions of pseudo-random BSON documents
// and insert them into a Mongodb instance.
package datagen
import (
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
"runtime"
"sort"
"strconv"
"strings"
"sync"
"time"
"github.com/globalsign/mgo"
"github.com/globalsign/mg... |
package main
import (
"fmt"
"net/http"
"errors"
"bytes"
"encoding/json"
"io"
"io/ioutil"
"os"
//"speter.net/go/exp/math/dec/inf"
)
type V1ObjectMeta struct {
Name string `json:"name,omitempty"`
GenerateName string `json:"generateName... |
// Copyright (c) 2013-2017 The btcsuite developers
// Copyright (c) 2015-2021 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package schnorr
import (
"fmt"
"github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/chaincfg/chainhash"
s... |
// Package command implements helper functions for multi-command programs.
//
// This package includes types and functions for easily defining multiple
// subcommands with different options. A "help" subcommand is also automatically
// generated, which might be used to list all the available subcommands or
// to view a... |
// Package trex is a Tiny Regular EXpressions implementation,
// heavilly inspired by "A Regular Expression Matcher" -
// http://www.cs.princeton.edu/courses/archive/spr09/cos333/beautiful.html
// and https://github.com/monolifed/tiny-regex-mod
// Supports:
// '^' Start anchor, matches start of string
// '$'... |
/*
* Copyright 2016 Xiaomi Corporation. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*
* Authors: <NAME> <<EMAIL>>
*/
package govs
import (
"encoding/json"
"fmt"
"net"
"net/rpc"
"net/rpc/jsonrpc"
"strconv"
"strings"
)
const ... |
package check
import (
"luahelper-lsp/langserver/check/annotation/annotateast"
"luahelper-lsp/langserver/check/annotation/annotatelexer"
"luahelper-lsp/langserver/check/annotation/annotateparser"
"luahelper-lsp/langserver/check/common"
"luahelper-lsp/langserver/log"
"os/user"
"strings"
"time"
)
// 这个文件为因为引入了注... |
package registry
import (
"context"
"strconv"
"time"
"github.com/operator-framework/operator-marketplace/pkg/apis/operators/v2"
"github.com/operator-framework/operator-marketplace/pkg/builders"
wrapper "github.com/operator-framework/operator-marketplace/pkg/client"
"github.com/operator-framework/operator-marke... |
// Copyright 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 required by applicable law or agreed to in writing, ... |
// Code generated by goctl. DO NOT EDIT!
// Source: sys.proto
//go:generate mockgen -destination ./sys_mock.go -package sysclient -source $GOFILE
package sysclient
import (
"context"
"go-zero-admin/rpc/sys/sys"
"github.com/tal-tech/go-zero/zrpc"
)
type (
SysLogListData = sys.SysLogListData
JobListResp... |
package language
// Code generated by gen/scripts.go DO NOT EDIT.
const (
Old_Sogdian = Script(0x536f676f)
Tifinagh = Script(0x54666e67)
Tagalog = Script(0x54676c67)
Unknown = Script(0x5a7a7a7a)
Khojki = Script(0x4b686f6a)
Latin ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.14.0
// source: config/service/topology/v1/topology.proto
package topologyv1
import (
_ "github.com/envoyproxy/protoc-gen-validate/validate"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
pr... |
// 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 main
import (
"bytes"
"flag"
"fmt"
"image/color"
"io"
"log"
"math"
"os"
"reflect"
"sort"
"strings"
"github.com/aclements/go-moremath/scale... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.11.4
// source: service.proto
package grpcservice
import (
context "context"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.gola... |
// Copyright 2015-2019 Bleemeo
//
// bleemeo.com an infrastructure monitoring solution in the Cloud
//
// 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/LI... |
// Cryptocurrency arbitrage trading system
package main
import (
"bitfx/bitfinex"
"bitfx/btcchina"
"bitfx/exchange"
"bitfx/forex"
"bitfx/okcoin"
"encoding/csv"
"flag"
"fmt"
"log"
"math"
"os"
"os/exec"
"strconv"
"time"
"code.google.com/p/gcfg"
)
// Config stores user configuration
type Config struct {... |
package chord
import (
"bytes"
"encoding/binary"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"log"
"sync/atomic"
"time"
"github.com/hexablock/go-chord/coordinate"
)
var (
errAllKnownSuccDead = errors.New("all known successors dead")
errExhaustedAllPredNodes = errors.New("exhausted all preceeding n... |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package ecs provides a client to make API requests to Amazon Elastic Container Service.
package ecs
import (
"errors"
"fmt"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: list.proto
package event
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/mwitkow/go-proto-validators"
container "github.com/easyopsapis/easyops-api-go/protorepo-models/easyops/model/contai... |
package main
import (
"context"
"fmt"
"io"
"log"
"sort"
"strconv"
"strings"
"time"
"github.com/jbsmith7741/uri"
jsoniter "github.com/json-iterator/go"
"github.com/pcelvng/task"
"github.com/pcelvng/task-tools/db"
"github.com/pcelvng/task-tools/file"
"github.com/pkg/errors"
)
type InfoURI struct {
FileP... |
// Scry Info. All rights reserved.
// license that can be found in the license file.
package events
import (
"context"
"encoding/binary"
"errors"
"fmt"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-... |
package tsdb
import (
"encoding/binary"
"fmt"
"math"
"sort"
"time"
"github.com/boltdb/bolt"
"github.com/influxdb/influxdb/influxql"
"github.com/influxdb/influxdb/meta"
)
// tx represents a transaction that spans multiple shard data stores.
// This transaction will open and close all data stores atomically.
t... |
package main
import (
"bufio"
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"regexp"
"strconv"
"strings"
"text/template"
"github.com/urfave/cli/v2"
)
type ServiceAccount struct {
ProjectID string `json:"project_id"`
}
var (
// Version is set at compile time.
version string
// Build r... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/customer_negative_criterion.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
wrappers "github.com/catper/protobuf/ptypes/wrappers"
common "google.golang.org/genproto/googl... |
// +build linux
package ruby
import (
"bytes"
"encoding/binary"
"fmt"
"log"
"os"
"unsafe"
"github.com/tracecap/tracecap/collectors"
"github.com/tracecap/tracecap/tracecappb"
"github.com/cilium/ebpf"
"github.com/cilium/ebpf/asm"
ringbuffer "github.com/cilium/ebpf/perf"
"golang.org/x/sys/unix"
)
// #cgo C... |
// SPDX-FileCopyrightText: 2020-present Open Networking Foundation <<EMAIL>>
//
// SPDX-License-Identifier: Apache-2.0
package path
import (
"fmt"
"regexp"
"sort"
"strings"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"github.com/onosproject/onos-lib-go/pkg/errors"
configapi "github.com/o... |
// Code generated by smithy-go-codegen DO NOT EDIT.
package codecommit
import (
"context"
cryptorand "crypto/rand"
"github.com/aws/aws-sdk-go-v2/aws"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/retry"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
awshttp "github... |
//go:build go1.16
// +build go1.16
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the cod... |
package blockchair
import (
"encoding/json"
"strings"
)
// DataAddress includes full server response to address request.
type DataAddress struct {
Data map[string]AddressInfo `json:"data"`
Context ContextAddress `json:"context"`
}
// DataAddressEth includes full server response to address request for ... |
// Copyright (c) 2016-2017 The btcsuite developers
// Copyright (c) 2016-2017 The Lightning Network Developers
// Copyright (c) 2018-2019 The Hdfchain developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package gcs
import (
"bytes"
"encoding/binary"
"fmt"
... |
package main
import (
"context"
"flag"
"math/rand"
"net/http"
_ "net/http"
_ "net/http/pprof"
"os"
"os/signal"
"strconv"
"strings"
"syscall"
"time"
"github.com/mr-tron/base58"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/wavesplatform/gowaves/pkg/api"
"github.com/wavesplatform... |
// 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 ... |
package taipei
import (
"bytes"
"crypto/sha1"
"errors"
"fmt"
"io"
"os"
"path/filepath"
"strings"
"github.com/jackpal/bencode-go"
"golang.org/x/text/encoding"
"golang.org/x/text/encoding/charmap"
"golang.org/x/text/encoding/japanese"
"golang.org/x/text/encoding/korean"
"golang.org/x/text/encoding/simplif... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/shared_criterion.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
common "google.golang.org/genproto/googleapis/ads/g... |
package main
import (
"encoding/json"
"errors"
"net/http"
"os"
"runtime/debug"
"strconv"
"sync"
"time"
"github.com/tectiv3/go-lsp-client/events"
)
const cacheTime = 5 * time.Second
type mateRequest struct {
Method string
Body json.RawMessage
}
type mateServer struct {
client *lspClient
openFile... |
package main
import (
"encoding/json"
"fmt"
"html/template"
"log"
"net/http"
"sort"
"strings"
"time"
)
var statusTemplate *template.Template
var templateFns = template.FuncMap{
"marshal": func(v status) template.JS {
a, _ := json.Marshal(v)
return template.JS(a)
},
"castToFloat32": func(v int) float32... |
package demoinfocs
import (
"fmt"
"strings"
common "github.com/markus-wa/demoinfocs-golang/common"
events "github.com/markus-wa/demoinfocs-golang/events"
st "github.com/markus-wa/demoinfocs-golang/sendtables"
)
const (
maxEdictBits = 11
indexMask = ((1 << maxEdictBits) - 1)
maxEntities = (1 << maxEdictBi... |
package eth
import (
"bsn-crypto/common/math"
"bsn-crypto/errors"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/sha256"
"crypto/x509/pkix"
"encoding/asn1"
"encoding/pem"
"fmt"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/crypto... |
package ZoneServer
import (
"bufio"
"code.holdonbush.top/FinalCheckmateServer/DataFormat"
"code.holdonbush.top/ServerFramework/IPCWork"
"code.holdonbush.top/ServerFramework/Server"
"code.holdonbush.top/ServerFramework/ServerManager"
"code.holdonbush.top/ServerFramework/common"
"fmt"
log "github.com/sirupsen/lo... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: plugin.proto
/*
Package plugin is a generated protocol buffer package.
It is generated from these files:
plugin.proto
It has these top-level messages:
ConfigureRequest
ConfigureResponse
GetPluginInfoRequest
GetPluginInfoResponse
PluginInfoRequest
Plu... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: error_codes.proto
package tensorflow
import (
fmt "fmt"
proto "github.com/gogo/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... |
package hoverfly
import (
"bytes"
"crypto/md5"
"encoding/gob"
"fmt"
"io"
"net/http"
"time"
log "github.com/Sirupsen/logrus"
"io/ioutil"
)
// DBClient provides access to cache, http client and configuration
type DBClient struct {
Cache Cache
HTTP *http.Client
Cfg *Configuration
Counter *CounterB... |
/*
Copyright IBM Corp. 2016 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 law or agreed to in wri... |
package iap
import (
"context"
"crypto/rand"
"encoding/base32"
"encoding/json"
"fmt"
"github.com/broadinstitute/thelma/internal/thelma/app/config"
"github.com/broadinstitute/thelma/internal/thelma/app/credentials"
"github.com/broadinstitute/thelma/internal/thelma/utils/shell"
vaultapi "github.com/hashicorp/va... |
package server
import (
"bufio"
"errors"
"fmt"
"os"
"strconv"
"strings"
"syscall"
"time"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"github.com/docker/containerd"
"github.com/docker/containerd/api/grpc/types"
"github.com/docker/containerd/runtime"
"github.com/docker/containerd/supervisor"
... |
package app
import (
"fmt"
"strings"
)
const (
addrCfg = "config firewall address"
addrGrpCfg = "config firewall addrgrp"
serviceCfg = "config firewall service custom"
serviceGrpCfg = "config firewall service group"
avProfileCfg = "config antivirus profile"
wfProfileCfg = "config webfilter profi... |
package conf
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"os"
"reflect"
"strings"
"sync"
"time"
"github.com/pkg/errors"
"github.com/sourcegraph/jsonx"
"github.com/sourcegraph/sourcegraph/pkg/jsonc"
"github.com/sourcegraph/sourcegraph/schema"
)
var (
configFilePath string
rawMu sync.RWMutex
raw ... |
package tcp
import (
"errors"
lg "log"
"net"
"os"
"sync"
"time"
"go-common/app/infra/databus/conf"
"go-common/app/infra/databus/dsn"
"go-common/app/infra/databus/model"
"go-common/app/infra/databus/service"
"go-common/library/log"
"github.com/Shopify/sarama"
metrics "github.com/rcrowley/go-metrics"
)
c... |
package tree
import (
"math"
"math/rand"
"time"
)
// Classifier implements a decision tree classifier. The classifier
// should be initialized with NewClassifier.
type Classifier struct {
//TODO: store nodes in a slice so we can serialize/deserialize later
Root *Node
MinSplit int // min node size for ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0-devel
// protoc v3.6.1
// source: src/apigee/examples/grpcserver/Messenger.proto
package grpcserver
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/pr... |
package x509
import (
"bytes"
"encoding/asn1"
"errors"
"github.com/meshplus/crypto"
"github.com/meshplus/flato-msp-cert/plugin"
"github.com/meshplus/flato-msp-cert/primitives/x509/pkix"
"math/big"
"net"
"net/url"
"time"
)
// A Certificate represents an X.509 certificate.
type Certificate struct {
Raw ... |
package ghostferry
import (
"fmt"
sql "github.com/Shopify/ghostferry/sqlwrapper"
"sync"
"time"
"github.com/siddontang/go-mysql/replication"
"github.com/siddontang/go-mysql/schema"
"github.com/sirupsen/logrus"
)
var shutdownEvent = fmt.Errorf("binlog-writer shutting down")
type BinlogWriterState string
const... |
package base
import (
"bytes"
"fmt"
"reflect"
"strconv"
"strings"
"text/template"
"github.com/pkg/errors"
kotsv1beta1 "github.com/replicatedhq/kots/kotskinds/apis/kots/v1beta1"
"github.com/replicatedhq/kots/pkg/logger"
upstreamtypes "github.com/replicatedhq/kots/pkg/upstream/types"
yaml3 "gopkg.in/yaml.v3"... |
/*
@Time : 2021/2/22 6:55 下午
@Author : ShadowWalker
@Email : <EMAIL>
@File : score
@Description: 成绩
*/
package jw
import (
"github.com/gin-gonic/gin"
"github.com/xztu/zsxs-back-end/commons/database/orm"
"github.com/xztu/zsxs-back-end/commons/database/structs"
"github.com/xztu/zsxs-back-end/commons/... |
package main
import (
"bytes"
"crypto/sha256"
"encoding/binary"
"image/color"
"io"
"net"
"os"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcd/btcec"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/lightningnetwork/lnd/lnwire"
"github.com/btcsuite/btcd/wire"
)
func randPubKey() (*btcec... |
package xlm
import (
ej "encoding/json"
"fmt"
"github.com/jdcloud-bds/bds/common/json"
"github.com/jdcloud-bds/bds/common/log"
"github.com/jdcloud-bds/bds/service"
model "github.com/jdcloud-bds/bds/service/model/xlm"
"io/ioutil"
"net/http"
"strings"
"sync"
"time"
)
func (s *XLMSplitter) getMaxSequenceInDB(... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.17.3
// source: stroeer/coremedia/v1/curated_stage.proto
package coremedia
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimp... |
/*
* Copyright (c) 2013 <NAME> <<EMAIL>>
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE I... |
package urlinspection
import (
"bytes"
"context"
"crypto/md5"
"crypto/tls"
"encoding/base64"
"encoding/hex"
"encoding/json"
"encoding/xml"
"errors"
"fmt"
"github.com/TrollEyeSecurity/ccscanner/internal/database"
"github.com/getsentry/sentry-go"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-dri... |
// Copyright 2017-2020 The ShadowEditor Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
//
// For more information, please visit: https://github.com/tengge1/ShadowEditor
// You can also visit: https://gitee.com/tengge1/ShadowEditor
/... |
// Copyright ©2012 The bíogo 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 bam
import (
"encoding/binary"
"errors"
"fmt"
"io"
"reflect"
"unsafe"
"github.com/grailbio/hts/bgzf"
"github.com/grailbio/hts/sam"
)
// R... |
// Copyright 2022 The Project Oak 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 a... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.11.4
// source: plumber2.proto
package rpc
import (
context "context"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/geo_target_constant.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
enums "google.golang.org/genproto/googleapis/ads... |
package assertion
import (
"bytes"
"fmt"
"go/ast"
"go/parser"
"go/printer"
"go/token"
"os"
"path"
"runtime"
"sort"
"strings"
"sync"
)
// Parser represents a source file parser.
type Parser struct {
m sync.Mutex
// Excluded call exprs should be excluded when finding assignments.
excluded []*ast.CallExp... |
package raft
import (
pb "github.com/coreos/etcd-starter/Godeps/_workspace/src/github.com/coreos/etcd/raft/raftpb"
"github.com/coreos/etcd-starter/Godeps/_workspace/src/golang.org/x/net/context"
)
// MultiNode represents a node that is participating in multiple consensus groups.
// A MultiNode is more efficient tha... |
/*
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, ... |
// Copyright 2021 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 firmware
import (
"bufio"
"context"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"strings"
"syscall"
"time"
"chromiumos/tast/co... |
// Package httpcache provides a http.RoundTripper implementation that works as a
// mostly RFC-compliant cache for http responses.
//
// It is only suitable for use as a 'private' cache (i.e. for a web-browser or an API-client
// and not for a shared proxy).
//
package httpcache
import (
"bufio"
"bytes"
"errors"
"... |
// Package rcserver implements the HTTP endpoint to serve the remote control
package rcserver
import (
"context"
"encoding/base64"
"encoding/json"
"flag"
"fmt"
"log"
"mime"
"net/http"
"net/url"
"path/filepath"
"regexp"
"sort"
"strings"
"sync"
"time"
"github.com/prometheus/client_golang/prometheus"
"g... |
package engine
import (
"fmt"
"html/template"
"net/http"
"net/http/httptest"
"os"
"path"
"path/filepath"
"strings"
"time"
"github.com/didip/tollbooth"
log "github.com/sirupsen/logrus"
"github.com/xyproto/algernon/themes"
"github.com/xyproto/algernon/utils"
"github.com/xyproto/datablock"
"github.com/xyp... |
package okex
import (
"fmt"
"sort"
"strings"
"time"
"github.com/go-openapi/errors"
"github.com/nntaoli-project/goex"
. "github.com/nntaoli-project/goex"
"github.com/nntaoli-project/goex/internal/logger"
)
type OKExSpot struct {
*OKEx
}
// [{
// "frozen":"0",
// "hold":"0",
// "id":"915... |
package labelmap
import (
"bytes"
"compress/gzip"
"encoding/binary"
"fmt"
"io"
"io/ioutil"
"log"
"sync"
"github.com/janelia-flyem/dvid/datastore"
"github.com/janelia-flyem/dvid/datatype/common/labels"
"github.com/janelia-flyem/dvid/datatype/imageblk"
"github.com/janelia-flyem/dvid/dvid"
"github.com/janel... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: envoy/config/transport_socket/tap/v2alpha/tap.proto
package envoy_config_transport_socket_tap_v2alpha
import (
_ "github.com/cncf/udpa/go/udpa/annotations"
core "github.com/datawire/ambassado... |
/*
* Copyright 2018 Comcast Cable Communications Management, 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 require... |
// Copyright 2018 The gVisor 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 agree... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.