text stringlengths 5.51k 28.1k |
|---|
// 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 language
import (
"strings"
"testing"
)
var strdata = []string{
"aa ",
"aaa ",
"aaaa",
"aaab",
"aab ",
"ab ",
"ba ",
"xxxx",
}
func strt... |
package network
import (
"net"
"os"
"path/filepath"
"reflect"
"github.com/ghodss/yaml"
"github.com/pkg/errors"
"github.com/openshift/cluster-network-operator/pkg/bootstrap"
"github.com/openshift/cluster-network-operator/pkg/platform"
"sigs.k8s.io/controller-runtime/pkg/client"
metav1 "k8s.io/apimachinery/... |
// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose ei... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v4.0.0
// source: proto/ContractDelete.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflec... |
package main
import (
"archive/tar"
"compress/gzip"
"context"
"encoding/base64"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"os/exec"
"path"
"path/filepath"
"strings"
"time"
"github.com/golang/protobuf/ptypes/empty"
apiv1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/c... |
/*
Copyright © 2020 NAME HERE <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 agreed to in writi... |
package gottyclient
import (
"crypto/tls"
"encoding/base64"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"regexp"
"strings"
"sync"
"time"
"github.com/containerd/console"
"github.com/creack/goselect"
"github.com/gorilla/websocket"
"github.com/sirupsen/logrus"
)
// message types fo... |
// Copyright 2016 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/admin/v3/certs.proto
package envoy_admin_v3
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to sup... |
// go-qrcode
// Copyright 2014 <NAME>
package qrcode
import (
"errors"
"fmt"
bitset "github.com/caiguanhao/qrcode/bitset"
)
// Data encoding.
//
// The main data portion of a QR Code consists of one or more segments of data.
// A segment consists of:
//
// - The segment Data Mode: numeric, alphanumeric, or byte.... |
/*
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... |
/*
Copyright 2021 The cert-manager 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 compile
import (
"bytes"
"encoding/binary"
"github.com/ThinkiumGroup/wagon/disasm"
ops "github.com/ThinkiumGroup/wagon/wasm/operators"
)
// func CompileWithTable(disassembly []disasm.Instr) ([]byte, []*BranchTable) {
// buffer := new(bytes.Buffer)
// branchTables := []*BranchTable{}
//
// curBlockDept... |
// Copyright (C) 2019-2021, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package bootstrap
import (
"errors"
"fmt"
"math"
"time"
"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/snow"
"github.com/ava-labs/avalanchego/snow/choices"
"github.com/ava-labs... |
package km
import (
"github.com/chuccp/cokePush/message"
"github.com/chuccp/cokePush/net"
"github.com/chuccp/cokePush/util"
"io"
"sync"
)
var chunk0Pool *sync.Pool
var chunk1Pool *sync.Pool
var chunk2Pool *sync.Pool
var chunkWriteStreamPool *sync.Pool
var chunkReadStreamPool *sync.Pool
func init() {
chunk0Pool... |
// Copyright 2021 Antrea 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 ... |
// +build f10x_hd
package fsmc
// DO NOT EDIT THIS FILE. GENERATED BY xgen.
import (
"bits"
"mmio"
"unsafe"
"stm32/o/f10x_hd/mmap"
)
type FSMC_Bank3_Periph struct {
PCR3 RPCR3
SR3 RSR3
PMEM3 RPMEM3
PATT3 RPATT3
_ uint32
ECCR3 RECCR3
}
func (p *FSMC_Bank3_Periph) BaseAddr() uintptr {
return uintp... |
//
// (C) Copyright 2018-2020 Intel 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 la... |
package controllers
import (
"bytes"
"fmt"
"github.com/mlaoji/ygo/lib"
"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/peer"
"io/ioutil"
"mime/multipart"
"net"
"net/http"
"net/url"
"os"
"runtime/debug"
"strconv"
"strings"
"time"
)
type iRe... |
package macvlan
import (
"encoding/json"
"fmt"
"net"
"os"
"strconv"
"github.com/containernetworking/cni/pkg/skel"
cnitypes "github.com/containernetworking/cni/pkg/types"
"github.com/containernetworking/cni/pkg/types/current"
"github.com/containernetworking/plugins/pkg/ip"
"github.com/containernetworking/plu... |
package replaying
import (
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"sort"
"strconv"
"strings"
"testing"
"time"
"github.com/didi/rdebug/koala/recording"
"github.com/didi/rdebug/koala/replaying/similarity"
"github.com/stretchr/testify/require"
)
// Lexer adapter for tfidf
type LexerAdapter stru... |
package databoxedge
// Copyright (c) Microsoft and contributors. 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 (c) 2016 <NAME>, Inc.
// Use of this source code is governed by the Apache License 2.0
// that can be found in the COPYING file.
package daemon
import (
"container/list"
"fmt"
"github.com/aristanetworks/quantumfs"
"github.com/aristanetworks/quantumfs/encoding"
"github.com/aristanetworks/quantumfs/h... |
package analyze
import (
"bytes"
"context"
"fmt"
"os/exec"
"path/filepath"
"strings"
"time"
"github.com/bazelbuild/buildtools/edit"
"github.com/bazelbuild/rules_typescript/ts_auto_deps/platform"
"github.com/bazelbuild/rules_typescript/ts_auto_deps/workspace"
"github.com/golang/protobuf/proto"
appb "githu... |
// Licensed to 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. Apache Software Foundation (ASF) licenses this file to you under
// the Apache License, Version 2.0 (the "Li... |
// 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... |
package ingress
import (
"context"
"fmt"
"strings"
"github.com/nuclio/nuclio/pkg/cmdrunner"
"github.com/nuclio/nuclio/pkg/common"
"github.com/nuclio/nuclio/pkg/platformconfig"
"github.com/nuclio/errors"
"github.com/nuclio/logger"
"k8s.io/api/core/v1"
"k8s.io/api/extensions/v1beta1"
apierrors "k8s.io/apima... |
package main
import (
"context"
"fmt"
"github.com/zzxgzgz/alcor-control-agent-go/api/schema"
//"github.com/zzxgzgz/alcor-control-agent-go/client"
"github.com/zzxgzgz/alcor-control-agent-go/server"
"golang.org/x/time/rate"
"google.golang.org/grpc"
//"google.golang.org/grpc/connectivity"
"log"
"math/rand"
"ne... |
// Package dsort provides distributed massively parallel resharding for very large datasets.
/*
* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
*
*/
package dsort
import (
"context"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"sync"
"github.com/NVIDIA/aistore/3rdparty/atomic"
"github.com/NV... |
// Copyright 2015 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... |
package keeper
import (
"fmt"
"strconv"
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/onomyprotocol/cosmos-gravity-bridge/module/x/gravity/types"
)
const OutgoingTxBatchSize = 100
// BuildOutgoingTXBatch ... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: persistent_volume_claim.proto
package container
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/mwitkow/go-proto-validators"
math "math"
)
// Reference imports to suppress errors if they ... |
// Copyright 2016, <NAME> <<EMAIL>>
// See the LICENSE file for more details.
package voxfile
/*
The VOX file format can be found at the following web page:
https://ephtracy.github.io/index.html?page=mv_vox_format
*/
import (
"bufio"
"encoding/binary"
"fmt"
"os"
)
const (
// CurrentVersion specifies the sup... |
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/services/distance_view_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v3/resources"
_ "goo... |
package cmd
import (
"bufio"
"fmt"
"os"
"path/filepath"
"regexp"
"strings"
"text/template"
"github.com/owenzhou/artisan/app"
"github.com/owenzhou/artisan/config"
"github.com/owenzhou/artisan/controller"
"github.com/owenzhou/artisan/event"
"github.com/owenzhou/artisan/listener"
"github.com/owenzhou/artisa... |
package main
import (
"bytes"
"fmt"
"log"
"os"
"sort"
"strconv"
"strings"
"github.com/pkg/errors"
"golang.org/x/tools/imports"
)
func main() {
if err := _main(); err != nil {
log.Printf("%s", err)
os.Exit(1)
}
}
func _main() error {
return generateHeaders()
}
type headerField struct {
name st... |
// Copyright 2014 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 x86asm
import (
"fmt"
"strings"
)
// IntelSyntax returns the Intel assembler syntax for the instruction, as defined by Intel's XED tool.
func Intel... |
package kerb
import (
"bytes"
"crypto/md5"
"crypto/rand"
"encoding/binary"
"errors"
"fmt"
"github.com/jmckaskill/asn1"
"io"
"reflect"
"testing"
"time"
)
var _ = fmt.Println
type req struct {
realm string
key key
req *kdcRequest
app *appRequest
auth *authenticator
time time.Time
out []byte... |
//
// (C) Copyright 2021-2022 Intel Corporation.
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
package sysfs
import (
"context"
"io"
"io/ioutil"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/pkg/errors"
"github.com/daos-stack/daos/src/control/common"
"github.com/daos-stack/daos/src/control/... |
package generateschema
import (
"errors"
"fmt"
"path"
"strconv"
"strings"
"sync"
"text/template"
"github.com/lolopinto/ent/internal/codegen"
"github.com/lolopinto/ent/internal/codepath"
"github.com/lolopinto/ent/internal/enttype"
"github.com/lolopinto/ent/internal/field"
"github.com/lolopinto/ent/internal... |
// Copyright 2021 Flamego. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package route
import (
"net/http"
"net/url"
"regexp"
"strings"
"github.com/pkg/errors"
)
// Tree is a tree derived from a segment.
type Tree interface {
// Ma... |
// Copyright © 2019 <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 wri... |
/*
Copyright (c) 2014 VMware, 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 law or agreed t... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: model/taskdef.proto
package model // import "github.com/netflix/conductor/client/gogrpc/conductor/model"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _struct "github.com/golang/protobuf/ptypes/struct"
// Referen... |
// Copyright 2014 beego Author. 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 applica... |
// Copyright © 2018 Heptio
// 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 writin... |
/*
Copyright 2019 The MayaData 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... |
package triggerManager
import (
"context"
"encoding/json"
"fmt"
"math"
"net/http"
"strings"
"time"
httptransport "github.com/go-openapi/runtime/client"
"github.com/go-openapi/runtime/middleware"
"github.com/go-openapi/strfmt"
"github.com/prometheus/client_golang/prometheus"
"github.com/remeh/sizedwaitgrou... |
package ff
import (
"io"
"github.com/cloudflare/circl/internal/conv"
)
// FpSize is the length in bytes of an Fp element.
const FpSize = 48
// fpMont represents an element in the Montgomery domain (little-endian).
type fpMont = [FpSize / 8]uint64
// fpRaw represents an element in the integers domain (little-endi... |
// Machine-generated file.
// See http://winterdrache.de/bindings for details.
package sdl
// #include "includes.h"
import "C"
import "unsafe"
// Header for the enumerated pixel format definitions.
// ↪ https://wiki.libsdl.org/SDL_Color
type Color struct {
R uint8
G uint8
B uint8
A uint8
}
fun... |
package gohtml
// <a></a>
func A() *GoTag {
return Tag("a")
}
func (cur *GoTag) A() *GoTag {
return cur.Tag("a")
}
// <abbr></abbr>
func Abbr() *GoTag {
return Tag("abbr")
}
func (cur *GoTag) Abbr() *GoTag {
return cur.Tag("abbr")
}
// <acronym></acronym>
func Acronym() *GoTag {
return Tag("acronym")
}
func ... |
/*
* Copyright (C) 2019 Yunify, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this work except in compliance with the License.
* You may obtain a copy of the License in the LICENSE file, or at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
// Copyright (c) 2020 Tailscale Inc & 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 resolver
import (
"bytes"
"context"
"encoding/binary"
"errors"
"fmt"
"hash/crc32"
"math/rand"
"net"
"sync"
"syscall"
"time"
dn... |
/*
Copyright 2016 The Rook 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 law or agreed to ... |
/*
* Copyright 2019-2020 VMware, 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 law... |
package inventory
import (
"fmt"
"github.com/thoas/go-funk"
"os"
"github.com/jaypipes/ghw"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/pkg/errors"
"github.com/openshift/assisted-service/models"
)
// deleteExpectedCall allows deleting call expectations from a mock according to method na... |
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License... |
// Copyright (c) 2019 Uber Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
package filter
import (
"fmt"
"regexp"
"strconv"
"strings"
"github.com/pkg/errors"
)
type NodeType string
type Node interface {
Type() NodeType
}
type BoolExpr interface {
Node
Value(data map[string]interface{}) (bool, error)
}
type Rule struct {
createNodeFn func(params []Node) (Node, error)
pattern ... |
package wsgate
import (
"context"
"crypto/md5"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net"
"net/http"
"os"
"sort"
"strings"
"time"
"github.com/IBM/go-security-plugs/iofilter"
pi "github.com/IBM/go-security-plugs/pluginterfaces"
)
const version string = "0.0.1"
const name string = "... |
// Package bucket implements the Kademlia binary tree.
package bucket
import (
"bytes"
"fmt"
"math"
"net"
"sort"
)
// New bucket with given id. Given id is preferably a 20 bytes string.
func New(targetID []byte) *KBucket {
ret := &KBucket{}
ret.Clear()
ret.targetID = targetID
return ret
}
// Clear the bucke... |
package ui
import (
"fmt"
"github.com/koho/frpmgr/pkg/config"
"github.com/koho/frpmgr/pkg/consts"
"github.com/koho/frpmgr/pkg/util"
"github.com/koho/frpmgr/services"
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
"github.com/thoas/go-funk"
"strings"
)
type EditProxyDialog struct {
*walk.Dialog
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: authentication-service.proto
package v1
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "... |
/*
Copyright 2020 The Kubernetes Authors.
SPDX-License-Identifier: Apache-2.0
*/
package v1alpha1
import (
"bytes"
"errors"
"fmt"
"reflect"
"strings"
corev1 "k8s.io/api/core/v1"
apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.... |
// 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 handler
import (
"context"
"encoding/json"
"runtime/trace"
"strings"
"github.com/matrix-org/sync-v3/internal"
"github.com/matrix-org/sync-v3/sync3"
"github.com/matrix-org/sync-v3/sync3/caches"
"github.com/matrix-org/sync-v3/sync3/extensions"
)
type JoinChecker interface {
IsUserJoined(userID, roomID... |
// Copyright 2022 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package yx
import (
"bufio"
"fmt"
"os"
"path"
"strconv"
"strings"
"sync"
"time"
// "syscall"
)
const (
LOG_BATCH_DUMP_COUNT = 100
LOG_MAX_CACHE_SIZE ... |
/* Copyright (C) 2016 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this file (originally named utf.go) and associated documentation files
* (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... |
// Copyright 2019-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included in
// the file licenses/BSL-Couchbase.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 Lic... |
package goffmpeg
import (
"context"
"fmt"
"io"
"regexp"
"strconv"
"strings"
"unicode"
"github.com/wader/ffcat/internal/goffmpeg/internal/execextra"
"github.com/wader/ffcat/internal/goffmpeg/internal/kvargs"
"github.com/wader/ffcat/internal/goffmpeg/internal/linebuffer"
)
// FFmpegPath to ffmpeg binary. Wil... |
// Package eqgrpc provides a gRPC backend for EntroQ. This is the backend that is
// commonly used by clients of an EntroQ task service, set up thus:
//
// Server:
// qsvc -> entroq library -> some backend (e.g., pg)
//
// Client:
// entroq library -> grpc backend
//
// You can start, for example, a postgres-back... |
package card
import (
"context"
"encoding/json"
"errors"
"log"
"net/http"
"net/url"
"strconv"
"strings"
"time"
"github.com/coreymgilmore/stripe-appengine-frontend/pkgs/appsettings"
"github.com/coreymgilmore/stripe-appengine-frontend/pkgs/company"
"github.com/coreymgilmore/stripe-appengine-frontend/pkgs/da... |
/*
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 2014 The Camlistore 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 National Library of Norway.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
package k8stcpdump
import (
"archive/tar"
"context"
"encoding/json"
"fmt"
"os"
"path/filepath"
"regexp"
"strconv"
log "github.com/sirupsen/logrus"
//"9fans.net/go/plan9/client"
apicore "k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes/scheme"
"k8s... |
/*
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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/extensions/access_loggers/grpc/v3alpha/als.proto
package envoy_extensions_access_loggers_grpc_v3alpha
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
v3alpha "github.com/envoyproxy/go-control-plane/envoy/config/core/v3alpha"
_ "gith... |
// Copyright 2013 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.
package clevergo
import (
"errors"
"fmt"
"io"
"log"
"net/http"
"net/url"
"strings"
"sync"
)
// errors
var (
ErrRendererNotRegister = errors.New("renderer not... |
/*
Copyright 2021 The Rook 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 law or agreed to ... |
// Code generated by 'ccgo stdio\gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio\stdio_windows_386.go -pkgname stdio', DO NOT EDIT.
package stdio
import (
"math"
"ref... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.1
// source: envoy/api/v2/cluster/filter.proto
package cluster
import (
_ "github.com/cncf/xds/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
any "github.com/golang/protobuf/... |
/*
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 2016 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, ... |
/*
* Copyright (C) 2019 Synopsys, Inc.
*
* 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 Licens... |
// Package kubernetes handles all interaction with the Kubernetes API including starting
// and stopping tasks, monitoring their status, and fetching logs.
package kubernetes
import (
"fmt"
"net/http"
"strconv"
"github.com/labstack/echo/v4"
"github.com/pkg/errors"
"github.com/determined-ai/determined/master/in... |
package main
import (
"bufio"
"bytes"
"context"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"runtime"
"strings"
"github.com/containerd/containerd/log"
"github.com/containerd/containerd/remotes/docker"
"github.com/deislabs/oras/pkg/content"
"github.com/deislabs/oras/pkg/oras"
"github.com/hashicorp/g... |
package workflows
import (
"fmt"
"strconv"
"strings"
"github.com/aws/aws-sdk-go/service/cloudformation"
"github.com/stelligent/mu/common"
)
var ecsImageOwner = "amazon"
var ecsImagePattern = "amzn-ami-*-amazon-ecs-optimized"
var eksImageOwner = "602401143452"
var eksImagePattern = "amazon-eks-node-v*"
var ec2Im... |
package base
import (
"errors"
"fmt"
"sync"
"time"
"github.com/couchbase/gocbcore/v10"
"github.com/couchbase/gocbcore/v10/memd"
sgbucket "github.com/couchbase/sg-bucket"
)
//
const openStreamTimeout = 30 * time.Second
const openRetryCount = 10
const defaultNumWorkers = 8
type endStreamCallbackFunc func(e en... |
// Copyright 2020 The Chromium 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 executable is meant to be a general way to gather perf data using puppeteer. The logic
// (e.g. what bench to run, how to process that particular ... |
package governance
import (
"fmt"
"github.com/tendermint/tendermint/abci/types"
"github.com/oasisprotocol/oasis-core/go/common/cbor"
"github.com/oasisprotocol/oasis-core/go/common/node"
"github.com/oasisprotocol/oasis-core/go/common/quantity"
"github.com/oasisprotocol/oasis-core/go/consensus/api/transaction"
... |
// Copyright (c) 2017 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
// Subject to Arista Networks, Inc.'s EULA.
// FOR INTERNAL USE ONLY. NOT FOR DISTRIBUTION.
package sizeof
import (
"errors"
"reflect"
"unsafe"
"github.com/aristanetworks/goarista/areflect"
)
... |
// Code generated by errors-const v0.2.0 tool DO NOT EDIT.
package ably
// ErrorCode is the type for predefined Ably error codes.
type ErrorCode int
const (
ErrNotSet ErrorCode = 0
ErrNoError ... |
package main
import (
"context"
"errors"
"flag"
"fmt"
"log"
"os"
"strings"
"sync"
"time"
"github.com/wptide/pkg/env"
"github.com/wptide/pkg/message"
"github.com/wptide/pkg/message/firestore"
"github.com/wptide/pkg/message/mongo"
"github.com/wptide/pkg/message/sqs"
"github.com/wptide/pkg/payload"
"gith... |
// Copyright © 2019 The Things Network Foundation, The Things Industries B.V.
//
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: credentialmonitor.proto
package admin
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference i... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/errors/feed_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 suppress err... |
/*
Copyright 2016 The Rook 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 law or agreed to ... |
/*
Copyright 2021 The KubeVela 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.