text
stringlengths
8.57k
38.1k
// Code generated by protoc-gen-go. DO NOT EDIT. // source: datastore.proto package datastore import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import timestamp "github.com/golang/protobuf/ptypes/timestamp" // Reference imports to suppress errors if they are not otherwise used. var ...
// Package operator contains main implementation of Flatcar Linux Update Operator. package operator import ( "context" "fmt" "os" "time" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/selecti...
package solver import ( "encoding/json" "fmt" "io/ioutil" "log" "math" "math/rand" "os" "os/exec" "regexp" "sort" "strconv" "strings" "time" ) var ( brainID string roomID string storedAnsPos int selfScore int oppoScore int randClicked bool // For click random answer hasReviewCom...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: proto/storage.proto package storage import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golan...
package kube import ( "context" "fmt" "os" "path" "k8s.io/client-go/util/flowcontrol" kubeErrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" ctypes "github.com/ovrclk/akash/provider/cluster/types" "github.com/ovrclk/akash/provider/cluster/util" ...
// Copyright 2016-2021, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
package project import ( "github.com/monax/relic" ) // Can be used to set the commit hash version of the binary at build time with: // `go build -ldflags "-X github.com/hyperledger/burrow/project.commit=$(git rev-parse --short HEAD)" ./cmd/burrow` var commit = "" var date = "" func Commit() string { return commit...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. package model import ( "encoding/json" "errors" "io" "net/http" "regexp" "sort" "strings" "sync" "unicode/utf8" "github.com/mattermost/mattermost-server/v6/shared/markdown" ) const ( PostSystem...
// Copyright 2016 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...
/* 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 agreed to in writing, ...
/* 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 2014 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 controller import ( "beam/cmd/segments/app" "beam/model" "encoding/json" "fmt" "strconv" "strings" uuid "github.com/gofrs/uuid" "github.com/pkg/errors" ) // Segment represents segment information stored in storage. type Segment model.Segment // SegmentCollection is the collection of Segments. type S...
package drivers import ( "bytes" "context" "encoding/binary" "fmt" "testing" "github.com/filecoin-project/go-bitfield" "github.com/filecoin-project/go-address" abi_spec "github.com/filecoin-project/specs-actors/actors/abi" big_spec "github.com/filecoin-project/specs-actors/actors/abi/big" builtin_spec "git...
// Copyright 2015 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. // +build ignore // Command releaselet does buildlet-side release construction tasks. // It is intended to be executed on the buildlet preparing a release. pac...
// Copyright 2016- 2017Authors 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...
package writeaheadlog // TODO: Make it so that not every update changes the silo data. That will // probably make the test run a lot faster overall. import ( "bytes" "encoding/binary" "encoding/hex" "fmt" "os" "path" "path/filepath" "sync" "testing" "time" "github.com/uplo-tech/errors" "github.com/uplo-t...
// Copyright 2017 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, ...
//GVariant : GVariant — strongly typed value datatype // https://developer.gnome.org/glib/2.26/glib-GVariant.html package glib // #cgo pkg-config: glib-2.0 gobject-2.0 // #include "variant.go.h" // #include "glib.go.h" import "C" import ( "fmt" "runtime" "unsafe" ) /* * GVariantClass */ type VariantClass int ...
// Copyright 2019 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 (c) 2012-2017 The ANTLR Project. All rights reserved. // Use of this file is governed by the BSD 3-clause license that // can be found in the LICENSE.txt file in the project root. package antlr import ( "fmt" "strconv" ) var ( LexerATNSimulatorDebug = false LexerATNSimulatorDFADebug = false Lex...
package compilator import ( "bytes" "container/list" "errors" "fmt" "io" "os" "path/filepath" "sort" "strings" "time" "code.cloudfoundry.org/fissile/docker" "code.cloudfoundry.org/fissile/model" "code.cloudfoundry.org/fissile/scripts/compilation" "code.cloudfoundry.org/fissile/util" "github.com/SUSE/st...
//line parser.y:15 package rules import __yyfmt__ "fmt" //line parser.y:15 import ( clientmodel "github.com/prometheus/client_golang/model" "github.com/prometheus/prometheus/rules/ast" "github.com/prometheus/prometheus/storage/metric" ) //line parser.y:25 type...
// Code generated by protoc-gen-go. // source: google.golang.org/cloud/bigtable/internal/table_data_proto/bigtable_table_data.proto // DO NOT EDIT! /* Package google_bigtable_admin_table_v1 is a generated protocol buffer package. It is generated from these files: google.golang.org/cloud/bigtable/internal/table_data_...
package model2d import ( "math" "sort" "github.com/unixpickle/essentials" "github.com/unixpickle/splaytree" ) // TriangulateMesh creates a minimal collection of // triangles that cover the enclosed region of a mesh. // // The mesh must be manifold, non-intersecting, and have // the correct orientation (i.e. corr...
package DG1D import ( "fmt" "math" "github.com/notargets/gocfd/utils" "gonum.org/v1/gonum/mat" ) type NODE_TYPE uint const ( GAUSS NODE_TYPE = iota GAUSS_LOBATO ) type Elements1D struct { K, Np, Nfp, NFaces int R, VX, FMask utils.Vector EToV, EToE, EToF ...
package nsqd import ( "encoding/json" "fmt" "io/ioutil" "math" "math/rand" "os" "sort" "strconv" "sync" "sync/atomic" "time" "github.com/prometheus/client_golang/prometheus" "github.com/youzan/nsq/internal/quantile" "github.com/youzan/nsq/internal/util" ) const ( maxPubClientStats = 5000 ) type Topic...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: pwr/pwr.proto /* Package pwr is a generated protocol buffer package. It is generated from these files: pwr/pwr.proto It has these top-level messages: PatchHeader SyncHeader BsdiffHeader SyncOp SignatureHeader BlockHash CompressionSettings ManifestH...
package workers import ( "fmt" "github.com/APTrust/exchange/constants" "github.com/APTrust/exchange/context" "github.com/APTrust/exchange/models" "github.com/APTrust/exchange/network" "github.com/APTrust/exchange/util" "github.com/APTrust/exchange/util/fileutil" "github.com/APTrust/exchange/util/storage" "git...
package lefttk import ( "crypto/tls" "encoding/json" "io/ioutil" "net/http" "reflect" "strings" "time" "strconv" "regexp" "bytes" "github.com/SpringDRen/easylog" ) const ( DAY_FORMAT = "2006-01-02" CONF_12306_FILE = "conf/12306.ini" CONF_FILE = "conf/conf.ini" ) var ( initConfFlag = fa...
// 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 worker import ( "fmt" "html/template" "strings" "sync" "time" "golang.org/x/net/context" "github.com/youtube/vitess/go/event" "github.com/youtub...
package beego import ( "fmt" "net/http" "net/url" "os" "reflect" "regexp" "runtime" "strconv" "strings" "time" beecontext "github.com/astaxie/beego/context" "github.com/astaxie/beego/middleware" "github.com/astaxie/beego/toolbox" "github.com/astaxie/beego/utils" ) const ( // default filter execution p...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/extensions/filters/network/thrift_proxy/v3alpha/thrift_proxy.proto package envoy_extensions_filters_network_thrift_proxy_v3alpha import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" ...
package lib import ( "errors" "strings" "unicode" "github.com/gdamore/tcell/v2" "github.com/mattn/go-runewidth" ) var UnknownKeyStroke = errors.New("unknown keystroke") var keyNamesToStroke map[string]KeyStroke var keyNames map[tcell.Key]string type KeyStroke struct { Key tcell.Key Rune rune Tev tcell.Eve...
package slacklog import ( "bytes" "encoding/json" "fmt" "html" "io/ioutil" "os" "path/filepath" "regexp" "sort" "strconv" "strings" "text/template" "time" ) func doUpdate() error { if len(os.Args) < 6 { fmt.Println("Usage: go run scripts/main.go update {config.json} {templatedir} {indir} {outdir}") ...
// Copyright 2018 The Kubeflow 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 agr...
package build import ( "bufio" "bytes" "encoding/json" "fmt" "io/ioutil" "os" "path/filepath" "runtime" "strings" "time" "github.com/docker-slim/docker-slim/pkg/app/master/builder" "github.com/docker-slim/docker-slim/pkg/app/master/commands" "github.com/docker-slim/docker-slim/pkg/app/master/config" "gi...
package parser import ( "errors" "fmt" "github.com/hashicorp/go-multierror" "github.com/gardenbed/emerge/internal/regex/ast" ) func Parse(in input) (ast.Node, error) { r := newRegex() out, ok := r.regex(in) if !ok { return nil, errors.New("invalid regular expression") } // Check for errors if r.errors...
package astilectron import ( "context" "fmt" stdUrl "net/url" "path/filepath" "sync" "github.com/asticode/go-astikit" ) // Window event names const ( EventNameWebContentsEventLogin = "web.contents.event.login" EventNameWebContentsEventLoginCallback = "web.contents.event.login.ca...
// Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
// Code generated by protoc-gen-gogo. // source: error.proto // DO NOT EDIT! package models import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" import _ "github.com/gogo/protobuf/gogoproto" import strconv "strconv" import strings "strings" import reflect "reflect" import io "io" // R...
// Copyright (c) 2016, <NAME> <<EMAIL>> // See LICENSE for licensing information package syntax import ( "fmt" "strings" ) // Node represents a syntax tree node. type Node interface { // Pos returns the position of the first character of the node. Comments // are ignored, except if the node is a *File. Pos() Po...
// Code generated by protoc-gen-go. // source: binlogdata.proto // DO NOT EDIT! /* Package binlogdata is a generated protocol buffer package. It is generated from these files: binlogdata.proto It has these top-level messages: Charset BinlogTransaction StreamEvent StreamUpdateRequest StreamUpdateResponse Strea...
/* 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 agreed to in writing, ...
/* Copyright (c) 2015, Alcatel-Lucent Inc All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
// Copyright 2018 The gVisor 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/services/asset_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/v2/resources" _ "google.gola...
// 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...
// +build windows /* SPDX-License-Identifier: MIT * * Copyright (C) 2019-2021 WireGuard LLC. All Rights Reserved. */ package firewall import "golang.org/x/sys/windows" const ( anysizeArray = 1 // ANYSIZE_ARRAY defined in winnt.h wtFwpBitmapArray64_Size = 8 wtFwpByteArray16_Size = 16 wtFwpByteArray6_Size =...
// Copyright 2015 The Hugo 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 ...
package main import ( "encoding/json" "errors" "fmt" "io/ioutil" "os" "runtime" "strconv" "strings" "github.com/alecthomas/kingpin" "github.com/dustin/go-humanize" "go.uber.org/zap" "go.uber.org/zap/zapcore" "github.com/bojand/ghz/printer" "github.com/bojand/ghz/runner" ) var ( // set by goreleaser w...
package dicom import ( "bytes" "encoding/binary" "errors" "fmt" "io" "os" "strconv" "strings" "github.com/gradienthealth/dicom/dicomio" "github.com/gradienthealth/dicom/dicomlog" "github.com/gradienthealth/dicom/dicomtag" "bufio" ) // GoDICOMImplementationClassUIDPrefix defines the UID prefix for // dico...
/** * @file * @copyright defined in aergo/LICENSE.txt */ package chain import ( "bytes" "encoding/binary" "encoding/gob" "encoding/json" "errors" "fmt" "sync/atomic" "github.com/aergoio/aergo-lib/db" "github.com/aergoio/aergo/config" "github.com/aergoio/aergo/consensus" "github.com/aergoio/aergo/inte...
// 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...
// // Copyright (c) 2020 <NAME> <<EMAIL>> // package ctb import ( "fmt" "image" "io/ioutil" "math/rand" "sort" "time" "encoding/binary" "github.com/go-restruct/restruct" "github.com/spf13/pflag" "github.com/nicarran/uv3dp" ) const ( defaultHeaderMagic = uint32(0x12fd0086) defaultBottomLiftHeight = 5....
package pg_test import ( "bytes" "database/sql" "database/sql/driver" "encoding/json" "fmt" "math" "reflect" "strings" "testing" "time" _ "github.com/go-sql-driver/mysql" _ "github.com/lib/pq" . "gopkg.in/check.v1" "gopkg.in/pg.v3" ) func TestUnixSocket(t *testing.T) { db := pg.Connect(&pg.Options{ ...
// Copyright (c) 2017 Western Digital Corporation or its affiliates. All rights reserved. // SPDX-License-Identifier: MIT package curator import ( "container/heap" "encoding/binary" "hash" "hash/fnv" "sync" "time" log "github.com/golang/glog" "github.com/prometheus/client_golang/prometheus" "github.com/prom...
package wpaxos import ( "time" "github.com/acharapko/fleetdb" "github.com/acharapko/fleetdb/log" "fmt" "encoding/binary" //"runtime/debug" "errors" "sort" "github.com/acharapko/fleetdb/kv_store" "github.com/acharapko/fleetdb/ids" "github.com/acharapko/fleetdb/utils" "math/rand" "github.com/acharapko/flee...
// (c) <NAME>. Licensed under the BSD license (see LICENSE). package allbc import ( "errors" "github.com/uchti/cal" calAR "github.com/uchti/cal/ar" calAT "github.com/uchti/cal/at" calAU "github.com/uchti/cal/au" calBE "github.com/uchti/cal/be" calBR "github.com/uchti/cal/br" calCA "github.com/uchti/cal/ca" c...
package zonecut import ( "fmt" "github.com/miekg/dns" "net" "os" "github.com/ANSSI-FR/transdep/messages/nameresolver" "github.com/ANSSI-FR/transdep/messages/zonecut" "github.com/ANSSI-FR/transdep/tools" "strings" "github.com/ANSSI-FR/transdep/errors" ) // WORKER_CHAN_CAPACITY is the maximum number of unhandl...
//go:generate mcube enum -m -p // // Code generated by protoc-gen-go-ext. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.1 // source: pkg/user/pb/service.proto package user import ( protoreflect "google.golang.org/protobuf/reflect/protore...
package main import ( "bufio" "bytes" "encoding/json" "errors" "flag" "fmt" "io" "log" "os" "strconv" "strings" "sync" "time" "unsafe" "github.com/lionkov/go9p/p" "github.com/lionkov/go9p/p/srv" "github.com/nicolagi/telegramfs/internal/nodes" bolt "go.etcd.io/bbolt" ) type identity string func (id...
// Copyright (c) 2018, Sylabs Inc. All rights reserved. // This software is licensed under a 3-clause BSD license. Please consult the // LICENSE.md file distributed with the sources of this project regarding your // rights to use or distribute this software. package client import ( "reflect" "testing" ) func TestP...
package p2p import ( "github.com/pkg/errors" "github.com/theQRL/go-qrl/pkg/core/block" "github.com/theQRL/go-qrl/pkg/core/pool" "github.com/theQRL/go-qrl/pkg/core/transactions" "github.com/theQRL/go-qrl/pkg/misc" "github.com/theQRL/go-qrl/pkg/ntp" "github.com/theQRL/go-qrl/pkg/p2p/messages" "io" "math/big" "...
// Copyright (c) 2016 <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 compile import ( "bufio" "bytes" "encoding/binary" "errors" "fmt" "io/ioutil" "math" "os" "path" "strconv" "strings" "testing" "time" "githu...
package main import ( _ "embed" "encoding/json" "fmt" "io" "log" "math" "math/rand" "net" "net/http" _ "net/http/pprof" "os" "os/signal" "path/filepath" "runtime/debug" "strconv" "strings" "sync" "syscall" "time" "github.com/acarl005/stripansi" "github.com/gliderlabs/ssh" terminal "github.com/qu...
package editor import ( "fmt" "math" "strings" "sync" "time" "github.com/neovim/go-client/nvim" "github.com/therecipe/qt/core" "github.com/therecipe/qt/gui" "github.com/therecipe/qt/widgets" ) // Window is type Window struct { win nvim.Window width int height int pos [2]int tab ...
// 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 2017 Datadog, Inc. // +build !windows // +build snmp package network /* #cgo pkg-config: net-snmp-...
package pbsmetrics import ( "fmt" "sync" "time" "github.com/golang/glog" "github.com/prebid/prebid-server/config" "github.com/prebid/prebid-server/openrtb_ext" metrics "github.com/rcrowley/go-metrics" ) // Metrics is the legacy Metrics object (go-metrics) expanded to also satisfy the MetricsEngine interface t...
// 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 inprocgrpc provides an in-process gRPC channel implementation. // The in-process channel makes RPCs that are effectively in-process function // calls. The function calls run in a separate goroutine from the caller so as // to fully behave like a normal RPC call, including context deadlines and // cancellatio...
package common import ( "fmt" "io" "log" "strings" sqlite "github.com/gwenn/gosqlite" ) // DiffType specifies the type of change in a row or object type DiffType string const ( // ActionAdd is used for inserted rows and created objects ActionAdd DiffType = "add" // ActionDelete is used for deleted rows and...
// Copyright 2019 Orange // // 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 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. // source: vega/oracles/v1/spec.proto package v1 import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is...
package goADS import ( log "github.com/cihub/seelog" "bytes" "encoding/hex" "encoding/binary" "fmt" "math" "strconv" "time" ) type ADSSymbolUploadSymbol struct { /*{{{*/ conn *Connection Name string DataType string Comment string Area uint32 Offset uint32 Length uint32 Extra1 uint32 Ex...
// Package config provides the configuration for tests run as part of the osde2e suite. package config import ( "log" "sync" "github.com/spf13/viper" ) const ( // Provider is what provider to use to create/delete clusters. // Env: PROVIDER Provider = "provider" // JobName lets you name the current e2e job ru...
// Copyright 2019 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 ...
package ukcp import ( "encoding/binary" "errors" "log" "net" "time" "github.com/go-ukcp/ukcp/ikcp" ) const WriteBufferSize = 5000 //udp writer will add some data for checksum or encrypt const ReadBufferSize = 7000 //so reader must be larger const dataLimit = 4000 const mainV = 0 const subV = 1 type cache s...
// Copyright 2019 GRAIL, Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package syntax import ( "fmt" "io" "github.com/grailbio/reflow/internal/scanner" "github.com/grailbio/reflow/types" "github.com/grailbio/reflow/values" ) ...
// Copyright 2022 Staex GmbH (https://staex.io) // 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...
package cnv // ---------------------------------------------------------------------------------- // cnv.go (https://github.com/waldurbas/got) // Copyright 2019,2021 by <NAME> //----------------------------------------------------------------------------------- // This Source Code Form is subject to the terms of the '...
// 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 worker import ( "fmt" "html/template" "strings" "sync" "time" "golang.org/x/net/context" "github.com/youtube/vitess/go/event" "github.com/youtub...
package v1beta1 import ( "net" "strconv" "strings" "time" "github.com/appscode/kutil/meta" "github.com/appscode/voyager/apis/voyager" ) const ( IngressKey = "ingress.kubernetes.io" EngressKey = "ingress.appscode.com" APISchema = EngressKey + "/" + "api-schema" // APISchema = {APIGroup}/{APIVersion} ...
// Copyright 2018 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 l...
// Copyright (c) 2018 ContentBox Authors. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package worldstate import ( "encoding/hex" "fmt" "math/big" "sort" "strconv" "github.com/BOXFoundation/boxd/core/trie" "github.com/BOXFoundation/boxd/core/types" c...
package endpoint import ( "fmt" "github.com/juju/errors" "github.com/mattn/go-colorable" "github.com/siddontang/go-mysql/canal" "github.com/vmihailenco/msgpack" "go-mysql-transfer/global" "go-mysql-transfer/storage" "go-mysql-transfer/util" "go-mysql-transfer/util/logutil" "go-mysql-transfer/util/stringutil"...
package mysql import ( "fmt" "io/ioutil" "strconv" "strings" "database/sql" "github.com/go-sql-driver/mysql" "github.com/DataDog/datadog-agent/pkg/autodiscovery/integration" "github.com/n9e/n9e-agentd/pkg/util/db" "github.com/DataDog/datadog-agent/pkg/aggregator" "github.com/DataDog/datadog-agent/pkg/colle...
// Copyright 2019 The Kubernetes Authors. // Copyright 2021 The OCGI 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 // // Un...
// Copyright (c) 2013-2022 The btcsuite developers package musig2 import ( "fmt" "github.com/btcsuite/btcd/btcec/v2" "github.com/btcsuite/btcd/btcec/v2/schnorr" ) var ( // ErrSignersNotSpecified is returned when a caller attempts to create // a context without specifying either the total number of signers, or ...
/* * Copyright (c) 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 filetransport import ( "errors" "fmt" "io" "os" "path" "path/filepath" "sort" "strconv" "strings" "time" _ "unsafe" . "github.com/...
package main import ( "bytes" "crypto/tls" "encoding/json" "errors" "flag" "fmt" rtr "github.com/cloudflare/gortr/lib" "github.com/cloudflare/gortr/prefixfile" "github.com/cloudflare/gortr/utils" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" log ...
package ot import ( "encoding/binary" ) /* From https://docs.microsoft.com/en-us/typography/opentype/spec/chapter2: OpenType Layout consists of five tables: the Glyph Substitution table (GSUB), the Glyph Positioning table (GPOS), the Baseline table (BASE), the Justification table (JSTF), and the Glyph Definition ta...
package logql import ( "context" "math" "testing" "time" "github.com/go-kit/log" "github.com/prometheus/prometheus/promql" "github.com/stretchr/testify/require" "github.com/weaveworks/common/user" "github.com/grafana/loki/pkg/logproto" ) var nilShardMetrics = NewShardMapperMetrics(nil) var nilRangeMetrics ...
package mailstore import ( "errors" "fmt" "net/textproto" "time" "strings" _ "strconv" "github.com/jordwest/imap-server/types" "github.com/jordwest/imap-server/util" "gopkg.in/mgo.v2" "gopkg.in/mgo.v2/bson" Data "github.com/gleez/smtpd/data" ) // MongoDBMailstore is an in-memory mail storage for testing...
// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libkbfs import ( "encoding/hex" "fmt" "reflect" "strings" "time" "github.com/keybase/client/go/libkb" keybase1 "github.com/keybase/client/go/protocol" )...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: proxy/freedom/config.proto package freedom import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/proto...
package geodesic import ( "math" ) const ( // digits represents the number of binary digits in the fraction of a double // precision number. This is equivalent to C++'s numeric_limits<double>::digits. digits = 53 geodesicOrder = 6 nA1 = geodesicOrder nC1 = geodesicOrder nC1p ...
package harfbuzz import ( "math" "sort" "github.com/benoitkugler/textlayout/fonts" "github.com/benoitkugler/textlayout/fonts/truetype" "github.com/benoitkugler/textlayout/language" ) /* ported from harfbuzz/src/hb-buffer.hh and hb-buffer.h * Copyright © 1998-2004 <NAME> and <NAME> * Copyright © 2004,2007,200...
// Generic data manipulation utilities. package main import ( "crypto/tls" "encoding/json" "errors" "fmt" "net" "path/filepath" "reflect" "regexp" "sort" "strconv" "strings" "time" "unicode" "unicode/utf8" "github.com/tinode/chat/server/auth" "github.com/tinode/chat/server/logs" "github.com/tinode/c...