text
stringlengths
5.51k
28.1k
package gocode //------------------------------------------------------------------------- // gc_ibin_parser // // The following part of the code may contain portions of the code from the Go // standard library, which tells me to retain their copyright notice: // // Copyright (c) 2012 The Go Authors. All rights reserv...
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Copyright 2022 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 main import ( "encoding/json" "fmt" "io/ioutil" "log" "os" "path/filepath" "strings" "sync" "time" a "github.com/meinside/steam-community-market-artifact" t "github.com/meinside/telegram-bot-go" ) const ( // config filename confFilename = "config.json" // cache ttl cacheMinutes = 5 // comma...
package generator import ( "bytes" "crypto/md5" "encoding/hex" "encoding/json" "fmt" "image" "image/draw" "image/png" "io" "io/fs" "log" "math/rand" "os" "path/filepath" "sort" "strings" "sync" "time" "github.com/clickpop/looks/utils" conf "github.com/clickpop/looks/utils/config" ) var wg sync.Wa...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/websecurityscanner/v1beta/finding.proto package websecurityscanner import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors ...
/* Copyright 2022 The Kubernetes-CSI-Addons Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
// Copyright 2016 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. /* The makemac command starts OS X VMs for the builders. It is currently just a thin wrapper around govc. See https://github.com/vmware/govmomi/tree/master/gov...
package tasks import ( "context" "crypto/rand" "errors" "fmt" "io" "os" "path/filepath" "strings" "time" "github.com/filecoin-project/dealbot/netutil" "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-fil-markets/storagemarket" "github.com/filecoin-project/go-state-types/abi" "git...
// license that can be found in the LICENSE file. // package udpsocket is a simple UDP server to make a virtual secure channel with the clients package udpsocket import ( "bytes" "context" "errors" "fmt" "github.com/theredrad/udpsocket/crypto" "github.com/theredrad/udpsocket/encoding" "github.com/theredrad/udp...
package application import ( "fmt" "math" "time" "github.com/golang/glog" corev1 "k8s.io/api/core/v1" kerrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/tools/cache" "k8s.io/...
package pubtkt // from crypto ssh golang // // // Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. import ( "bytes" "crypto" "crypto/dsa" "crypto/md5" "crypto/rsa" "crypto/sha256" "crypto/x509" "encoding...
// 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...
// 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 2013-2015 Canonical Ltd. // Licensed under the LGPLv3, see LICENCE file for details. // Package replicaset provides convenience functions and structures for // creating and managing MongoDB replica sets via the mgo driver. package replicaset import ( "fmt" "io" "sort" "strings" "syscall" "time" "...
package main import ( "bytes" "encoding/json" "errors" "fmt" "io" "io/ioutil" "math" "mime" "net/http" "net/url" "path" "rais/src/iiif" "rais/src/img" "strconv" "strings" ) func acceptsLD(req *http.Request) bool { for _, h := range req.Header["Accept"] { for _, accept := range strings.Split(h, ",") ...
package UploadFiles // // Copyright (C) <NAME>, 2013-2016. All rights reserved. // /* TODO +1. (client side) Programmatic call - so can upload image for processing via 2nd Ajax call. (or upload, then on completion do a second call?) (or upload, server side - do a call) -- Post process -- 2. Other Params -- u...
package lss import ( "fmt" "github.com/kpmy/ypk/assert" "io" "strconv" "strings" "unicode" ) type Symbol int type Foreign int const ( None = iota Ident String Number Period Delimiter Separator Becomes UpTo Lbrak Rbrak Colon Comma Times Equal Nequal Minus Plus Lparen Rparen And Or Not ...
// Package ssh_config provides tools for manipulating SSH config files. // // Importantly, this parser attempts to preserve comments in a given file, so // you can manipulate a `ssh_config` file from a program, if your heart desires. // // The Get() and GetStrict() functions will attempt to read values from // $HOME/.s...
package elasticsearch import ( "encoding/json" "fmt" "io/ioutil" "net/http" "regexp" "sort" "strings" "sync" "time" "github.com/yevheniir/telegraf-fork" "github.com/yevheniir/telegraf-fork/internal" "github.com/yevheniir/telegraf-fork/internal/tls" "github.com/yevheniir/telegraf-fork/plugins/inputs" jso...
/* 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 <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 writin...
package qlog import ( "errors" "fmt" "net" "time" "github.com/xiaotianfork/quic-go" "github.com/xiaotianfork/quic-go/internal/protocol" "github.com/xiaotianfork/quic-go/internal/utils" "github.com/xiaotianfork/quic-go/logging" "github.com/francoispqt/gojay" ) func milliseconds(dur time.Duration) float64 { ...
//Copyright 2017 Improbable. All Rights Reserved. // See LICENSE for licensing terms. package grpcweb_test import ( "bufio" "bytes" "crypto/tls" "encoding/binary" "fmt" "io" "io/ioutil" "log" "net" "net/http" "net/textproto" "os" "strconv" "strings" "testing" "time" "github.com/golang/protobuf/proto...
package terminal //lint:file-ignore ST1005 errors here can be capitalized import ( "fmt" "io" "net/rpc" "os" "os/signal" "strings" "sync" "syscall" "github.com/derekparker/trie" "github.com/peterh/liner" "github.com/go-delve/delve/pkg/config" "github.com/go-delve/delve/pkg/locspec" "github.com/go-delve...
// Copyright 2015 <NAME> and The Caddy 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 (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. // The tailscaled program is the Tailscale client daemon. It's configured // and controlled via the tailscale CLI program. // // It primarily suppor...
/* * Copyright (c) 2021 XLAB d.o.o * * 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 2020 BlackRock, 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 di...
/* Copyright (c) <NAME>Core. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ package ldapclient import ( "context" "crypto/tls" "encoding/json" "fmt" "net" "strings" "sync" "time" "github.com/coocood/freecache" "github.com/i-core/r...
// Copyright 2018 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
package binance import "time" var ( validFuturesIntervals = []string{ "1m", "3m", "5m", "15m", "30m", "1h", "2h", "4h", "6h", "8h", "12h", "1d", "3d", "1w", "1M", } validContractType = []string{ "ALL", "CURRENT_QUARTER", "NEXT_QUARTER", } validOrderType = []string{ "LIMIT", "MARKET", "STOP", "TAKE_PR...
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cache import ( "context" "fmt" "os" "path/filepath" "sort" "strings" "sync" "github.com/kdy1/tools/internal/event" "github.com/kdy1/tools/int...
// SPDX-License-Identifier: Unlicense OR MIT // +build linux,!android,!nox11 package window /* #cgo LDFLAGS: -lX11 #include <stdlib.h> #include <locale.h> #include <X11/Xlib.h> #include <X11/Xatom.h> #include <X11/Xutil.h> #define GIO_FIELD_OFFSET(typ, field) const int gio_##typ##_##field##_off = offsetof(typ, field...
// *** 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 sql import ( "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/go/pulumi" ) // Allows you to manage an Azure SQL Database type Datab...
// +build varlink remoteclient package shared import ( "github.com/containers/libpod/cmd/podman/cliconfig" "github.com/containers/libpod/cmd/podman/varlink" "github.com/containers/libpod/pkg/rootless" "github.com/pkg/errors" ) // StringSliceToPtr converts a genericcliresult value into a *[]string func StringSlic...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/automl/v1beta1/operations.proto package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "github.com/golang/protobuf/ptypes...
package main import ( "crypto/subtle" "encoding/hex" "encoding/json" "errors" "fmt" "io/ioutil" "regexp" "time" "github.com/btcsuite/btcd/btcec" "github.com/btcsuite/btcutil" "github.com/btcsuite/btcutil/hdkeychain" "github.com/guggero/chantools/dataformat" "github.com/guggero/chantools/lnd" "github.com...
// Copyright 2015 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...
// Copyright 2017 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. package webpagereplay import ( "bytes" "compress/flate" "compress/gzip" "crypto/sha256" "encoding/base64" "encoding/json" "errors" "fmt" "io" "...
// Copyright 2021 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...
package buildah import ( "encoding/json" "path/filepath" "runtime" "strings" "time" digest "github.com/opencontainers/go-digest" ociv1 "github.com/opencontainers/image-spec/specs-go/v1" "github.com/pkg/errors" "github.com/projectatomic/buildah/docker" ) // makeOCIv1Image builds the best OCIv1 image structur...
package route53 import ( "encoding/json" "errors" "fmt" "sort" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/session" r53 "github.com/aws/aws-sdk-go/service/route53" r53d "github.com/aws/aws-sdk-go/service/route53domains" "gith...
// 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 fetch provides a way to fetch modules from a proxy. package fetch import ( "archive/zip" "bytes" "context" "errors" "fmt" "go/ast" "go/build"...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: api/interface/v1/interface.proto package v1 import ( _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "googl...
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use ...
// Copyright 2020 The SODA Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
/* Copyright 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 2018 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 ...
/* * Bitnami Kubernetes Production Runtime - A collection of services that makes it * easy to run production workloads in Kubernetes. * * Copyright 2019 Bitnami * * 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...
package main import ( "context" "fmt" "strings" "time" "net/http" _ "net/http/pprof" "github.com/spf13/cobra" "github.com/blend/go-sdk/ansi" "github.com/blend/go-sdk/configutil" "github.com/blend/go-sdk/cron" "github.com/blend/go-sdk/datadog" "github.com/blend/go-sdk/db" "github.com/blend/go-sdk/email"...
// 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, copy, modify, merge...
package compute import ( "context" "fmt" "io" "io/fs" "log" "os" "os/exec" "path/filepath" "runtime" "strings" "syscall" "time" "github.com/bep/debounce" "github.com/blang/semver" "github.com/fastly/cli/pkg/cmd" "github.com/fastly/cli/pkg/commands/update" "github.com/fastly/cli/pkg/config" "github.c...
// The MIT License (MIT) // Copyright (c) 2017 <NAME> // 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, modify...
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
package common import ( "fmt" "io/ioutil" "os" "path/filepath" "time" "github.com/fatih/color" wordwrap "github.com/mitchellh/go-wordwrap" "go.mozilla.org/sops/v3" "go.mozilla.org/sops/v3/cmd/sops/codes" . "go.mozilla.org/sops/v3/cmd/sops/formats" "go.mozilla.org/sops/v3/keys" "go.mozilla.org/sops/v3/keys...
package goyave import ( "errors" "net/http" "os" "regexp" "strings" "goyave.dev/goyave/v4/cors" "goyave.dev/goyave/v4/util/fsutil" ) type routeMatcher interface { match(req *http.Request, match *routeMatch) bool } // Router registers routes to be matched and executes a handler. type Router struct { parent ...
// Copyright 2015 The Goga 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 goga import ( "math" "sort" "github.com/cpmech/gosl/chk" "github.com/cpmech/gosl/rnd" "github.com/cpmech/gosl/utl" ) // Solution holds solutio...
package chain import ( "encoding/binary" "encoding/hex" "fmt" "net" "sync" "sync/atomic" "testing" "time" "github.com/btcsuite/btcd/btcjson" "github.com/btcsuite/btcd/chaincfg" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/peer" "github.com/btcsuite/btcd/wire" "github.com/light...
package main import ( "bytes" "fmt" "os" "path/filepath" "reflect" "sort" "strconv" "strings" "golang.org/x/crypto/ssh/terminal" ) type cliCommand struct { name string prototype interface{} desc string context inputContext } // inputContext is a flags type that indicates which contexts a gi...
package lvset import ( "context" "errors" "fmt" "hash/fnv" "os" "path" "path/filepath" "time" "github.com/go-logr/logr" localv1alpha1 "github.com/openshift/local-storage-operator/pkg/apis/local/v1alpha1" "github.com/openshift/local-storage-operator/pkg/common" "github.com/openshift/local-storage-operator/...
// 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.14.0 // source: private/test/catalogtest/test.proto package catalogtest import ( plugin "github.com/spiffe/spire/proto/spire/common/plugin" protoreflect "google.golang.org/protobuf/reflect/protoreflect" pro...
// *** 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 rds import ( "context" "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Information about RDS orderable DB instances and val...
package helpers import ( "fmt" "github.com/SpectraLogic/ds3_go_sdk/ds3" ds3Models "github.com/SpectraLogic/ds3_go_sdk/ds3/models" helperModels "github.com/SpectraLogic/ds3_go_sdk/helpers/models" "github.com/SpectraLogic/ds3_go_sdk/helpers/ranges" "github.com/SpectraLogic/ds3_go_sdk/sdk_log" ...
// Copyright 2019 OVO Technology // // 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 [2016] [SnapRoute 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 t...
// Copyright 2014, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tabletserver import ( "fmt" "time" "code.google.com/p/go.net/context" log "github.com/golang/glog" mproto "github.com/youtube/vitess/go/mysql/proto"...
package translator import ( "errors" "fmt" "reflect" "strconv" "strings" "github.com/goropikari/psqlittle/backend" "github.com/goropikari/psqlittle/core" pg_query "github.com/pganalyze/pg_query_go/v2" ) // Result is interface of query result type Result interface { GetRecords() core.ValuesList GetColumns()...
/** * Predicted frame encoder */ package main import ( "image/color" "image/jpeg" "image/png" "strings" "strconv" "image" "bufio" "math" "flag" "time" "log" "fmt" "os" ) const BlockSize = 16 const BlockMaxOffset = 8 const BlockMaxFractOffset = 0.5 const BlockFractStep = 0.25 /* * struct ImageData */...
package basicnet import ( "context" "encoding/hex" "fmt" "testing" "time" net "gx/ipfs/QmNa31VPzC561NWwRsJLE7nGYZYuuD2QfpK2b1q9BK54J1/go-libp2p-net" cid "gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid" peerstore "gx/ipfs/QmPgDWmTmuzvP7QE5zwo1TmjbJme9pmZHNujB2453jkCTr/go-libp2p-peerstore" netut...
/* 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, ...
// Copyright 2018 The Periph Authors. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. //----------------------------------------------------------------------------- package sx1509 import ( "encoding/binary" "errors" "fmt" ...
package smallcell import ( "encoding/json" "fmt" "log" "math/rand" "os" "time" cell "github.com/wiless/cellular" "github.com/wiless/cellular/antenna" "github.com/wiless/cellular/deployment" "github.com/wiless/cellular/pathloss" "github.com/wiless/vlib" ) var sector = `{ "uid": "", "NodeID": 0, "FreqHz"...
package main import ( "github.com/shopspring/decimal" "bytes" "errors" "flag" "fmt" "net" "net/http" "os" "os/signal" "path/filepath" "strings" "sync" "syscall" "time" "encoding/json" log "github.com/sirupsen/logrus" common "github.com/nttdots/go-dots/dots_common" "github.com/nttdots/go-dots/dots_co...
package main import ( "encoding/json" "fmt" "html/template" "log" "net/url" "os" "strings" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/session" cf "github.com/aws/aws-s...
// This code is available on the terms of the project LICENSE.md file, // also available online at https://blueoakcouncil.org/license/1.0.0. //go:build lgpl // +build lgpl package eth import ( "bytes" "context" "crypto/sha256" "fmt" "math/big" "sync" "time" "decred.org/dcrdex/dex" "decred.org/dcrdex/dex/en...
package proxy import ( "bytes" "compress/gzip" "context" "crypto/rand" "crypto/rsa" "crypto/tls" "encoding/json" "encoding/pem" "fmt" "io" "io/ioutil" "net/http" "net/http/httputil" "net/url" "os" "os/exec" "path/filepath" "strconv" "strings" "time" "github.com/tidwall/sjson" "github.com/ory/x/...
/** * Copyright (c) 2018, The Artemis Authors. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT...
// Package TigoWeb Copyright 2018 The Tigo Authors. All rights reserved. package TigoWeb import ( "bytes" "encoding/json" "fmt" "github.com/karldoenitz/Tigo/binding" "github.com/karldoenitz/Tigo/logger" "html/template" "io/ioutil" "net/http" "net/http/httputil" "strconv" "strings" "time" ) // BaseHandler ...
package smtpd import ( "crypto/rand" "crypto/tls" "fmt" "io" "log" "net" "net/mail" "os" "regexp" "strings" "time" ) // MessageHandler functions handle application of business logic to the inbound message type MessageHandler func(m *Message) error // Default values const ( DefaultReadTimeout = tim...
package rpc import ( "context" "io" "sync/atomic" "time" capnp "capnproto.org/go/capnp/v3" "capnproto.org/go/capnp/v3/internal/errors" rpccp "capnproto.org/go/capnp/v3/std/capnp/rpc" ) // A Transport sends and receives Cap'n Proto RPC messages to and from // another vat. // // It is safe to call NewMessage an...
// Copyright (C) 2015 NTT Innovation Institute, 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 applicabl...
package main import ( "bytes" "compress/gzip" "context" "crypto/tls" "errors" "flag" "fmt" "io" "log" "math" "mime" "net/http" "net/url" "os" "sort" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go...
/* 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. // source: peer/proposal.proto // DO NOT EDIT! package peer import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // Thi...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: plugin.proto package main 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 // This is a compile-ti...
package main import ( "context" "crypto/tls" "encoding/json" "flag" "log" "net/http" "net/url" "path" "strings" "sync" "sync/atomic" "time" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/ethclient" "github.com/moonrhythm/parapet" "github.com/moonrhythm/parapet/pkg/locati...
package model import ( "database/sql" "fmt" "strings" "time" "tracking/cmd/api/internal/types" "github.com/go-xorm/builder" "github.com/tal-tech/cds/pkg/ckgroup" "github.com/tal-tech/go-zero/core/stores/sqlc" "github.com/tal-tech/go-zero/core/stores/sqlx" "github.com/tal-tech/go-zero/core/stringx" "github...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/errors/billing_setup_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 sup...
package objects import ( "fmt" "github.com/bulutistan/go-sophos/sophos" ) // IpsecRemoteAuth is a generated struct representing the Sophos IpsecRemoteAuth Endpoint // GET /api/nodes/ipsec_remote_auth type IpsecRemoteAuth struct { IpsecRemoteAuthCa IpsecRemoteAuthCa `json:"ipsec_remote_auth_ca"` IpsecRemote...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/securitycenter/v1/finding.proto package securitycenter import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _struct "github.com/golang/protobuf/ptypes/struct" timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "g...
package crc import ( "hash" "testing" ) func TestCRCAlgorithms(t *testing.T) { doTest := func(crcParams *Parameters, data string, crc uint64) { calculated := CalculateCRC(crcParams, []byte(data)) if calculated != crc { t.Errorf("Incorrect CRC 0x%04x calculated for %s (should be 0x%04x)", calculated, data, ...
// 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 som import ( "fmt" "math" "strings" "github.com/milosgajdos/gosom/pkg/matrix" "github.com/milosgajdos/gosom/pkg/utils" "gonum.org/v1/gonum/floats" "gonum.org/v1/gonum/mat" "gonum.org/v1/gonum/stat" ) // Grid is a SOM grid type Grid struct { // size holds grid dimensions size []int // ushape holds ...
package azure /* Set * PREFIX * AZURE_SUBSCRIPTION_ID * AZURE_CLIENT_ID * AZURE_TENANT_ID * AZURE_RES_GROUP_NAME * AZURE_STORAGE_ACCOUNT * AZURE_STORAGE_ACCESS_KEY before running these scripts Additional environments: POLKADOT_TEST_NO_POST_TF_CLEANUP - no terraform destroy command after tests POLKADOT_T...
package master import ( "errors" "fmt" api "k8s.io/api/core/v1" "github.com/turbonomic/kubeturbo/pkg/discovery/metrics" "github.com/turbonomic/kubeturbo/pkg/discovery/monitoring/types" "github.com/turbonomic/kubeturbo/pkg/discovery/task" "github.com/turbonomic/kubeturbo/pkg/discovery/util" "github.com/golan...
package saver import ( "bytes" "github.com/jchavannes/btcd/wire" "github.com/jchavannes/jgo/jerr" "github.com/jchavannes/jgo/jlog" "github.com/memocash/index/db/item" "github.com/memocash/index/node/act/double_spend" "github.com/memocash/index/ref/bitcoin/memo" "github.com/memocash/index/ref/bitcoin/tx/hs" "g...
// Copyright 2018, OpenCensus Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...