text
stringlengths
5.51k
28.1k
/* * Copyright © 2021 <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 or agreed to...
// Copyright 2017, 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.md file. // Package cmp determines equality of values. // // This package is intended to be a more powerful and safer alternative to // reflect.DeepEqual for compari...
// Copyright 2015 Eryx <evorui аt gmаil dοt cοm>, 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 re...
// 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 arc import ( "context" "fmt" "math" "os" "path/filepath" "regexp" "strconv" "strings" "time" "chromiumos/tast/common/perf" "chromi...
package main import ( "crypto/sha256" "encoding/json" "errors" "fmt" "log" "net/url" "os" "strconv" "strings" "sync" "time" ) var logger *log.Logger = log.New(os.Stdout, "", log.Ltime|log.Lmicroseconds) const errPrefix string = "[ERROR]" const fatalPrefix string = "[FATAL]" const warnPrefix string = "[WAR...
package policy import ( "context" "fmt" "strconv" "sync" "go.aporeto.io/enforcerd/trireme-lib/controller/pkg/usertokens" ) // EnforcerType defines which enforcer type should be selected type EnforcerType int const ( // EnforcerMapping lets the default enforcer configuration deal with it EnforcerMapping Enfor...
// Copyright 2022 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
//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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: token_create.proto package rpc import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" wrappers "github.com/golang/protobuf/ptypes/wrappers" grpc "google.golang...
/* Copyright 2018 The Multicluster-Controller 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...
/* * tinytaptunnel v1.4 - <NAME> - vsergeev at gmail * * Point-to-Point Layer 2 tap interface tunnel over UDP/IP, with * MAC authentication. See README.md for more information. * */ package main import ( "bytes" "crypto/hmac" "crypto/rand" "crypto/sha256" "encoding/base64" "encoding/binary" "encoding/hex...
// Code generated by protoc-gen-go. // source: spree.proto // DO NOT EDIT! /* Package spree is a generated protocol buffer package. It is generated from these files: spree.proto It has these top-level messages: CreateRequest CreateResponse Shot BackendDetails ListRequest ListResponse */ package spree import ...
package models import ( "time" "fmt" "strconv" "github.com/astaxie/beego" "github.com/astaxie/beego/orm" "github.com/lifei6671/mindoc/cache" "github.com/lifei6671/mindoc/conf" "os" "path/filepath" "github.com/PuerkitoBio/goquery" "bytes" "strings" "github.com/lifei6671/mindoc/utils" ) // Document struc...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: orderer/configuration.proto package orderer // import "github.com/chinaso/fabricGM/protos/orderer" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. va...
// Licensed to the LF AI & Data foundation 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 // "License"); you may not use th...
// Copyright 2017, OpenCensus 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...
// Copyright (c) 2021 <NAME> // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. // Package whatsmeow implements a client for interacting with the WhatsApp web multid...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/errors/keyword_plan_error.proto package errors 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 a...
/* Copyright 2014 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 pipeline_test import ( "context" "errors" "fmt" "net/http" "net/http/httptest" "net/url" "testing" "time" "gopkg.in/guregu/null.v4" "github.com/smartcontractkit/chainlink/core/logger" "github.com/stretchr/testify/assert" "github.com/shopspring/decimal" "github.com/smartcontractkit/chainlink/cor...
// +build windows package opc import ( "errors" "fmt" "sync" "time" ole "github.com/go-ole/go-ole" "github.com/go-ole/go-ole/oleutil" ) func init() { OleInit() } //OleInit initializes OLE. func OleInit() { ole.CoInitializeEx(0, 0) } //OleRelease realeses OLE resources in opcAutomation. func OleRelease() {...
package routing import ( "fmt" "net/http" "regexp" "sort" "github.com/dimfeld/httppath" "github.com/zalando/skipper/pathmux" ) type leafRequestMatcher struct { r *http.Request path string exactPath string } func (m *leafRequestMatcher) Match(value interface{}) (bool, interface{}) { v, ok := v...
// Copyright 2020 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
package attachments import ( "bytes" "context" "crypto/md5" "encoding/hex" "errors" "fmt" "io" "time" "github.com/keybase/client/go/chat/s3" "github.com/keybase/client/go/chat/types" "github.com/keybase/client/go/libkb" "github.com/keybase/client/go/protocol/chat1" "golang.org/x/sync/errgroup" ) const m...
//+build test // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. package config import ( "bufio" "encoding/json" "fmt" "io/ioutil" "log" "math/rand" "os" "os/exec" "path/filepath" "strings" "time" "github.com/Azure/aks-engine/pkg/api" "github.com/Azure/aks-en...
// Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2019 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package models import ( "context" "errors" "fmt" "sort" "strconv" "strings" "code.gitea.io/...
package main import ( "context" "encoding/json" "flag" "fmt" "io" "io/ioutil" "net" "net/http" "os" "os/signal" "os/user" "path" "path/filepath" "strings" "time" "github.com/packethost/packngo" log "github.com/sirupsen/logrus" "golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh/agent" "golang.org/x...
package rss import ( "strconv" "github.com/nattfodd/gozxing" "github.com/nattfodd/gozxing/common/util" "github.com/nattfodd/gozxing/oned" ) // Decodes RSS-14, including truncated and stacked variants. See ISO/IEC 24724:2006. var ( rss14_OUTSIDE_EVEN_TOTAL_SUBSET = []int{1, 10, 34, 70, 126} rss14_INSIDE_ODD_TO...
// Copyright 2013 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...
package midi import ( "bytes" "encoding/binary" "errors" "fmt" "log" ) // NoteOn returns a pointer to a new event of type NoteOn (without the delta timing data) func NoteOn(channel, key, vel int) *Event { return &Event{ MsgChan: uint8(channel), MsgType: uint8(EventByteMap["NoteOn"]), Note: uint8(key...
package agent import ( "encoding/base64" "encoding/json" "fmt" "io" "net" "os" "path/filepath" "sort" "strings" "time" "github.com/hashicorp/serf/serf" "github.com/mitchellh/mapstructure" ) // This is the default port that we use for Serf communication const DefaultBindPort int = 7946 // DefaultConfig c...
/* Copyright 2019 Samsung SDS. 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 di...
//----------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. // See LICENSE.txt file in the project root for full license information. //----------------------------------------------------------------------------- pa...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/enums/custom_placeholder_field.proto package enums // import "google.golang.org/genproto/googleapis/ads/googleads/v0/enums" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to s...
package signicat import ( "context" "fmt" "net/http" "net/url" "strconv" "time" ) // Available redirection modes. const ( RedirectModeDoNotRedirect = "donot_redirect" RedirectModeRedirect = "redirect" RedirectModeIframeWithWebMessaging = "iframe_with_we...
/* Copyright © 2022 SUSE 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 writing, software dist...
package mmk import ( "bufio" "fmt" "log" "os" "os/exec" "regexp" "strings" "github.com/alecthomas/participle/v2" "github.com/alecthomas/participle/v2/lexer/stateful" ) var Lex = stateful.Must(stateful.Rules{ "String": { {"String", `"(\\"|[^"])*"`, nil}, }, "Any": { {"Any", `[^'\s\\]+`, nil}, {"cont...
package pmsplugin import ( "sort" "strconv" "strings" casbin_util "github.com/casbin/casbin/v2/util" "github.com/gotomicro/ego-component/egorm" "github.com/gotomicro/ego/core/elog" "github.com/pkg/errors" "go.uber.org/zap" "github.com/shimohq/mogo/api/internal/invoker" "github.com/shimohq/mogo/api/pkg/mode...
package nargs import ( "fmt" "go/ast" "go/build" "go/token" "log" "sort" "strconv" "strings" ) func init() { build.Default.UseAllFiles = true } // Flags contains configuration specific to nargs // * IncludeTests - include test files in analysis // * SetExitStatus - set exit status to 1 if any issues are fou...
// Copyright © 2017 grafiti 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 ...
// Copyright © 2019 <NAME> <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 applicable law or ...
package server import ( "esi/ast" "esi/tokenizer" "fmt" "io/ioutil" "net" "net/http" "net/url" "strconv" "strings" "time" ) //******************************************************************** //http://marcio.io/2015/07/handling-1-million-requests-per-minute-with-golang/ type Dispatcher s...
// Copyright 2018 The Operator-SDK 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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: mkit/service/emailer/v1/emailer.proto package emailerv1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" refle...
package mongo import ( "bytes" "strings" "testing" "github.com/google/go-cmp/cmp" "github.com/dollarkillerx/mongo/mongo-driver/bson" "github.com/dollarkillerx/mongo/mongo-driver/bson/primitive" "github.com/dollarkillerx/mongo/mongo-driver/x/bsonx/bsoncore" "github.com/dollarkillerx/mongo/mongo-driver/x/mongo/...
// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use ...
/* * Copyright 2015 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 applicabl...
// Copyright 2013 The Go-IMAP Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the go-imap.LICENSE file. package imap import ( "bytes" "fmt" "io" "strconv" ) // ParserError indicates a problem with the server response format. This could // be the...
package main import ( "bufio" "context" "flag" "fmt" "io/ioutil" "log" "os" "path" "path/filepath" "sort" "strconv" "strings" "sync" "time" "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes" grideye "github.com/synerex/proto_grideye" api "github.com/synerex/synerex_api" pb "gith...
package sync import ( "errors" "time" belogs "github.com/astaxie/beego/logs" conf "github.com/cpusoft/goutil/conf" httpclient "github.com/cpusoft/goutil/httpclient" jsonutil "github.com/cpusoft/goutil/jsonutil" osutil "github.com/cpusoft/goutil/osutil" urlutil "github.com/cpusoft/goutil/urlutil" "model" db...
// Copyright Istio Authors. 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 l...
// Copyright (c) 2018 SUSE 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...
// Copyright 2017 clair 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 i...
// Copyright 2018 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 breakpad processes minidump crash reports created by Breakpad. // // See https://chromium.googlesource.com/breakpad/breakpad/ for more detai...
package packed import ( "fmt" ) // util/packed/BulkOperation.java // Efficient sequential read/write of packed integers. type BulkOperation interface { LongBlockCount() int LongValueCount() int ByteBlockCount() int ByteValueCount() int // PackedIntsEncoder encodeLongToByte(values []int64, blocks []byte, iter...
package main import ( "bytes" "context" "errors" "flag" "fmt" "html/template" "io" "io/ioutil" "net/http" "net/url" "os" "os/signal" "strings" "syscall" "time" "golang.org/x/oauth2" units "github.com/docker/go-units" "github.com/genuinetools/pkg/cli" "github.com/genuinetools/releases/version" "gi...
// Package oidc implements the authentication flow for kube-applier. It is based // on some assumptions: the authentication server supports the openid and email // scopes, it exposes an introspection URL with which we can validate the // id_token. User session is stored in an encrypted cookie and the encryption // key ...
// // Copyright (c) 2018 Red Hat, 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 agree...
// Copyright 2017-2018 Stratumn SAS. 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 app...
package core import ( "bytes" "context" "math" "strconv" context2 "github.com/oneconcern/datamon/pkg/context" "github.com/oneconcern/datamon/pkg/cafs" "github.com/oneconcern/datamon/pkg/model" "github.com/oneconcern/datamon/pkg/storage" "github.com/oneconcern/datamon/pkg/storage/localfs" "github.com/segmen...
package gopad // // Paxos library, to be included in an application. // Multiple applications will run, each including // a Paxos peer. // // Manages a Sequence of agreed-on Values. // The set of peers is fixed. // Copes with network failures (partition, msg loss, &c). // Does not store anything persistently, so canno...
// Wrapper over jose utilities that implements JSON Web Signature (JWS) and JSON Web Encryption (JWE). package jwt import ( "crypto/rand" "crypto/rsa" "crypto/sha256" "crypto/x509" "crypto/x509/pkix" "encoding/base64" "errors" "fmt" "math/big" "strconv" "time" "gopkg.in/square/go-jose.v2" "gopkg.in/squa...
/* * 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 * "License"); you ...
// 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 © 2022 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...
// FairRoulette is a PoC smart contract for IOTA Smart Contracts and the Wasp node // In this package smart contract is implemented as a hardcoded Go program. // The program is wrapped into the VM wrapper interfaces and uses exactly the same sandbox interface // as if it were Wasm VM. // The smart contract implements s...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.6.1 // source: pkg/gateway/grpc/accounts/accounts.proto package accounts import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" refl...
package adobesign import ( "bytes" "context" "encoding/json" "errors" "fmt" "io" "io/ioutil" "log" "net/http" "net/url" "reflect" "strconv" "strings" "sync" "github.com/google/go-querystring/query" "golang.org/x/oauth2" ) const ( oauthApiVersion = "v2" apiVersion = "v6" userAgent = "go-adobe...
// msh is a minimal mesos v1 scheduler; it executes a shell command on a mesos agent. package main // Usage: msh {...command line args...} // // For example: // msh -master 10.2.0.5:5050 -- ls -laF /tmp // // TODO: -gpu=1 to enable GPU_RESOURCES caps and request 1 gpu // import ( "bytes" "context" "flag" "fmt"...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: suggester/suggester.proto package suggester import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto....
// Copyright 2012 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. // This package is a duplicate of 32844aa1ae54: https://code.google.com/p/go/source/browse/ssh/keys.go?repo=crypto package ssh import ( "bytes" "crypto" "cr...
/* Copyright 2020 GramLabs, 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, software ...
package sparta import ( "crypto/rand" "crypto/sha1" "encoding/hex" "fmt" "os" "path" "runtime" "time" "github.com/Sirupsen/logrus" "github.com/asaskevich/govalidator" "github.com/spf13/cobra" ) // CommandLineOptions defines the commands available via the Sparta command // line interface. Embedding applic...
// 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...
/* Copyright 2019 The HAProxy Ingress Controller 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.14.0 // source: private/test/legacyplugin/someplugin.proto package legacyplugin import ( plugin "github.com/spiffe/spire/proto/spire/common/plugin" protoreflect "google.golang.org/protobuf/reflect/protorefle...
package storages import ( "fmt" "github.com/jitsucom/jitsu/server/appconfig" "github.com/jitsucom/jitsu/server/enrichment" "github.com/jitsucom/jitsu/server/errorj" "github.com/jitsucom/jitsu/server/timestamp" "github.com/jitsucom/jitsu/server/typing" "math/rand" "github.com/jitsucom/jitsu/server/config" "gi...
package crawl import ( "context" "database/sql" "regexp" "strings" "sync" "time" ma "github.com/multiformats/go-multiaddr" "github.com/libp2p/go-libp2p-core/network" "github.com/libp2p/go-libp2p" "github.com/libp2p/go-libp2p-core/crypto" "github.com/libp2p/go-libp2p-core/host" "github.com/libp2p/go-libp...
package structs import ( "encoding/binary" "errors" "fmt" "hash/fnv" "sort" "strings" "time" "github.com/hashicorp/consul/acl" "github.com/hashicorp/consul/sentinel" "golang.org/x/crypto/blake2b" ) type ACLMode string const ( // ACLs are disabled by configuration ACLModeDisabled ACLMode = "0" // ACLs a...
package txs import ( "fmt" "math/rand" "runtime" "strings" "sync" "time" "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/client/keys" cryptokeys "github.com/cosmos/cosmos-sdk/crypto/keys" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/wire" authcmd "gith...
// Copyright 2019 GRAIL, Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package runner provides a simple parallel cluster runner for // diviner studies. It uses bigmachine[1] to launch multiple machines // over which trials are ru...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.12.3 // source: hedwig/protobuf/options.proto package protobuf import ( descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoi...
package udwDnsPacket import ( "strconv" "strings" ) type DnsRRType uint16 const ( DnsPort = 53 DnsTypeNone DnsRRType = 0 DnsTypeA DnsRRType = 1 DnsTypeNS DnsRRType = 2 DnsTypeCNAME DnsRRType = 5 DnsTypeSOA DnsRRType = 6 DnsTypePTR DnsRRType = 12 DnsTypeMX DnsRRType = 15 DnsTypeTXT DnsRRTyp...
package discover import ( "bytes" "container/list" "errors" "fmt" "net" "time" "github.com/ThinkiumGroup/go-common" "github.com/ThinkiumGroup/go-common/log" "github.com/ThinkiumGroup/go-thinkium/config" "github.com/ThinkiumGroup/go-thinkium/network/nat" "github.com/stephenfire/go-rtl" ) // Errors var ( e...
package kubernetes import ( "bytes" "fmt" "log" "net/http" "github.com/hashicorp/terraform-plugin-sdk/helper/logging" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/terraform" "github.com/mitchellh/go-homedir" apimachineryschema "k8s.io/apimachinery/pkg/r...
package main import ( "flag" "fmt" "math" "os" "runtime" "sync" "sync/atomic" "time" "github.com/ParsePlatform/flashback" "gopkg.in/mgo.v2" ) func panicOnError(err error) { if err != nil { panic(err) } } var ( maxOps int numSkipOps int opsFilename string...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: common/mempool.proto package common // import "github.com/hyperledger/fabric/protos/common" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import ( context "golang.org/x/net/context" grpc "google.golang.org/grpc" ) //...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/google_ads_field.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/go...
package bgc import ( "fmt" "github.com/viant/dsc" "github.com/viant/toolbox" "golang.org/x/net/context" "google.golang.org/api/bigquery/v2" "google.golang.org/api/googleapi" "io" "log" "strings" "sync" "time" ) const ( InsertMethodStream = "stream" InsertMethodLoad = "load" InsertWaitTimeo...
package api import ( "fmt" "strconv" "github.com/VantageSports/riot" ) type MatchDetail struct { MapID int `json:"mapId"` MatchCreation int64 `json:"matchCreation"` MatchDuration int64 `json:"matchDuration"` MatchID ...
package main import ( "encoding/binary" "fmt" "io" "net" "os" "os/signal" "runtime/pprof" "strconv" "sync" "syscall" "time" "github.com/google/gopacket" "github.com/google/gopacket/layers" "github.com/google/gopacket/pcap" "github.com/google/gopacket/tcpassembly" "github.com/google/gopacket/tcpassembl...
// Copyright (c) 2016 Pulcy. // // 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...
// 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 types // Helpers for emitting SSA instructions. import ( "fmt" . "github.com/despiteallobjections/amigo/syntax" ) // emitNew emits to f a new (hea...
// Copyright 2015-2017 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...
// Package fmla generates functions from formulae. package fmla import ( "fmt" "go/token" "go/types" "math/big" "reflect" "sort" "strings" "github.com/mmcloughlin/avo/build" "golang.org/x/xerrors" "github.com/mmcloughlin/ec3/efd/op3" "github.com/mmcloughlin/ec3/efd/op3/ast" "github.com/mmcloughlin/ec3/ge...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.24.0 // protoc v3.12.3 // source: account.proto package security import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/...
// vim: tabstop=2 shiftwidth=2 package main import ( "errors" "fmt" "io/ioutil" "os" "path" "strings" "time" "github.com/crooks/yamn/crandom" "github.com/crooks/yamn/idlog" "github.com/crooks/yamn/keymgr" "github.com/crooks/yamn/quickmail" //"github.com/codahale/blake2" ) // Start the server process. I...
/* * 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 downloader import ( "encoding/json" "fmt" "io/ioutil" "math" "net" "net/http" "net/url" "os" "os/exec" "path" "strings" "time" "github.com/davecgh/go-spew/spew" "github.com/lbryio/ytsync/v5/downloader/ytdl" "github.com/lbryio/ytsync/v5/ip_manager" "github.com/lbryio/ytsync/v5/sdk" "github.com...
package main import ( "fmt" "net/http" "net/url" "sync" "github.com/gorilla/mux" "reflect" // IsEmpty' "time" // createTimestamp "log" // log.Println "math/rand" // 获取随机数 "strconv" // createNonceStr "crypto/sha1" // sha1 "encoding/hex" // sha1 "encoding/json" "os" ) /*...