text
stringlengths
3.08k
10.4k
package rsocket_test import ( "context" "fmt" "log" "time" "github.com/jjeffcaii/reactor-go/scheduler" "github.com/rsocket/rsocket-go" "github.com/rsocket/rsocket-go/payload" "github.com/rsocket/rsocket-go/rx" "github.com/rsocket/rsocket-go/rx/flux" "github.com/rsocket/rsocket-go/rx/mono" ) func Example() ...
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package units import ( "encoding/csv" "fmt" "io" "os" "strings" "github.com/facebookresearch/Clinical-Trial-Parser/src/common/param" "github.com/facebookresearch/Clinical-Trial-Parser/src/common/trie" "github.com/facebookresearch/Clinic...
package wallet const ( ParamsArgName = "params" BodyArgName = "body" ) // ArgumentNames maps method names from the `ClientInterface` to their parameter names. // The receiver and the first parameter (ctx) are excluded. // // TODO this could and should be auto-generated from swagger.yaml or based on the source cod...
// 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 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
package auth import ( "context" "fmt" "net/http" "strconv" "strings" "time" "github.com/golang-jwt/jwt" "github.com/parkgang/modern-board/internal/app/data/redis" "github.com/pkg/errors" "github.com/spf13/viper" "github.com/twinj/uuid" ) type TokenDetails struct { AccessToken string RefreshToken string...
// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 package main import ( "bytes" "context" "crypto/md5" "errors" "fmt" "io" "os" "strings" "sync" "time" ) // A TestableVolume allows test suites to manipulate the state of an // underlying Volume, in order to t...
package cmd import ( "flag" "path/filepath" "strconv" // "fmt" // "log" "os" "runtime" "github.com/spf13/cobra" "github.com/spf13/pflag" // "google.golang.org/grpc" // "k8s.io/kubernetes/pkg/util/rand" "github.com/tangfeixiong/go-to-kubernetes/mysql-operator/pkg/preboot" "github.com/tangfeixiong/go-to...
package cloudwatch import ( "context" "fmt" "regexp" "strconv" "strings" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/ec2/ec2iface" "github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/resourcegroupstaggingapiiface" "github.com/grafana/grafana/pkg/log" "github.com/grafana...
// +build linux /* pi-init3 * * A shim to drop onto a Raspberry Pi to write some files to its root * filesystem before giving way to the real /sbin/init. Its goal is simply * to allow you to customise a RPi by dropping files into that FAT32 /boot * partition, as opposed to either 1) booting it and manually setti...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package databasemigrationservice import ( "context" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" ) type ModifyReplicationTaskInput struct { _ struct{} `type:"structure"` // Indicates when you wan...
// Copyright 2016-2017 Authors of Cilium // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
/* Copyright 2019 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 2019 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 applica...
// Copyright (c) 2020 Doc.ai and/or its affiliates. // // 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/LIC...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.7.0 // source: msg.proto package msg import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl"...
package main import ( "reflect" "testing" "github.com/rjkroege/edwood/internal/edwoodtest" "github.com/rjkroege/edwood/internal/file" "github.com/rjkroege/edwood/internal/sam" ) // TestWindowUndoSelection checks text selection change after undo/redo. // It tests that selection doesn't change when undoing/redoin...
// Copyright 2015 go-smpp 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 pdufield import ( "encoding/binary" "encoding/json" "io" "strconv" ) //TLV Tags const ( DestAddrSubunit TLVType = 0x0005 DestNetworkTy...
/* * Copyright 2018 Venafi, 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...
package redis import ( "github.com/kataras/golog" "github.com/kataras/iris/v12/sessions" "strings" "time" ) type DatabaseString struct { c Config logger *golog.Logger } // Config returns the configuration for the redis server bridge, you can change them. func (db *DatabaseString) Config() *Config { retur...
/* * Copyright 2018 The CovenantSQL 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 ...
/* Copyright 2021 The Dapr 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, software d...
package cotton import ( "fmt" "strings" ) const ( nodeStatic = iota nodeEmpty nodeParam nodeCatchAll keyParam = ":_" ) type ( tree struct { root *node } node struct { key string fullpath string nodeType byte children map[string]*node isRealNode bool handler HandlerFunc middleware ...
package config import ( "errors" "flag" "fmt" "os" "reflect" "strconv" "strings" "time" "unsafe" ) var ( // ErrNotPointerToStruct is an error returned when the supplied parameter // is not a pointer to a struct ErrNotPointerToStruct = errors.New("Expected pointer to struct parameter") ) // flagset is a l...
package perconaxtradbcluster import ( "container/heap" "context" "fmt" batchv1beta1 "k8s.io/api/batch/v1beta1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/client" api "github.com/Percona-Lab/percona-xtradb-cluster-...
// 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...
package RLBotGo import ( "encoding/binary" "flag" "fmt" "io" "net" schema "github.com/Trey2k/RLBotGo/flat" ) type RLBot struct { conn net.Conn debugRenderGroup *RenderGroup PlayerIndex int32 } type payload struct { data []byte dataType uint16 dataSize uint16 } type rlData interface...
// Copyright 2010 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 readline provides access to the editline/readline C library. package readline /* #cgo readline LDFLAGS: -lreadline -lhistory #cgo !readline LDFLAGS:...
// Copyright © 2017 The virtual-kubelet 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 2015-2018 <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...
/* Copyright 2021 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 2020 Shift Crypto AG // // 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...
package dispatcher import ( cryptoRand "crypto/rand" "encoding/base64" "encoding/binary" "fmt" "github.com/bwmarrin/discordgo" "io" "log" "math/rand" "narval/launchers" "os" "os/signal" "path" "strings" "syscall" "time" ) type messageEvent struct { session *discordgo.Session message *discordgo.Messag...
package experiment import ( "code.cloudfoundry.org/bytefmt" "github.com/pkg/errors" "github.com/allenai/beaker/api" ) // ExperimentSpec describes a set of tasks with optional dependencies. // This set represents a (potentially disconnected) directed acyclic graph. type ExperimentSpec struct { // (optional) Text ...
// Package beacon implements the beacon application. package beacon import ( "encoding/binary" "encoding/hex" "fmt" "github.com/tendermint/tendermint/abci/types" "golang.org/x/crypto/sha3" "github.com/oasisprotocol/oasis-core/go/consensus/api/transaction" "github.com/oasisprotocol/oasis-core/go/consensus/tend...
/*- * Copyright © 2017, <NAME> <<EMAIL>> * All rights reserved. * * Use of this source code is governed by a 2-clause BSD license * that can be found in the LICENSE file. */ package main // import "github.com/solnx/dustdevil/cmd/dustdevil" import ( "flag" "fmt" "os" "os/signal" "path/filepath" "runtime" ...
// Copyright 2020 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...
// Copyright (c) 2020 Couchbase, 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...
// Copyright 2016 tsuru 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 eventtest import ( "fmt" "strings" "time" "github.com/globalsign/mgo/bson" "github.com/tsuru/tsuru/db" "github.com/tsuru/tsuru/event" check "gop...
package gomodules import ( "bytes" "context" "encoding/json" "fmt" "io/ioutil" "os" "os/exec" "path/filepath" "regexp" "strconv" "strings" "github.com/dependabot/gomodules-extracted/cmd/go/_internal_/modfetch" "github.com/dependabot/gomodules-extracted/cmd/go/_internal_/modinfo" "github.com/sirupsen/log...
package dns // 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 // // Unless ...
/* Copyright 2018 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 ...
package view import ( "errors" "fmt" "github.com/crypto-com/chain-indexing/appinterface/projection/view" sq "github.com/Masterminds/squirrel" "github.com/crypto-com/chain-indexing/internal/utctime" pagination_interface "github.com/crypto-com/chain-indexing/appinterface/pagination" "github.com/crypto-com/cha...
/* 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...
// 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 assistant import ( "context" "io/ioutil" "path/filepath" "regexp" "strconv" "strings" "time" "chromiumos/tast/errors" "chromiumos/ta...
/* Copyright 2020 The Flux 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, softwar...
package views // import "github.com/jenkins-x/octant-jx/pkg/plugin/views" import ( "fmt" "strings" "github.com/jenkins-x/jx-logging/pkg/log" "github.com/jenkins-x/octant-jx/pkg/common/links" "github.com/jenkins-x/octant-jx/pkg/common/pluginctx" "github.com/jenkins-x/octant-jx/pkg/common/viewhelpers" "github.c...
package suse import ( "os" "testing" "time" ftypes "github.com/aquasecurity/fanal/types" dbTypes "github.com/aquasecurity/trivy-db/pkg/types" "github.com/aquasecurity/trivy/pkg/types" "github.com/stretchr/testify/assert" susecvrf "github.com/aquasecurity/trivy-db/pkg/vulnsrc/suse-cvrf" "github.com/aquasecur...
/* // +build testing */ // Copyright (c) 2012-2015 <NAME>. All rights reserved. // Use of this source code is governed by a MIT license found in the LICENSE file. package codec import "time" // This file contains values used by tests alone. // This is where we may try out different things, // that other ...
package render import ( "github.com/emily33901/lambda-core/core/mesh" "github.com/emily33901/lambda-core/core/mesh/util" "github.com/go-gl/mathgl/mgl32" ) type Composition struct { Vertices []float32 Normals []float32 UVs []float32 Tangents []float32 Light...
package riakpbc import ( "log" "time" ) type Client struct { cluster []string pool *Pool Coder *Coder // Coder for (un)marshalling data logging bool pingFrequency int closed chan struct{} } // NewClient accepts a slice of node address strings and returns a Client object. /...
// Copyright 2018 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
package influxdb import ( "fmt" "net" "os" "strconv" "time" "github.com/Polarishq/middleware/framework/log" "github.com/declanshanaghy/bbqberry/framework" "github.com/declanshanaghy/bbqberry/util" clientv1 "github.com/influxdata/influxdb/client" "github.com/influxdata/influxdb/client/v2" ) // Settings hold...
// Copyright 2013 Unknown // // 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 writ...
// Copyright 2016 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 command import ( "encoding/base64" "encoding/json" "fmt" "io" "net/http" "github.com/cruisechang/liveServer/config" "github.com/cruisechang/liveServer/control" "github.com/cruisechang/nex" "github.com/cruisechang/nex/entity" nxLog "github.com/cruisechang/nex/log" ) //interface for parameters //type...
package boost import ( "errors" "fmt" "net/http" "os" "reflect" "github.com/BixData/gluasocket" "github.com/ailncode/gluaxmlpath" "github.com/cjoudrey/gluahttp" "github.com/cjoudrey/gluaurl" "github.com/kohkimakimoto/gluayaml" "github.com/rs/zerolog" log "github.com/rs/zerolog/log" "github.com/serenize/s...
package main import ( "io" "net/http" "encoding/xml" "os/exec" "log" "os" "regexp" ) const LISTEN_ADDRESS = ":9202" const NVIDIA_SMI_PATH = "/usr/bin/nvidia-smi" var testMode string; type NvidiaSmiLog struct { DriverVersion string `xml:"driver_version"` AttachedGPUs string `xml:"...
package action import ( "encoding/json" "errors" "fmt" "time" ha "helm.sh/helm/v3/pkg/action" "helm.sh/helm/v3/pkg/chartutil" "helm.sh/helm/v3/pkg/release" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" "k8s.io/cli-runtime/pkg/genericclioptions" "kmodules.xyz/resource-metadat...
package nq_test import ( "bytes" "context" "io" "sync" "testing" "time" "github.com/aigent/nq" ) var pubOpts = nq.PubOpts{ //Printf: log.Printf, } var subOpts = nq.SubOpts{ //Printf: log.Printf, } var metrics = nq.NewDefaultMetrics() func newPubSub(ctx context.Context, t testing.TB, u...
package cli import ( "encoding/json" "flag" "fmt" "io/ioutil" "log" "os" "path/filepath" "strings" "github.com/samuelstevens/gocaption/util" ) const ( writeHelp = "Writes any captions found in original .html documents." silentHelp = "Doesn't report any captions to stdout" thresholdHelp = "Specifie...
package config import ( "crypto/tls" "encoding/json" "fmt" "strings" "time" "github.com/dollarshaveclub/pvc" "github.com/pkg/errors" ) type ServerConfig struct { HTTPSPort uint HTTPSAddr string DisableTLS bool TLSCert tls.Certificate Wo...
// Package depositutil contains useful functions for dealing // with eth2 deposit inputs. package depositutil import ( "github.com/ethereum/go-ethereum/core/types" "github.com/pkg/errors" ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1" "github.com/prysmaticlabs/go-ssz" "github.com/prysmaticlabs/prysm/b...
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-2019 Datadog, Inc. package util import ( "crypto/tls" "fmt" "io" "io/ioutil" "math/rand" ...
package encryption import ( "bytes" "context" "encoding/hex" "fmt" "reflect" "testing" "time" "github.com/stretchr/testify/require" "go.etcd.io/etcd/clientv3" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg...
/* 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...
package lib import ( "context" "errors" "io" "log" "net" "sync" "time" "git.torproject.org/pluggable-transports/snowflake.git/common/turbotunnel" "github.com/xtaci/kcp-go/v5" "github.com/xtaci/smux" ) const ( ReconnectTimeout = 10 * time.Second SnowflakeTimeout = 30 * time.Second // How long to wait for...
// gofmt -tabs=false -tabwidth=2 zip2.go package main import ( "fmt" "os" "path" "path/filepath" "strings" "github.com/enr/clui" "github.com/enr/go-files/files" "github.com/enr/zipext" "github.com/mattn/go-colorable" "github.com/urfave/cli" "github.com/enr/zipp/lib/core" ) const missingParamInputPath st...
// Code generated by "esc"; DO NOT EDIT. package js import ( "bytes" "compress/gzip" "encoding/base64" "fmt" "io" "io/ioutil" "net/http" "os" "path" "sync" "time" ) type _escLocalFS struct{} var _escLocal _escLocalFS type _escStaticFS struct{} var _escStatic _escStaticFS type _escDirectory struct { f...
package main import ( "encoding/json" "fmt" "html/template" "log" "net/http" "strconv" "strings" cache "github.com/patrickmn/go-cache" ) /* * Routes */ // SMS API sends func receivePlivoSMS(w http.ResponseWriter, r *http.Request) { // log.Println("receivePlivoSMS", r.Method) if r.Method != "POST" { ...
/* * Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) 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 * * ...
package service import ( "encoding/json" "errors" "gin-admin/common" "gin-admin/common/utils" "gin-admin/dao" "gin-admin/dto" "go.uber.org/zap" "strconv" "time" ) // 获取角色所有菜单列表 func GetRoleMenuTree(RoleId int) (menuTreeList []*dto.SysMenu, err error) { if val,err1:=common.CACHE.Get("sideMenu").Result();err1!...
// Copyright 2016 <NAME>. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package id3v2 import ( "bufio" "bytes" "io" ) // bufReader is used for convenient parsing of frames. type bufReader struct { buf *bufio.Reader err error } // ne...
package main import ( "context" "crypto/md5" "fmt" "io" "os" "github.com/mkideal/cli" "github.com/qiniu/api.v7/auth/qbox" "github.com/qiniu/api.v7/storage" ) const ( versionName string = "1.0.0" commInfo string = "qiniu sdk v7 utils" // set your qiniu set downloadURLHead string = "http://xx.clouddn.co...
// Copyright 2020 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...
// Copyright 2018 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...
package main import ( "fmt" "os" "strconv" "github.com/sanity-io/litter" "github.com/udhos/a10-go-rest-client/a10go" ) func main() { me := os.Args[0] fmt.Printf(me + " version 0.0\n") if len(os.Args) != 4 { fmt.Printf("usage: %s host username password\n", me) fmt.Printf("example: %s 10.255.25...
package pgexpect import ( "fmt" "reflect" "strings" "testing" "time" "github.com/jmoiron/sqlx" ) // MockFunction replace a function and expect calls to it func MockFunction(function Function, expectedCalls []Call, t *testing.T, db *sqlx.DB, testFunc func(t *testing.T, db *sqlx.DB)) { body := createCallTrackin...
package launcher import ( "context" "github.com/mcdexio/mai3-broker/common/chain" "github.com/mcdexio/mai3-broker/common/model" "github.com/mcdexio/mai3-broker/conf" "github.com/mcdexio/mai3-broker/dao" "github.com/mcdexio/mai3-broker/gasmonitor" "github.com/mcdexio/mai3-broker/match" "github.com/mcdexio/mai3...
/* 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, ...
/* Copyright 2015 The Kubernetes 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 ag...
package main import ( "encoding/json" "flag" "fmt" "io" "io/ioutil" "os" "path" "github.com/osbuild/osbuild-composer/internal/distro/fedora32" "github.com/osbuild/osbuild-composer/internal/distro/fedora33" "github.com/osbuild/osbuild-composer/internal/distro/rhel8" "github.com/osbuild/osbuild-composer/int...
package main import ( "context" "errors" "flag" "fmt" "io/ioutil" "os" "os/exec" "path/filepath" "strings" "github.com/shurcooL/githubv4" "golang.org/x/oauth2" ) var version = "0.0.1" var client *githubv4.Client var configFile = ".github_token" type PullRequest struct { URL string } type Repo struct ...
package store import ( "fmt" "log" "math/rand" "testing" "time" "github.com/ExploratoryEngineering/air-quality-sensor-node/server/pkg/model" "github.com/ExploratoryEngineering/air-quality-sensor-node/server/pkg/store/sqlitestore" "github.com/stretchr/testify/assert" ) var testCal = model.Cal{ DeviceID: ...
package cluster import ( "encoding/json" "fmt" "strings" "sync" "sync/atomic" "time" log "github.com/sirupsen/logrus" ) const CLUSUnicastStore string = "unicast/" const CLUSUniackStore string = "uniack/" type CLUSUnicast struct { Expect string `json:"expect"` Data []byte `json:"data"` } type MessengerIn...
// Copyright 2018 ETH Zurich // // 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 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, ...
package baggageclaimcmd import ( "fmt" "os" "runtime" "time" "code.cloudfoundry.org/clock" "code.cloudfoundry.org/lager" "github.com/concourse/baggageclaim/api" "github.com/concourse/baggageclaim/reaper" "github.com/concourse/baggageclaim/uidjunk" "github.com/concourse/baggageclaim/volume" "github.com/conc...
package cmd import ( "context" "fmt" "net/http" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/session" webserver "github.com/chanzuckerberg/aws-oidc/pkg/aws_config_server" CZIOkta "github.com/chanzuckerberg/aws-oidc/pkg/okta" "github.com/chanzuc...
// Copyright 2017 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 a...
// Package cmd implements access-cli commands package cmd /* Copyright © 2020 Barracuda Networks, 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....
package httpmiddleware import ( "context" "net/http" "github.com/SKF/proto/common" "github.com/gorilla/mux" "github.com/pkg/errors" "go.opencensus.io/trace" http_model "github.com/SKF/go-utility/http-model" http_server "github.com/SKF/go-utility/http-server" "github.com/SKF/go-utility/jwk" "github.com/SKF/...
// Copyright 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 syntax import "fmt" // PosMax is the largest line or column value that can be represented without loss. // Incoming values (arguments) larger than Pos...
// Copyright 2022 <EMAIL> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
// Copyright 2020-2021 Buf 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...
// Copyright 2020 Dolthub, 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...
// +build linux,experimental package plugin import ( "fmt" "os" "path/filepath" "syscall" "time" "github.com/Sirupsen/logrus" "github.com/docker/docker/libcontainerd" "github.com/docker/docker/oci" "github.com/docker/docker/pkg/plugins" "github.com/docker/docker/pkg/system" "github.com/docker/docker/resta...
package zstore import ( "context" "net/url" "strings" "time" "crypto/tls" "github.com/pingcap/errors" pd "github.com/pingcap/pd/v4/client" "github.com/pingcap/tidb/config" "github.com/pingcap/tidb/kv" "github.com/pingcap/tidb/store/tikv" "github.com/pingcap/tidb/util/logutil" "go.uber.org/multierr" "go....
package executor import ( "context" "fmt" "os/exec" "sync" "time" "github.com/neelance/parallel" "github.com/pkg/errors" "github.com/sourcegraph/src-cli/internal/batches" "github.com/sourcegraph/src-cli/internal/batches/log" "github.com/sourcegraph/src-cli/internal/batches/workspace" ) type TaskExecutionEr...
package echowbt import ( "bytes" "encoding/json" "github.com/labstack/echo/v4" "io" "mime/multipart" "net/http" "net/http/httptest" "os" "path/filepath" "strings" ) func concat(ss ...string) string { var ns strings.Builder for _, s := range ss { ns.WriteString(s) } return ns.String() } // Dict repres...