text
stringlengths
8.57k
38.1k
// Code generated by protoc-gen-go. // source: google/api/servicecontrol/v1/distribution.proto // DO NOT EDIT! package servicecontrol 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 _...
package lightstep import ( "fmt" "math/rand" "os" "path" "reflect" "runtime" "strings" "sync" "time" "golang.org/x/net/context" "google.golang.org/grpc" "google.golang.org/grpc/credentials" // N.B.(jmacd): Do not use google.golang.org/glog in this package. google_protobuf "github.com/golang/protobuf/...
package main //https://azure.microsoft.com/en-gb/blog/running-go-applications-on-azure-app-service/ import ( "fmt" "io/ioutil" "net/http" "os" "strconv" "strings" "time" "github.com/dotabuff/manta" "github.com/dotabuff/manta/dota" ) func formatDuration(d time.Duration) string { return time.Date(2000, ti...
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License...
package syntax import ( "fmt" "regexp/syntax" "strings" "testing" ) func TestParserErrors(t *testing.T) { tests := []struct { pattern string want string }{ {`\`, `unexpected end of pattern: trailing '\'`}, {`\x`, `unexpected end of pattern: expected hex-digit or '{'`}, {`\x{12`, `can't find closing...
package raft // // this is an outline of the API that raft must expose to // the service (or tester). see comments below for // each of these functions for more details. // // rf = Make(...) // create a new Raft server. // rf.Start(command interface{}) (index, term, isleader) // start agreement on a new Logs entry...
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved. // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, // You can obtain one at https://github.com/gogf/gf. package gdb import ( "bytes" "fmt" "github.com/gogf/gf/erro...
package main // LM940 QMI Command Reference Guide, Section 3.1, Table 3-1 type Service uint8 const ( QMI_SERVICE_UNKNOWN Service = 0xff QMI_SERVICE_CTL = 0 QMI_SERVICE_WDS = 1 QMI_SERVICE_DMS = 2 QMI_SERVICE_NAS = 3 QMI_SERVICE_QOS = 4 QMI_SERVICE_WMS = 5 QMI_SERVICE_PDS = 6 QMI_SERVICE_AUTH ...
// Copyright (c) 2012 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 to in w...
package sessions import ( "bytes" "encoding/gob" "encoding/json" "errors" "fmt" "hash/fnv" "net/http" "regexp" "strconv" "sync" "time" ) // Session represents a browser session which may persist across multiple HTTP // requests. A session is usually generated with the Start() function and may // be destroy...
// Package remote provides our interface to the Google remote execution APIs // (https://github.com/bazelbuild/remote-apis) which Please can use to distribute // work to remote servers. package remote import ( "bytes" "context" "encoding/hex" "fmt" "os" "path" "sync" "time" "github.com/bazelbuild/remote-apis...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/filter/http/header_to_metadata/v2/header_to_metadata.proto package envoy_config_filter_http_header_to_metadata_v2 import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "g...
// generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go package orm import ( "database/sql" "encoding/json" "errors" "fmt" "io/ioutil" "log" "os" "path/filepath" "sort" "time" "gorm.io/gorm" "github.com/tealeg/xlsx/v3" "github.com/fullstack-lang/gonggooglecharts/go/models" ) // dummy va...
/* ........................................................................................ . Developer -> ArkAngeL43 . Based off -> The image injection lib, my own forked verison of this lib . Orgin -> Base0 . Type -> CLI . IMG Form -> PNG . DATA FORM -> IN=BASED64/BINARY OUT=ASCII . Organ -> Scare_Sec_H...
package main import ( "flag" "testing" "fmt" "strconv" "strings" "github.com/StackExchange/dnscontrol/models" "github.com/StackExchange/dnscontrol/pkg/nameservers" "github.com/StackExchange/dnscontrol/providers" _ "github.com/StackExchange/dnscontrol/providers/_all" "github.com/StackExchange/dnscontrol/pr...
// Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. package v1alpha1api20200930storage import ( "github.com/Azure/azure-service-operator/v2/api/microsoft.compute/v1alpha1api20201201storage" "github.com/Azure/azure-service-operat...
package rosetta import ( "bytes" "encoding/json" "fmt" "reflect" "github.com/btcsuite/btcd/btcec" rosettatypes "github.com/coinbase/rosetta-sdk-go/types" abci "github.com/line/ostracon/abci/types" "github.com/line/ostracon/crypto" ostcoretypes "github.com/line/ostracon/rpc/core/types" octypes "github.com/l...
/* Simple HTTP/S file server, defaults to serving on port 8080. Allows file upload, download, and deletion. Folders can be deleted if empty. Run with --help for full options */ package main import ( "bufio" "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "crypto/sha512" "crypto/tls" "crypto/x509" "crypto/x509/p...
// Copyright 2017 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 v1beta1 import ( "time" "github.com/application-stacks/runtime-component-operator/pkg/common" prometheusv1 "github.com/coreos/prometheus-operator/pkg/apis/monitoring/v1" routev1 "github.com/openshift/api/route/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // NOTE: json...
package orderbook import ( "math" "math/big" "math/rand" "testing" "github.com/stellar/go/xdr" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestLiquidityPoolExchanges(t *testing.T) { graph := NewOrderBookGraph() for _, poolEntry := range []xdr.LiquidityPoolEntry{ eurUs...
package contractcourt import ( "encoding/binary" "io" "sync" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/wire" "github.com/btcsuite/btcutil" "github.com/davecgh/go-spew/spew" "github.com/monasuite/lnd/chainntnfs" "github.com/monasuite/lnd/channeldb" "github.com/monasuite/lnd/inpu...
package vfsindex import ( "context" "fmt" "math" "reflect" "sort" "strconv" "strings" "sync" "time" fbsio "github.com/kazu/fbshelper/query/base" "github.com/kazu/loncha" "github.com/kazu/vfs-index/cache" "github.com/kazu/vfs-index/expr" "github.com/kazu/vfs-index/query" query2 "github.com/kazu/vfs-inde...
// Copyright (c) 2015-2021, NVIDIA CORPORATION. // SPDX-License-Identifier: Apache-2.0 // Package utils provides miscellaneous utilities for ProxyFS. package utils import ( "bytes" "container/list" "crypto/rand" "encoding/binary" "encoding/json" "fmt" "regexp" "runtime" "strconv" "strings" "sync" "time" )...
package main import ( "log" "math/rand" "time" "github.com/anaseto/gruid" "github.com/anaseto/gruid/paths" "github.com/anaseto/gruid/rl" ) var Version string = "v0.4.1" // game contains the game logic's state, without ui stuff. Everything could be // in the model struct instead, with only the game logic's fie...
package store import ( "context" "crypto/tls" "sync" "time" corev2 "github.com/sensu/sensu-go/api/core/v2" "github.com/sensu/sensu-go/backend/store/patch" "github.com/sensu/sensu-go/backend/store/provider" "github.com/sensu/sensu-go/types" clientv3 "go.etcd.io/etcd/client/v3" ) var _ Store = new(StoreProxy)...
package server import ( "bytes" "errors" "fmt" "math" "sync" "github.com/ernestrc/dispatchd/amqp" "github.com/ernestrc/dispatchd/consumer" "github.com/ernestrc/dispatchd/queue" "github.com/ernestrc/dispatchd/stats" ) const ( CH_STATE_INIT = iota CH_STATE_OPEN = iota CH_STATE_CLOSING = iota CH_STAT...
package whirlpool // The Whirlpool hashing function. // // Original implementation by <NAME> and <NAME>. // <NAME>, <NAME>, // ``The Whirlpool hashing function,'' // NESSIE submission, 2000 (tweaked version, 2001), // https://github.com/torvalds/linux/blob/master/crypto/wp512.c import ( "fmt" ) func Ha...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: connection.proto package connection import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" empty "github.com/golang/protobuf/ptypes/empty" connectioncontext "github.com/networkservicemesh/networkservicemesh/controlplane/api/connec...
package embetcd import ( "context" "fmt" "github.com/coreos/etcd/etcdserver/api/v3client" "github.com/coreos/etcd/mvcc/mvccpb" "math/rand" "os" "path" "sync" "time" cli "github.com/coreos/etcd/clientv3" "github.com/coreos/etcd/embed" "github.com/coreos/etcd/etcdserver" "github.com/coreos/etcd/etcdserver/...
// 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...
/* * Copyright (c) 2014 <NAME> | <NAME> * * Permission to use, copy, modify, and 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 AUTHOR DISCLA...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: proto/v1beta1/image.proto package image_go_proto 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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/change_status.proto package resources import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/ads/googl...
// Copyright 2016 NDP Systèmes. 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...
package main import ( "context" "fmt" "math" "sort" "strconv" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudwatch" "github.com/prometheus/client_golang/prometheus" prom_value "github.com/prometheus/prometheus/pkg/value" "g...
package exchange import ( "bytes" "context" "crypto/tls" "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "net/http/httptrace" "time" "github.com/golang/glog" "github.com/prebid/prebid-server/config/util" "github.com/prebid/prebid-server/currency" "github.com/prebid/prebid-server/version" "go.open...
/* * Copyright 2017 <NAME>, Inc. and Contributors * * 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...
// Copyright 2009 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 url parses URLs and implements query escaping. // See RFC 3986. package url import ( "bytes" "errors" "fmt" "sort" "strconv" "strings" ) // E...
package value import ( "encoding/json" "fmt" "math" "testing" "time" "github.com/araddon/dateparse" "github.com/stretchr/testify/assert" ) type vtest struct { in interface{} out interface{} t ValueType s string } var ( te = fmt.Errorf("err") t1, _ = dateparse.ParseIn("2016/01/01", tim...
// 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...
// Copyright 2018, 2019 Kaleido // 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 github.com/futurewei-cloud. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
// Copyright 2017 The Cockroach Authors. // // Use of this software is governed by the Business Source License included // in the file licenses/BSL.txt and at www.mariadb.com/bsl11. // // Change Date: 2022-10-01 // // On the date above, in accordance with the Business Source License, use // of this software will be gov...
/* * MinIO Go Library for Amazon S3 Compatible Cloud Storage * Copyright 2015-2017 MinIO, 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/L...
// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// DBDeployer - The MySQL Sandbox // Copyright © 2006-2020 <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 require...
package toml import ( "bytes" "fmt" "log" "net" "reflect" "testing" "time" "github.com/gogo/protobuf/types" "google.golang.org/protobuf/types/known/wrapperspb" ) func TestEncodeWrappersPB(t *testing.T) { // Contains all the wrapper types, except for byte slice because go doesn't // allow equality comparis...
package p2p import ( "container/list" "fmt" "github.com/meeypioneer/mey-library/log" "github.com/meeypioneer/meycoin/message" "github.com/meeypioneer/meycoin/p2p/p2pcommon" "github.com/meeypioneer/meycoin/p2p/p2putil" "github.com/meeypioneer/meycoin/p2p/subproto" "github.com/meeypioneer/meycoin/types" "github...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: temporal/api/enums/v1/failed_cause.proto package enums import ( fmt "fmt" proto "github.com/gogo/protobuf/proto" math "math" strconv "strconv" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt....
package sshd import ( "context" "path/filepath" "reflect" "sort" "strings" "time" // For host key generation "crypto/rand" "crypto/rsa" "crypto/x509" "encoding/pem" cloudingressv1alpha1 "github.com/openshift/cloud-ingress-operator/pkg/apis/cloudingress/v1alpha1" "github.com/openshift/cloud-ingress-opera...
/* * This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
package main import ( "bytes" "fmt" "image" "image/color" _ "image/png" "math/rand" "sort" "strconv" "time" "github.com/golang/freetype/truetype" "github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten/text" santase "github.com/nvlbg/santase-ai" "github.com/nvlbg/santase-ai/agents/ismcts" "golan...
// 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 ( "errors" "fmt" "html/template" "io" "strings" "sync" "time" "golang.org/x/net/context" "github.com/youtube/vitess/go/event" "g...
// Copyright 2017 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 file import ( "fmt" "strings" ) type CustomerArchivedFileModel struct { CustomerId string `json:"customerId,omitempty"` // offset 0, length 10 AccountId string `json:"accountId,omitempty"` // offset 1, le...
/* * MIT License * * (C) Copyright [2019-2021] Hewlett Packard Enterprise Development LP * * 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 limita...
//go:build go1.16 // +build go1.16 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the cod...
/* Copyright 2018 The CDI 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 Brightbox Systems Ltd // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: dota_hud_types.proto package dota import ( fmt "fmt" proto "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: cilium/api/svids.proto package cilium import ( context "context" _ "github.com/cilium/proxy/go/envoy/annotations" v3 "github.com/cilium/proxy/go/envoy/service/discovery/v3" proto "github.co...
// Copyright 2019 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 wri...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: peer/proposal.proto package peer // import "deepchain/protos/peer" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import token "deepchain/protos/token" // Reference imports to suppress errors if they are not otherwise us...
package dpn import ( "encoding/json" "fmt" "github.com/APTrust/bagman/bagman" "github.com/nsqio/go-nsq" "github.com/satori/go.uuid" "os" "path/filepath" "strings" "sync" "time" ) type Recorder struct { RecordChannel chan *DPNResult PostProcessChannel chan *DPNResult ProcUtil *bagman.Pro...
package asp import ( "fmt" "reflect" "strings" "sync" "github.com/thought-machine/please/src/core" ) // An interpreter holds the package-independent state about our parsing process. type interpreter struct { scope *scope parser *Parser subincludes map[string]pyDict config map...
// Code generated by protoc-gen-go. // source: cast_channel.proto // DO NOT EDIT! /* Package pb is a generated protocol buffer package. It is generated from these files: cast_channel.proto It has these top-level messages: CastMessage AuthChallenge AuthResponse AuthError DeviceAuthMessage */ package pb import ...
package libimage import ( "context" "fmt" "io" "strings" "time" "github.com/containers/common/pkg/config" registryTransport "github.com/containers/image/v5/docker" dockerArchiveTransport "github.com/containers/image/v5/docker/archive" dockerDaemonTransport "github.com/containers/image/v5/docker/daemon" "git...
// Copyright Fuzamei Corp. 2018 All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package db import ( "bytes" "fmt" "path" "strconv" "strings" "time" log "github.com/33cn/chain33/common/log/log15" "github.com/33cn/chain33/types" metr...
// Package vl53l1x provides a driver for the VL53L1X time-of-flight // distance sensor // // Datasheet: // https://www.st.com/resource/en/datasheet/vl53l1x.pdf // This driver was based on the library https://github.com/pololu/vl53l1x-arduino // and ST's VL53L1X API (STSW-IMG007) // https://www.st.com/content/st_com/en/...
// Copyright (c) 2018 <NAME> <<EMAIL>> // // Permission to use, copy, modify, and 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 AUTHOR DISCLAIM...
package logpoller import ( "bytes" "context" "database/sql" "encoding/binary" "math/big" "sort" "sync" "time" "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/pkg/errors" "github.com/smartcontractkit/chainlink/core/chains...
// Copyright 2021 Anapaya Systems // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
package swimmy import ( "container/heap" "crypto/rand" "encoding/binary" "math" "math/big" "net" "strconv" "sync" "sync/atomic" "time" "gopkg.in/inconshreveable/log15.v2" ) type Config struct { // Necessary paremeters Host string // TODO get this dynamically Port uint16 // TODO pick a default Seeds ...
package v1beta1 import ( corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" clientcmdapi "k8s.io/client-go/tools/clientcmd/api" ) // +genclient // +genclient:nonNamespaced // +genclient:noStatus // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/r...
// 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. // Writes dwarf information to object files. package obj import ( "cmd/internal/dwarf" "cmd/internal/objabi" "cmd/internal/src" "fmt" "sort" "sync" ) /...
// Code generated by main. DO NOT EDIT. package fxtr_034_001_01 import ( "bytes" "encoding/xml" "time" ) type ActiveCurrencyAnd13DecimalAmount struct { Value float64 `xml:",chardata"` Ccy ActiveCurrencyCode `xml:"Ccy,attr"` } type ActiveCurrencyAndAmount struct { Value float64 `xml:",c...
package db import ( "errors" "sync" "time" "github.com/couchbase/sync_gateway/base" "github.com/couchbase/sync_gateway/channels" ) var ( DefaultChannelCacheMinLength = 50 // Keep at least this many entries in cache DefaultChannelCacheMaxLength = 500 // Don't put more than this many ...
package antlr import ( "encoding/hex" "fmt" "strconv" "strings" "unicode/utf16" ) // This is the earliest supported serialized UUID. // stick to serialized version for now, we don't need a UUID instance var BaseSerializedUUID = "AADB8D7E-AEEF-4415-AD2B-8204D6CF042E" // This list contains all of the currently su...
// SPDX-License-Identifier: Unlicense OR MIT package widget import ( "bytes" "fmt" "image" "io" "math/rand" "reflect" "strings" "testing" "testing/quick" "unicode" "gioui.org/f32" "gioui.org/font/gofont" "gioui.org/io/event" "gioui.org/io/key" "gioui.org/io/pointer" "gioui.org/layout" "gioui.org/op"...
// 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 2018 Comcast Cable Communications Management, 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 require...
/* Package cluster defines the 'create cluster' command. The command deals with a few delicacies/spiecialties: - Cluster spec details, e. g. which instance type to use for workers, can be specified by the user, but don't have to. The backend will fill in missing details using defaulting. - Cluster spec details c...
package agent import ( "context" "encoding/json" "errors" "fmt" "os" "path/filepath" "reflect" "runtime" "strings" "sync" "time" "github.com/grandcat/zeroconf" "github.com/mitre/gocat/contact" "github.com/mitre/gocat/encoders" "github.com/mitre/gocat/execute" "github.com/mitre/gocat/output" "github.c...
// ⚡️ Fiber is an Express inspired web framework written in Go with ☕️ // 🤖 Github Repository: https://github.com/gofiber/fiber // 📌 API Documentation: https://docs.gofiber.io // Package fiber // Fiber is an Express inspired web framework built on top of Fasthttp, // the fastest HTTP engine for Go. Designed to ease ...
package container import ( "context" "encoding/json" "errors" "fmt" "io" "sort" "strings" "time" "github.com/containerd/containerd" apiEvents "github.com/containerd/containerd/api/events" "github.com/containerd/containerd/containers" "github.com/containerd/containerd/oci" "github.com/containerd/typeurl" ...
// Copyright 2020 IBM Corp. // SPDX-License-Identifier: Apache-2.0 package app import ( "bytes" "strings" "text/template" "emperror.dev/errors" app "fybrik.io/fybrik/manager/apis/app/v1alpha1" modules "fybrik.io/fybrik/manager/controllers/app/modules" "fybrik.io/fybrik/manager/controllers/utils" connectors "...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.19.4 // source: funcmapper.proto package protodef import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google....
// Copyright 2016 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package direntry import ( "errors" "strconv" "strings" "unicode/utf16" "thinfs/bitops" ) const ( cBad = 0 // Characters disallowed in both short a...
package slt import ( "fmt" "log" "regexp" "strconv" "github.com/brunetto/goutils" "github.com/spf13/cobra" ) var ( All bool as bool = false Debug bool ConfName string // ConfName is the name of the JSON configuration file. err error endOfSim...
package parser import ( "errors" "fmt" "strconv" "strings" "unicode/utf8" "github.com/grubby/grubby/ast" ) // Load-bearing comment -- generates the parser when this is compiled //go:generate goyacc -o parser.go -p Ruby parser.y var DebugStatements = []string{} const eof = -1 type token struct { typ token...
/* Copyright 2021 The KodeRover 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, s...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 // protoc v3.13.0 // source: pkg/database/mysql/mysql.proto package mysql import ( duration "github.com/golang/protobuf/ptypes/duration" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.g...
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ package statemachines import ( "bytes" "encoding/json" "fmt" "io" "io/ioutil" "net/http" "reg...
package irgen // TODO: Add convenience functions for creating instruction in emit.go, to // remove if err != nil { panic("foo") } from the irgen code. import ( "fmt" "strconv" "github.com/llir/llvm/ir" "github.com/llir/llvm/ir/constant" "github.com/llir/llvm/ir/enum" irtypes "github.com/llir/llvm/ir/types" "g...
package backend import ( "context" "fmt" "math/rand" "strings" "sync" "time" "github.com/google/zoekt" zoektquery "github.com/google/zoekt/query" otlog "github.com/opentracing/opentracing-go/log" "github.com/pkg/errors" "github.com/sourcegraph/sourcegraph/pkg/api" "github.com/sourcegraph/sourcegraph/pkg/e...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/errors/user_list_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 suppres...
// Copyright 2015 The go-ethereum Authors // Copyright 2017 The cypherBFT Authors // This file is part of the cypherBFT library. // // The cypherBFT library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundat...
/** Copyright (c) 2016 The ConnectorDB Contributors Licensed under the MIT license. **/ package rediscache import ( "errors" "strconv" "strings" "time" redis "gopkg.in/redis.v4" "connectordb/datastream" ) /* The structure in Redis is as follows: Each device has an hset. Each stream has a list. Datapoints are...