text stringlengths 5.51k 28.1k |
|---|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
package api
import (
"github.com/Azure/aks-engine/pkg/api/vlabs"
"github.com/Azure/aks-engine/pkg/i18n"
"github.com/leonelquinteros/gotext"
"io/ioutil"
"os"
"path"
"testing"
)
func TestLoadContainerServiceFromFile... |
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package fuzz
import (
"bufio"
"bytes"
"crypto/rand"
"encoding/hex"
"fmt"
"io"
"io/ioutil"
"net"
"os"
"os/exec"
"path"
"path/filepath"
"strcon... |
package api
import (
"bytes"
"crypto/x509"
"encoding/asn1"
"encoding/hex"
"encoding/pem"
"github.com/cloudflare/cfssl/log"
"github.com/gogo/protobuf/proto"
"github.com/hyperledger/fabric-protos-go/common"
"github.com/hyperledger/fabric-protos-go/ledger/rwset"
"github.com/hyperledger/fabric-protos-go/ledger/... |
/*
Copyright 2021 The Crossplane 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, ... |
// Code generated by protoc-gen-go.
// source: va/proto/va.proto
// DO NOT EDIT!
/*
Package proto is a generated protocol buffer package.
It is generated from these files:
va/proto/va.proto
It has these top-level messages:
IsSafeDomainRequest
IsDomainSafe
PerformValidationRequest
AuthzMeta
ValidationResult
*/
... |
// Copyright 2016 The Gofem 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 shp
// shapes
var tri3, tri6, tri10, tri15 Shape
// register shapes
func init() {
// tri3
tri3.Type = "tri3"
tri3.Func = Tri3
tri3.FaceFunc = ... |
package bux
import (
"bytes"
"context"
"database/sql/driver"
"encoding/hex"
"encoding/json"
"fmt"
"strings"
"time"
"github.com/BuxOrg/bux/cachestore"
"github.com/BuxOrg/bux/utils"
magic "github.com/bitcoinschema/go-map"
"github.com/libsv/go-bt/v2/bscript"
"github.com/tonicpow/go-paymail"
)
// Transactio... |
// Copyright 2017 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/enums/custom_placeholder_field.proto
package enums
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if th... |
// Copyright 2020 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 agreed to i... |
package apifu
import (
"context"
"encoding/base64"
"fmt"
"reflect"
"sort"
"strings"
"time"
"github.com/pkg/errors"
"github.com/vmihailenco/msgpack"
"github.com/ccbrown/api-fu/graphql"
)
// ConnectionConfig defines the configuration for a connection that adheres to the GraphQL Cursor
// Connections Specifi... |
package mbpqs
import (
"crypto/subtle"
"fmt"
"sync"
)
// Channel is a key channel within the MBPQS tree, are stacked chain trees with the same Tree address.
type Channel struct {
layers uint32 // The amount of chain layers in the channel.
chainSeqNo uint32 // The first signatureseqno availabl... |
package main
import (
"crypto/rand"
"encoding/base64"
"encoding/hex"
"fmt"
"net/url"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/Oneledger/protocol/data/fees"
"github.com/Oneledger/protocol/data/keys"
"github.com/tendermint/tendermint/crypto/secp256k1"
"github.com/Oneledger/protocol/config"
"... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/common/tap/v2alpha/common.proto
package envoy_config_common_tap_v2alpha
import (
fmt "fmt"
core "github.com/altipla-consulting/envoy-api/envoy/api/v2/core"
v2alpha "github.com/altipla-consulting/envoy-api/envoy/service/tap/v2alpha"
_ "github... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/extensions/filters/network/rocketmq_proxy/v4alpha/route.proto
package envoy_extensions_filters_network_rocketmq_proxy_v4alpha
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
v4alpha2 "github.com/envoyproxy/go-control-plane/envoy/conf... |
// Package schema houses simple data types for titles, issues, batches, etc.
// Types which live here are generally meant to be very general-case rather
// than trying to hold all possible information for all possible use cases.
package schema
import (
"fmt"
"io/ioutil"
"math"
"os"
"path/filepath"
"regexp"
"sor... |
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"sort"
"strings"
"syscall"
"time"
"github.com/ansel1/merry"
"github.com/dickeyxxx/golock"
)
func init() {
CLITopics = append(CLITopics, &Topic{
Name: "plugins",
Description: "manage plugins",
Commands: Co... |
/*
Copyright 2021 The Katanomi 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, so... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package compute
import (
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// The Google Compute Engine Regional Instance Group... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/errors/media_bundle_error.proto
package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v0/errors"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to supp... |
/*
* 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... |
// Package rex provides ReprocessingExecutor, which implements the state.Executor interface.
// It provides all the implementation detail for reprocessing data through the etl pipeline.
package rex
// Design Notes:
// 1. Tasks contain all info about queues in use.
// 2. Tasks in flight are not cached locally, as they ... |
/*
* Copyright 2019-2020 by <NAME>
* https://www.fibratus.io
* 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
*... |
/*
Copyright 2019 Cisco Systems
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... |
// Copyright (c) 2018 Uber Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... |
package diff
import (
"bytes"
"fmt"
"io"
"reflect"
"strings"
"testing"
"unsafe"
)
func TestWriteShortUnknownContext(t *testing.T) {
var any0 any = 0
var any1 any = 1
cases := []struct {
a, b any
want string
}{
{nil, 1, `nil != int(1)`},
{[1]int{0}, [1]int{1}, `[1]int[0]: 0 != 1`},
{[1]any{0}, [1]... |
/*
* @Descripttion:
* @version:
* @Author: cm.d
* @Date: 2021-11-18 19:38:09
* @LastEditors: cm.d
* @LastEditTime: 2021-11-27 12:57:16
*/
package alfheimdbwal
import (
"encoding/json"
"log"
"os"
"sync"
"syscall"
"github.com/huandu/skiplist"
"github.com/sirupsen/logrus"
)
// WAL file struct in storage:
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: chat.proto
package pb
/*
chat message optional from 4000-4999
*/
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import pb "fgame/fgame/gm/gamegm/basic/pb"
// Reference imports to suppress errors if they are not otherwis... |
/*
* 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... |
//
// Copyright © 2021 Uncharted Software 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 ap... |
package main
import (
"fmt"
"image/color"
"math"
"github.com/hajimehoshi/ebiten/v2/inpututil"
"github.com/tanema/gween"
"github.com/tanema/gween/ease"
"github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/ebitenutil"
"github.com/solarlune/resolv"
)
type Player struct {
Object *resol... |
package cfsmextract
import (
"fmt"
"go/types"
"os"
"github.com/damifur/dingo-hunter/cfsmextract/sesstype"
"github.com/damifur/dingo-hunter/cfsmextract/utils"
"golang.org/x/tools/go/ssa"
)
// VarKind specifies the type of utils.VarDef used in frame.local[]
type VarKind int
// VarKind definitions
const (
Nothi... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/resources/detail_placement_view.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/a... |
package kqlog
// Parsing of a kqlog string to a `Filter` object that can be executed on given
// log records.
//
// Usage:
// kql := "... some KQL string ..."
// func logLevelLess(level1, level2 string) bool {
// // ...
// }
//
// p := newParser(kql, logLevelLess)
// filter, err := p.parse(... |
// Copyright (c) 2015 Rackspace
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
package sphinx
import (
"bytes"
"crypto/ecdsa"
ec "crypto/elliptic"
"encoding/gob"
"errors"
"fmt"
scrypto "github.com/hashmatter/p3lib/sphinx/crypto"
"math/big"
)
const (
// size in bytes of MAC used to verify integrity of header and packet payload
hmacSize = 32
// size in bytes for the address of relays ... |
// Copyright © 2018 Banzai 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/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
// mosint v2.1
// Author: <NAME>
// Github: github.com/alpkeskin
// Website: https://imalp.co
package main
import (
"bufio"
"flag"
"fmt"
"log"
"main/modules"
"strconv"
"os"
"github.com/dimiro1/banner"
"github.com/fatih/color"
"github.com/mattn/go-colorable"
"github.com/olekukonko/tablewriter"
"github.com... |
// Copyright 2020 The LUCI 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-gogo. DO NOT EDIT.
// source: create_alert_rule.proto
package alert_rule
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/gogo/protobuf/types"
_ "github.com/mwitkow/go-proto-validators"
_ "github.com/easyopsapis/easyop... |
package rink_test
import (
"context"
"fmt"
"strconv"
"sync"
"testing"
"time"
"github.com/luno/jettison"
"github.com/luno/jettison/j"
"github.com/luno/jettison/jtest"
"github.com/luno/jettison/log"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.etcd.io/etcd/client/v3/concur... |
package controller
import (
"context"
"fmt"
"time"
"capact.io/capact/internal/ptr"
"capact.io/capact/pkg/engine/k8s/api/v1alpha1"
"github.com/go-logr/logr"
"github.com/pkg/errors"
batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimac... |
package dc_supplemental
import (
"github.com/watermint/toolbox/essentials/log/esl"
"github.com/watermint/toolbox/infra/control/app_catalogue"
"github.com/watermint/toolbox/infra/doc/dc_index"
"github.com/watermint/toolbox/infra/doc/dc_section"
"github.com/watermint/toolbox/infra/recipe/rc_recipe"
"github.com/wat... |
/*
* Copyright (c) 2017, https://github.com/nebulaim
* 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
*
* Un... |
package filesource
import (
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
"regexp"
"strings"
"sync"
"time"
"github.com/estuary/connectors/parser"
"github.com/estuary/protocols/airbyte"
log "github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"
)
// Config of a filesource.
type Config interfa... |
package main
import (
"bufio"
"encoding/hex"
"errors"
"fmt"
"github.com/boxofrox/cctv-ptz/config"
"github.com/docopt/docopt-go"
"github.com/mikepb/go-serial"
"github.com/simulatedsimian/joystick"
"io"
"math"
"os"
"strconv"
"strings"
"syscall"
"time"
)
var (
VERSION string
BUILD_DATE string
)
// p... |
// MIT License
//
// Copyright (c) 2016 GenesisKernel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modif... |
package lxf // import "github.com/automaticserver/lxe/lxf"
import (
"crypto/md5" // nolint: gosec
"fmt"
"math"
"strconv"
"strings"
"time"
"github.com/automaticserver/lxe/shared"
"github.com/lxc/lxd/shared/api"
opencontainers "github.com/opencontainers/runtime-spec/specs-go"
"k8s.io/apimachinery/pkg/util/uui... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.17.3
// source: file_service.proto
package services
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/run... |
/*
Copyright 2021 <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, software
distribu... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: orc8r/protos/service_status.proto
package protos
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
... |
package options
import (
"flag"
"fmt"
"github.com/luckywinds/rshell/pkg/checkers"
"github.com/luckywinds/rshell/pkg/prompt"
. "github.com/luckywinds/rshell/types"
"gopkg.in/yaml.v2"
"html/template"
"io/ioutil"
"log"
"net"
"os"
"path"
)
type Options struct {
Cfg Cfg
Hostgroups Hostgroups
Hostgroupsm ma... |
/*
*
* Copyright © 2020 Dell Inc. or its subsidiaries. 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
*
* Unle... |
package ber
import (
"bytes"
"io"
"math"
"strconv"
"strings"
"time"
"unicode/utf8"
)
const (
// longFormBitmaskLen is the mask to apply to the length byte to see if
// a long-form byte sequence is used.
longFormBitmaskLen = 0x80
// valueBitmaskLen is the mask to apply to the length byte to get the
// num... |
package main
import (
"encoding/binary"
"fmt"
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"time"
)
// https://www.iana.org/assignments/ipfix/ipfix.xml 6:tcpControlBits
const (
tcpControlBitsFIN uint16 = 0x0001
tcpControlBitsSYN uint16 = 0x0002
tcpControlBitsRST uint16 = 0x0004
tcpControl... |
package emu
import (
"fmt"
"math/rand"
"github.com/hajimehoshi/ebiten/audio"
)
type Emulator struct {
cpu *CPU
memory *Memory
Display *Display
Input *Input
AudioPlayer *audio.Player
waitingForInputRegisterOffset byte
}
func (e *Emulator) SoundEnabled() bool {
return e.cpu.SoundTime... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/ad_group_simulation.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/ad... |
//
// Copyright (C) 2019-2019 <NAME>.
// Copyright (C) 2019-2019 Ginzado Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
/... |
package s3compare
import (
"context"
"encoding/json"
"fmt"
"io"
"os"
"sort"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/aws/aws-sdk-go-v2/service/s3"
"golang.org/x/sync/semaphore"
)
const defaultConcurrency int64 = 20
type S3APIClient interface {
s3.HeadObjectAPIClient
s3.ListObjectsV2APIClient
... |
// 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... |
/*
* Copyright 2009-2018 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 old
import (
"encoding/json"
"fmt"
"sort"
)
type (
BitIndex uint64
BitIndexes []BitIndex
BitSet []byte
UserRole struct {
... |
// transliteration of noaa.gov javascript code from
// http://www.srrb.noaa.gov/highlights/sunrise/sunrise.html
//
// Go translation by <NAME> github.com/brianolson/go-sunrise
// This code, like its js version, is public domain.
package sunrise
import (
"math"
"time"
)
func isLeapYear(year int) bool {
if year%4 !=... |
package mqttp
// ReasonCode contains return codes across all MQTT specs
type ReasonCode byte
// CodeIssuer who is message issuer
type CodeIssuer byte
// nolint: golint
const (
CodeIssuerServer CodeIssuer = 0x00
CodeIssuerClient
CodeIssuerBoth
CodeIssuerInvalid
)
// nolint: golint ... |
// package qm stand alone command shell for Q language interpreter
package main
import (
"bufio"
"flag"
"fmt"
"os"
"runtime/pprof"
"strings"
"time"
"github.com/x0ray/q/logwriter"
"github.com/x0ray/q/qs"
"github.com/x0ray/q/qs/qsp"
"github.com/rs/zerolog"
"github.com/rs/zerolog/pkgerrors"
)
const (
PGM ... |
package water
import (
"bytes"
"errors"
"fmt"
"net"
"os"
"sync"
"sync/atomic"
"syscall"
"time"
"unsafe"
"golang.org/x/sys/windows"
"golang.org/x/sys/windows/registry"
"github.com/fumiama/wintun"
)
// To use it with windows, you need a tap driver installed on windows.
// https://github.com/OpenVPN/tap-w... |
package kube_events_manager
import (
"bytes"
"encoding/json"
"fmt"
"os/exec"
"strings"
"time"
"github.com/romana/rlog"
"gopkg.in/satori/go.uuid.v1"
"k8s.io/apimachinery/pkg/api/meta"
metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
appsV1 "k8s.io/client-go/informers/apps/v1... |
// Package project manages the project configuration
package project
import (
"crypto/md5"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"reflect"
"sort"
"strconv"
"strings"
"syscall"
"time"
"github.com/google/uuid"
"gopkg.in/yaml.v3"
"github.com/czankel/cne/errdefs"
)
const (
projectFileName = "cn... |
package pythonpipeline
import (
"fmt"
"log"
"sort"
"time"
"github.com/kiteco/kiteco/kite-golib/licensing"
"github.com/kiteco/kiteco/kite-go/lang/python"
"github.com/kiteco/kiteco/kite-go/lang/python/pythonast"
"github.com/kiteco/kiteco/kite-go/lang/python/pythoncomplete/offline/example"
"github.com/kiteco/k... |
// 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/curation_service.proto
package coremedia
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/proto... |
// Package session contains an example implementation of a session-based
// mechanism for tracking message numbers. A session contains a key pair
// for each side of the link, and session keys are signed by an Identity.
//
// There are two parties in a session: the dialer intitiates the session
// with a listener. At t... |
package gcli
import (
"fmt"
"os"
"path"
"path/filepath"
"runtime"
"strconv"
"strings"
"github.com/gookit/color"
"github.com/gookit/goutil/mathutil"
"github.com/gookit/goutil/structs"
"github.com/gookit/goutil/strutil"
)
// core definition TODO rename to context ??
type core struct {
color.SimplePrinter
... |
package bittrex
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"time"
"github.com/thrasher-corp/gocryptotrader/common"
"github.com/thrasher-corp/gocryptotrader/common/crypto"
"github.com/thrasher-corp/gocryptotrader/currency"
exchange "github.com/thrasher-corp/gocryp... |
// Code generated from SQLiteParser.g4 by ANTLR 4.9.3. DO NOT EDIT.
package parser // SQLiteParser
import "github.com/antlr/antlr4/runtime/Go/antlr"
// BaseSQLiteParserListener is a complete listener for a parse tree produced by SQLiteParser.
type BaseSQLiteParserListener struct{}
var _ SQLiteParserListener = &Base... |
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package source
import (
"fmt"
"os"
"regexp"
"time"
"golang.org/x/tools/go/analysis"
"golang.org/x/tools/go/analysis/passes/asmdecl"
"golang.org/x/tools... |
package ros
import (
"encoding/json"
"fmt"
"net"
"net/http"
"os"
"os/signal"
"path/filepath"
"reflect"
"strconv"
"strings"
"sync"
"time"
"github.com/fetchrobotics/rosgo/xmlrpc"
)
const (
APIStatusError = -1
APIStatusFailure = 0
APIStatusSuccess = 1
Remap = ":="
)
func processArguments(... |
package exp
import (
"fmt"
"github.com/doug-martin/goqu/v9/internal/sb"
)
// Behaviors
type (
// Interface that an expression should implement if it can be aliased.
Aliaseable interface {
// Returns an AliasedExpression
// I("col").As("other_col") //"col" AS "other_col"
// I("col").As(I("other_col")... |
/*
Copyright 2020 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, ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/config/proto/config.proto
/*
Package proto is a generated protocol buffer package.
It is generated from these files:
github.com/google/cloudprober/config/proto/config.proto
It has these top-level messages:
ProberConfig
*/
pac... |
// Copyright 2016-2018, Pulumi Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
// Copyright 2019 Istio 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0
// protoc v3.10.1
// source: envoy/admin/v4alpha/tap.proto
package envoy_admin_v4alpha
import (
_ "github.com/cncf/udpa/go/udpa/annotations"
v4alpha "github.com/envoyproxy/go-control-plane/envoy/config/tap/v4alpha"
_ "g... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.19.4
// source: contrib/envoy/extensions/filters/network/mysql_proxy/v3/mysql_proxy.proto
package mysql_proxyv3
import (
_ "github.com/cncf/xds/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-valida... |
package islb
import (
"context"
"fmt"
"strings"
"time"
nprotoo "github.com/cloudwebrtc/nats-protoo"
"github.com/pion/ion/pkg/discovery"
"github.com/pion/ion/pkg/log"
"github.com/pion/ion/pkg/proto"
"github.com/pion/ion/pkg/util"
)
// WatchServiceNodes .
func WatchServiceNodes(service string, state discovery... |
/*
Copyright 2019 The Vitess Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
package namespace
import (
"context"
"fmt"
"github.com/authzed/spicedb/pkg/datastore"
core "github.com/authzed/spicedb/pkg/proto/core/v1"
"github.com/authzed/spicedb/pkg/commonerrors"
"github.com/authzed/spicedb/pkg/graph"
nspkg "github.com/authzed/spicedb/pkg/namespace"
iv1 "github.com/authzed/spicedb/pkg/p... |
package router
import (
"fmt"
"net/http"
"sort"
"strings"
"time"
"github.com/kataras/iris/v12/context"
"github.com/kataras/iris/v12/core/errgroup"
"github.com/kataras/iris/v12/core/netutil"
macroHandler "github.com/kataras/iris/v12/macro/handler"
"github.com/kataras/golog"
"github.com/kataras/pio"
)
type... |
package describe
import (
"fmt"
"io"
"sort"
"strconv"
"strings"
"text/tabwriter"
kapi "k8s.io/kubernetes/pkg/api"
kerrors "k8s.io/kubernetes/pkg/api/errors"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/apis/autoscaling"
kclient "k8s.io/kubernetes/pkg/client/unversioned"
rcutils "k8s.io/k... |
/*
Copyright 2021.
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 un... |
// +build big
//
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, co... |
// Copyright 2020 PingCAP, Inc.
// Modifications copyright (C) 2021 MatrixOrigin.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
/... |
package controllers
import (
"bytes"
"fmt"
"log"
"net"
"os"
"sort"
"sync"
"time"
core "github.com/uhppoted/uhppote-core/types"
"github.com/uhppoted/uhppote-core/uhppote"
"github.com/uhppoted/uhppoted-httpd/audit"
"github.com/uhppoted/uhppoted-httpd/auth"
"github.com/uhppoted/uhppoted-httpd/system/catalog... |
package server
import (
"context"
"fmt"
"image"
"strconv"
"image/png"
"log"
"net/http"
"os"
"strings"
"time"
"github.com/99designs/gqlgen/graphql/handler"
"github.com/99designs/gqlgen/graphql/playground"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/... |
package wiring
import (
"strings"
smith_v1 "github.com/atlassian/smith/pkg/apis/smith/v1"
"github.com/atlassian/smith/pkg/util"
"github.com/atlassian/smith/pkg/util/graph"
"github.com/atlassian/voyager"
orch_meta "github.com/atlassian/voyager/pkg/apis/orchestration/meta"
orch_v1 "github.com/atlassian/voyager/p... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: transcript.proto
package transcript_go_proto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
keytransparency_go_proto "github.com/google/keytransparency/core/api/v1/keytransparency_go_proto"
math "math"
)
// Reference imports to suppress err... |
// Copyright 2012 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... |
// 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 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// resilience.go contains resilience checking.
package ht
import (
"errors"
"fmt"
"net/http"
"net/url"
"os"
"strconv"
"strings"
"time"
)
func init() {
Regi... |
package extensions
import (
"context"
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
"os"
"path/filepath"
"sort"
"strings"
"github.com/spf13/pflag"
"sigs.k8s.io/yaml"
"github.com/telepresenceio/telepresence/v2/pkg/client"
"github.com/telepresenceio/telepresence/v2/pkg/client/cli/cliutil"
"github.com/... |
/*
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
// Code generated by protoc-gen-go.
// source: google/cloud/dataproc/v1/operations.proto
// DO NOT EDIT!
package dataproc
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import _ "google.golang.org/genproto/googleapis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.