text
stringlengths
5.51k
28.1k
// Package datatreepaths implements a test which can check the contents // of the data tree for particular path. The query specification described // in tests.proto is used to recursively iterate through the tree performing // list key substitution. package datatreepaths import ( "fmt" "reflect" "sort" "github.co...
/* SPDX-Copyright: Copyright (c) <NAME>, project contributors, Capital One Services, LLC SPDX-License-Identifier: Apache-2.0 Copyright 2017 <NAME>, project contributors, Capital One Services, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Li...
/* * Tencent is pleased to support the open source community by making 蓝鲸 available. * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the Li...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package azservicebus import ( "context" "errors" "fmt" "sync" "time" "github.com/Azure/azure-sdk-for-go/sdk/internal/log" "github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal" "github.com/Azure/a...
// Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. package v1beta20201101 import "github.com/Azure/azure-service-operator/v2/pkg/genruntime" type LoadBalancers_SpecARM struct { //ExtendedLocation: The extended location of the l...
/* Copyright 2016 The Rook Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
// Utility functions for working with text package sanitize import ( "testing" ) var Format = "\ninput: %q\nexpected: %q\noutput: %q" type Test struct { input string expected string } // NB the treatment of accents - they are removed and replaced with ascii transliterations var urls = []Test{ {"ReAd ME....
// Copyright 2017 The OPA Authors. All rights reserved. // Use of this source code is governed by an Apache2 // license that can be found in the LICENSE file. // Package tester contains utilities for executing Rego tests. package tester import ( "context" "fmt" "regexp" "sort" "strings" "testing" "time" "gi...
// (c) 2019-2020, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package router import ( "math" "sync" "time" "github.com/ava-labs/avalanchego/utils" "github.com/prometheus/client_golang/prometheus" "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/snow...
package oauth import ( "context" "crypto/rand" "crypto/rsa" "crypto/tls" "crypto/x509" "crypto/x509/pkix" "encoding/pem" "fmt" "io/ioutil" "math/big" "net/http" "net/http/httputil" "net/url" "regexp" "time" "github.com/davecgh/go-spew/spew" g "github.com/onsi/ginkgo" o "github.com/onsi/gomega" cor...
// Copyright ©2016 The gonum 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 plotter import ( "fmt" "image/color" "math" "sort" "gonum.org/v1/plot" "gonum.org/v1/plot/tools/bezier" "gonum.org/v1/plot/vg" "gonum.org/...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
/* * Spreed WebRTC. * Copyright (C) 2013-2015 struktur AG * * This file is part of Spreed WebRTC. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License...
// // Copyright (c) 2017 10X Genomics, Inc. All rights reserved. // // Martian job monitor. // // Manages process lifetime and data collection for martian stage code. // package main import ( "fmt" "os" "os/exec" "path" "regexp" "strconv" "strings" "syscall" "time" "github.com/google/shlex" "github.com/ma...
/* Generate known_warnings_options.cc from gcc documents. How to run: $ go run generate_known_warnings_list.go > lib/known_warnings_options.h */ package main import ( "fmt" "io" "net/http" "os" "regexp" "sort" "strings" ) const GnuDocumentUrl = "https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html" const...
package simulator import ( "context" crand "crypto/rand" "encoding/binary" "encoding/hex" "fmt" "sync" "time" "github.com/pkg/errors" log "github.com/sirupsen/logrus" "github.com/brocaar/chirpstack-api/go/v3/gw" "github.com/brocaar/lorawan" ) // DeviceOption is the interface for a device option. type Dev...
// Copyright 2014 Eryx <evorui аt gmаil dοt cοm>, 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 re...
package samplers import ( "bytes" "errors" "fmt" "hash/fnv" "math" "sort" "strconv" "strings" "time" "github.com/stripe/veneur/ssf" ) var invalidMetricTypeError = errors.New("Invalid type for metric") // UDPMetric is a representation of the sample provided by a client. The tag list // should be determinis...
/* * Copyright The Dragonfly 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 indexqpu import ( "context" "encoding/binary" "errors" "fmt" "log" "math/rand" "strconv" "sync" "time" "github.com/dvasilas/proteus/internal/libqpu" "github.com/dvasilas/proteus/internal/libqpu/utils" "github.com/dvasilas/proteus/internal/metrics" "github.com/dvasilas/proteus/internal/proto/qpuex...
// // Copyright 2019 Insolar Technologies GmbH // // 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 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 jsonrpc2 is a minimal implementation of the JSON RPC 2 spec. // https://www.jsonrpc.org/specification // It is intended to be compatible with other i...
// Copyright 2015 <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 writi...
// // Copyright (c) 2014-2019 Cesanta Software Limited // 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 // // Un...
// Package example is a playground for toying with and showcasing 9-Patch. package main import ( "fmt" "image" "image/color" "image/png" "math" "os" "gioui.org/app" "gioui.org/font/gofont" "gioui.org/io/system" "gioui.org/layout" "gioui.org/op" "gioui.org/unit" "gioui.org/widget" "gioui.org/widget/mater...
package gcalbot import ( "bytes" "crypto/hmac" "encoding/base64" "fmt" "io" "net/http" "strconv" "strings" "time" "google.golang.org/api/googleapi" "github.com/keybase/go-keybase-chat-bot/kbchat" "github.com/keybase/go-keybase-chat-bot/kbchat/types/chat1" "github.com/keybase/managed-bots/base" "golang...
// // Copyright © 2021 Uncharted Software 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 ap...
// // This program is a prototype to learm more about jir webhooks // package main import ( "encoding/json" "fmt" "html" "io/ioutil" "log" "net/http" "net/smtp" ) const ( FROM = "<EMAIL>" PASSWORD = "<PASSWORD>" ) /* Игнорировать пустое поле Чтобы предотвратить включение Location в JSON, когда оно устан...
// Code generated by transpiler. DO NOT EDIT. /** * Go Video Downloader * * Copyright 2019 Tenta, 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.or...
// 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...
// Copyright 2018 The Armada Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file } if (err != nil) { 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 datadog import ( "container/ring" "context" "fmt" "net/http" "strings" "sync" "time" "github.com/sirupsen/logrus" vhttp "github.com/stripe/veneur/http" "github.com/stripe/veneur/protocol" "github.com/stripe/veneur/protocol/dogstatsd" "github.com/stripe/veneur/samplers" "github.com/stripe/veneur/s...
package neuralnet import ( "bytes" "fmt" "github.com/bigokro/go_ml" "github.com/gonum/matrix/mat64" "io/ioutil" "log" "strconv" "strings" ) // TODO: make this more generic? Separate NN implementations for categorization vs. calculation? type NeuralNet struct { Thetas []Matrix Zs []Matrix // Intermedia...
package expr import ( "errors" "strings" "testing" "github.com/kokes/smda/src/column" "github.com/kokes/smda/src/database" ) var litPrefix = "lit:" func prepColumn(nrows int, dtype column.Dtype, rawData string) (*column.Chunk, error) { c := column.NewChunk(dtype) var err error if strings.HasPrefix(rawData, ...
// *** 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 keycloak import ( "context" "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // This data source can be used to fetch propertie...
// Copyright 2020 The Mellium Contributors. // Use of this source code is governed by the BSD 2-clause // license that can be found in the LICENSE file. //go:generate go run ../internal/genfeature //go:generate go run -tags=tools golang.org/x/tools/cmd/stringer -type=Style // Package styling implements XEP-0393: Mess...
// Copyright (c) <NAME> <<EMAIL>>. All rights reserved. Use // of this source code is governed by the MIT license that can be found in // the LICENSE file. package girc import ( "sort" "sync" "time" ) // state represents the actively-changing variables within the client // runtime. Note that everything within the...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: types.proto package service import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" import _ "github.com/gogo/protobuf/gogoproto" import _ "github.com/golang/protobuf/ptypes/timestamp" import time "time" // Reference imports to ...
// WARNING: This file has automatically been generated on Sun, 16 Dec 2018 22:49:13 CST. // Code generated by https://git.io/c-for-go. DO NOT EDIT. package ipset const ( // IPSET_PROTOCOL as defined in ipset/ipset.h:16 IPSET_PROTOCOL = 7 // IPSET_PROTOCOL_MIN as defined in ipset/ipset.h:17 IPSET_PROTOCOL_MIN = 6 ...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
// Copyright 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 ...
// Copyright 2020 cloudeng llc. 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 localdb provides an implementation of filewalk.Database that // uses a local key/value store currently based on github.com/recoilme/pudge. package l...
// Package redis provides a Redis-backed persistent feature store for the LaunchDarkly Go SDK. // // For more details about how and why you can use a persistent feature store, see: // https://docs.launchdarkly.com/v2.0/docs/using-a-persistent-feature-store // // To use the Redis feature store with the LaunchDarkly clie...
package interfaces import ( "github.com/flyteorg/flytestdlib/config" "golang.org/x/time/rate" "k8s.io/apimachinery/pkg/util/wait" ) // This configuration section is used to for initiating the database connection with the store that holds registered // entities (e.g. workflows, tasks, launch plans...) // This struc...
/* * Copyright (c) 2021 Siemens AG * Licensed under the MIT license * See LICENSE file in the top-level directory */ package systeminfo import ( "encoding/json" "errors" "log" "math" "strconv" "strings" systemapi "systemservice/api/siemens_iedge_dmapi_v1" "systemservice/internal/common/utils" "systemserv...
// 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...
package main import ( "encoding/json" "encoding/xml" "flag" "io/ioutil" "net" "net/http" "os" "strings" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/log" ) const ( httpsmode = false ) var ( listenAddress = flag.String("web.listen-address", ":9071", "暴露指标的...
// // Copyright 2019 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 applica...
// 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 macho implements access to Mach-O object files. package macho // High level access to low level data structures. import ( "bytes" "en...
package reflectx import ( "database/sql" "fmt" "math/rand" "reflect" "strconv" "sync" "time" "unsafe" "github.com/donnol/tools/internal/utils/debug" ) var ( // ErrParamNotStruct 参数不是结构体 ErrParamNotStruct = fmt.Errorf("Please input struct param") ) // InitParam 初始化-使用反射初始化param里的指定类型 func InitParam(param ...
// Copyright 2020 The ql Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSES/QL-LICENSE file. // Copyright 2020 WHTCORPS INC, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in co...
package handlers import ( "fmt" "net/http" neturl "net/url" "strings" "github.com/mesosphere/traefik-forward-auth/internal/api/storage/v1alpha1" "github.com/mesosphere/traefik-forward-auth/internal/authentication" "github.com/mesosphere/traefik-forward-auth/internal/configuration" "github.com/coreos/go-oidc"...
package p2p import ( "context" "crypto/ecdsa" "crypto/rand" "math/big" "net" "testing" "time" "github.com/ethereum-optimism/optimism/op-node/eth" "github.com/ethereum-optimism/optimism/op-node/rollup" "github.com/ethereum-optimism/optimism/op-node/testlog" "github.com/ethereum/go-ethereum/log" "github.co...
package main import ( "math" "time" ) const ( // 256kb DataLen = 16 * 16384 // microseconds PreambleUs = 8 LongMsgBits = 112 ShortMsgBits = 56 ) var ( magLutTable = make([]uint16, 129*129*2) FullLen = PreambleUs + LongMsgBits DataLenComp = DataLen + (FullLen-1)*4 modesChecksumTable = [...]uint32{...
package nmea0183 import ( "fmt" "math" "strconv" "strings" "time" ) type varTypeStruct struct { fType string fConv varFormatStruct } type varFormatStruct struct { fCount int from func(int, *[]string) string to func(string) string } func getConversion(format string) (string, varFormatStruc...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
package mysql import ( "database/sql" "fmt" "strconv" "strings" ) // The query types. const ( SELECT = iota DELETE UPDATE INSERT ) // The query flags. const ( ISSORT = "isSort" ISJOIN = "isJoin" ISDEFAULT = "isDefault" INNER = "INNER" LEFT = "LEFT" RIGHT = "RIGHT" ) type ( // FromS...
// Copyright 2021 The PipeCD 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...
// Package BattleEye doco goes here package BattleEye import ( "errors" "fmt" "io" "net" "strings" "sync" "time" ) // ErrTimeout is a timeout error and should be seen as // failing to establish a connection var ErrTimeout = errors.New("Connection Timed Out") // Config documentation type Config struct { Addr ...
package ndb import ( "bytes" "encoding/base64" "encoding/binary" "encoding/json" "fmt" "io" "math/rand" "os" "reflect" "strconv" "strings" "github.com/ugorji/go-serverapp/app" "github.com/ugorji/go-serverapp/db" "github.com/ugorji/go-common/errorutil" "github.com/ugorji/go-common/logging" ) var log = ...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: grant.proto package grant import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf v...
/* 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 (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose ei...
package main import ( "bufio" "bytes" "crypto/sha1" "encoding/base64" "encoding/json" "flag" "fmt" "io" "io/ioutil" "math/rand" "net" "net/url" "os" "os/exec" "os/signal" "regexp" "strconv" "strings" "syscall" "testing" "time" ) // 正则表达式 func TestRegularExpressions(t *testing.T) { match, _ := re...
// Copyright IBM Corp. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package bcdb import ( "crypto/tls" "encoding/json" "encoding/pem" "fmt" "io/ioutil" "math" "os" "path" "testing" "time" "github.com/golang/protobuf/proto" "github.com/hyperledger-labs/orion-sdk-go/internal/test" sdkconfig ...
// 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 ...
package tcp import ( "context" "crypto/tls" "crypto/x509" "encoding/binary" "errors" "fmt" "io" "net" "strconv" "sync" "syscall" "time" "go.aporeto.io/trireme-lib/collector" "go.aporeto.io/trireme-lib/controller/constants" "go.aporeto.io/trireme-lib/controller/internal/enforcer/applicationproxy/markedc...
// 24 march 2014 package ui import ( "fmt" "image" "syscall" "unsafe" ) // #include "winapi_windows.h" import "C" type area struct { *areabase _hwnd C.HWND clickCounter *clickCounter textfield C.HWND textfielddone *event } func makeAreaWindowClass() error { var errmsg *C.char err := C.makeAreaWi...
/* * Copyright 2020 Mandelsoft. 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 License. * You ma...
package main import ( "bufio" "fmt" "net" "os" "strconv" "strings" "sync" "time" ) // var port string var hasPort bool = false var killFlag bool = false var takenPorts []string var wg sync.WaitGroup var globalMap globalMaster var stdin chan string var HOST_IP string var colors Colors func main() { colors = ...
// Package termcolors is the ANSI terminal color tools. // // You call it with a list of colorMap attributes and it returns a string that // will implement them. Here is a simple example that prints some text in // bold red. // // clear, _ := termcolors.ParseColorExpr("clear") // boldRed, _ := termcolors.ParseCol...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc (unknown) // source: aserto/api/v1/metadata.proto package api import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "googl...
package model // ADAUTHServiceObj - Object ad_auth_service const ADAUTHServiceObj = "ad_auth_service" // AdmingroupObj - Object admingroup const AdmingroupObj = "admingroup" // AdminroleObj - Object adminrole const AdminroleObj = "adminrole" // AdminuserObj - Object adminuser const AdminuserObj = "adminuser" // Al...
/* 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, sof...
// Copyright 2014 The Azul3D 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 cp /* #include "chipmunk/include/chipmunk/chipmunk.h" extern void pre_go_chipmunk_body_velocity_func(cpBody *body, cpVect gravity, cpFloat damping...
package republisher import ( "fmt" "sync" "time" badger "github.com/dgraph-io/badger/v2" "github.com/nats-io/nats.go" "github.com/nickpoorman/nats-requeue/flatbuf" "github.com/nickpoorman/nats-requeue/internal/key" "github.com/nickpoorman/nats-requeue/internal/queue" "github.com/nickpoorman/nats-requeue/inte...
package entities import ( "context" "crypto/rand" "errors" "fmt" "runtime" "sync" "sync/atomic" "time" "github.com/tkeel-io/core/pkg/mapper" ) const ( // entity type enumerates. EntityTypeState = "STATE" EntityTypeDevice = "DEVICE" EntityTypeSpace = "SPACE" EntityTypeSubscription = ...
// Package cmn provides common low-level types and utilities for all aistore projects /* * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. */ package cmn import ( "errors" "fmt" "time" ) // string enum: http header, checksum, versioning const ( // http header XattrXXHash = "user.obj.xxhash" Xatt...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
package nnet import ( "encoding/json" "fmt" "io/ioutil" "math" "math/rand" "os" "sort" "strconv" "sync" "time" cmap "github.com/orcaman/concurrent-map" ) type Network struct { NetworkName string `json:"network_name"` OutputFunction string `json:"output_function"` NumOutputs int `json:"n...
// Code generated by protoc-gen-go. // source: transfer_status.proto // DO NOT EDIT! package messages 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 ...
// Copyright 2016-2018, 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...
// Copyright 2019 The Android Open Source 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 ...
package proc import ( "encoding/binary" "errors" "fmt" "go/ast" "go/token" "path/filepath" "reflect" "strings" "github.com/go-delve/delve/pkg/dwarf/godwarf" "github.com/go-delve/delve/pkg/dwarf/reader" ) // Thread represents a thread. type Thread interface { MemoryReadWriter Location() (*Location, error)...
/* * Copyright 2019-2020, Offchain Labs, 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...
// Package spectator provides a minimal Go implementation of the Netflix Java // Spectator library. The goal of this package is to allow Go programs to emit // metrics to Atlas. // // Please refer to the Java Spectator documentation for information on // spectator / Atlas fundamentals: https://netflix.github.io/spectat...
// // Copyright (c) 2019, 2021 Oracle and/or its affiliates. All rights reserved. // // Licensed under the Universal Permissive License v 1.0 as shown at // https://oss.oracle.com/licenses/upl/ // // +build cloud package nosqldb_test import ( "fmt" "math/rand" "testing" "time" "github.com/oracle/nosql-go-sdk/...
package models import ( "crypto/sha256" "fmt" "net/http" "strconv" "time" "github.com/gobuffalo/events" "github.com/gobuffalo/nulls" "github.com/gobuffalo/pop/v5" "github.com/gobuffalo/validate/v3" "github.com/gofrs/uuid" "github.com/pkg/errors" "github.com/silinternational/cover-api/api" "github.com/si...
package probe import ( "io" "testing" "github.com/neuvector/neuvector/share" "github.com/neuvector/neuvector/share/container" "github.com/neuvector/neuvector/share/global" "github.com/neuvector/neuvector/share/utils" ) // a fake runtime driver type dummyRTDriver struct { cmd string } func (d *dummyRTDriver) ...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
package tiltfile import ( "context" "fmt" "sync" "time" "github.com/pkg/errors" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtim...
package btcwallet import ( "fmt" "github.com/btcsuite/btcd/btcec/v2" "github.com/btcsuite/btcd/btcec/v2/ecdsa" "github.com/btcsuite/btcd/btcec/v2/schnorr" "github.com/btcsuite/btcd/btcutil" "github.com/btcsuite/btcd/btcutil/hdkeychain" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/tx...
/* 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 © 2017 Microsoft <<EMAIL>> // // 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, publ...
/* Copyright 2019 The Jetstack cert-manager 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 law or agreed...
// bm.go: an implementation of the Bentley/McIlroy compression // technique. See "Data Compression Using Long Common Strings", Jon // Bentley, <NAME>, Proceedings of the IEEE Data Compression // Conference, 1999, pp. 287-295. // // Copyright (c) 2012-2013 CloudFlare, Inc. package bm import ( "bytes" "encoding/bina...
// Package bundle provides primitives to create and validate bundles. package bundle import ( "math" "strings" "time" "github.com/iotaledger/iota.go/address" "github.com/iotaledger/iota.go/checksum" "github.com/iotaledger/iota.go/consts" . "github.com/iotaledger/iota.go/consts" "github.com/iotaledger/iota.go/...
// Copyright 2019 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
/* Copyright 2019 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: api/proto/realtimeLogStream.proto package realtimeLogStream import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/c...