text
stringlengths
5.51k
28.1k
package cmd import ( "context" "sync" "time" "github.com/cockroachdb/errors" "github.com/cockroachdb/logtags" "github.com/knz/shakespeare/pkg/crdb/log" ) // conduct runs the play. func (ap *app) conduct(ctx context.Context) (err error) { // Start the audition. This initializes the epoch, and thus needs to //...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/campaign_experiment.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/ads...
package monokube import ( "bytes" "encoding/json" "flag" "fmt" "io/ioutil" "os" "os/exec" "path/filepath" "strings" "text/template" "github.com/fatih/color" "gopkg.in/godo.v2/glob" "gopkg.in/yaml.v2" ) var configPath = "monokube.yaml" var lernaRoot = "lerna.json" // Package is the deployment spec for a...
package cryptoservice import ( "crypto/rand" "fmt" "io/ioutil" "os" "runtime" "testing" "github.com/stretchr/testify/require" "github.com/hunter1085/notary/passphrase" "github.com/hunter1085/notary/trustmanager" "github.com/hunter1085/notary/tuf/data" "github.com/hunter1085/notary/tuf/signed" "github.com...
// Copyright (c) 2016 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
/* 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-2019 Authors of Cilium // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
package keeper import ( "math" "math/big" tmtypes "github.com/tendermint/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" ethermin...
package network import ( "bytes" "context" "io" "log" "net" "net/http" "runtime" "strconv" "sync" "time" "github.com/inconshreveable/log15" dto "github.com/prometheus/client_model/go" "github.com/stephane-martin/skewer/conf" "github.com/stephane-martin/skewer/decoders" "github.com/stephane-martin/skewe...
package main import ( "bufio" "encoding/json" "errors" "fmt" "io" "log" "net/http" "net/url" "time" "github.com/up9inc/mizu/tap/api" ) var protocol api.Protocol = api.Protocol{ Name: "http", LongName: "Hypertext Transfer Protocol -- HTTP/1.1", Abbreviation: "HTTP", Macro: ...
package main import ( "context" "encoding/json" "errors" "net/url" "strconv" "strings" "unicode/utf8" "github.com/bwmarrin/discordgo" "github.com/fiatjaf/lntxbot/t" tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api" ) type MessageModifier string const ( EDIT MessageModifier = "EDIT" APPEN...
// Copyright (c) 2016-2018 Tigera, 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 ...
package main import ( "crypto/tls" "errors" "fmt" "github.com/go-ldap/ldap/v3" auth "github.com/korylprince/go-ad-auth/v3" "reflect" //"github.com/sirupsen/logrus" //"github.com/sirupsen/logrus" "strings" ) //var log = logrus.New().WithField("who", "AD") var ADusername = "Administrator" var ADpassword = "...
package containerimage import ( "context" "fmt" "sync" "time" "github.com/containerd/containerd/content" "github.com/containerd/containerd/diff" "github.com/containerd/containerd/errdefs" "github.com/containerd/containerd/images" "github.com/containerd/containerd/platforms" "github.com/containerd/containerd...
package http import ( "bytes" "fmt" "github.com/viant/assertly" "github.com/viant/endly" "github.com/viant/endly/model/criteria" "github.com/viant/endly/model/msg" "github.com/viant/endly/testing/validator" "github.com/viant/toolbox" "github.com/viant/toolbox/data" "io/ioutil" "net" "net/http" "strings" ...
package types import ( "bytes" "flag" "io/ioutil" "os" "path/filepath" "strings" "testing" "unicode" "../ast" "../parser" "../token" ) var testStdlib = flag.Bool("test-stdlib", false, "test all symbols in standard library (will fail)") // TODO recursive types avoiding infinite loop. // e.g. // type A str...
// 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...
/* Copyright 2017 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
// Copyright Amazon.com Inc. or its affiliates. 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. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" file ...
// Copyright 2017 Canonical 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 agreed to ...
package channeldb import ( "bytes" "io/ioutil" "os" "reflect" "testing" "time" "github.com/davecgh/go-spew/spew" "github.com/lightningnetwork/lnd/elkrem" "github.com/roasbeef/btcd/btcec" "github.com/roasbeef/btcd/chaincfg" "github.com/roasbeef/btcd/txscript" "github.com/roasbeef/btcd/wire" "github.com/ro...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: yandex/cloud/mdb/postgresql/v1/backup_service.proto package postgresql import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "github.com/yandex-cloud/go-genproto/yandex/cloud" _ "google.golang.org/genproto/googleapis/api/annota...
package orchestrator // Package orchestrator is an algorithm that manages the work of a cluster of // nodes. It ensures each piece of work has a worker assigned to it. // // The Orchestrator stores a set of expected tasks. Each term, it reaches out // to the cluster to gather what each node is working on. These tasks ...
/* 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 (c) 2016 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
// 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
package disk import ( "fmt" "io/ioutil" "math" "os" "path/filepath" "reflect" "syscall" "testing" "time" "github.com/copernet/copernicus/conf" "github.com/copernet/copernicus/log" "github.com/copernet/copernicus/model" "github.com/copernet/copernicus/model/block" "github.com/copernet/copernicus/model/bl...
// Copyright 2020 The Operator-SDK 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 ...
// Copyright 2015 Prometheus Team // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: platform/platform.proto package platform import ( fmt "fmt" proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal v...
/* Copyright 2017 Caicloud 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 ...
// 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...
package controller import ( "fmt" "sync" "time" "github.com/golang/glog" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/apimachinery/pkg/watch" kapi "k8s.io/kubernetes/pkg/apis...
package client import ( "bytes" "context" "encoding/json" "fmt" "github.com/hashicorp/go-retryablehttp" "github.com/pkg/errors" "github.com/sirupsen/logrus" "io" "io/ioutil" "mime/multipart" "net/http" "net/url" "os" "reflect" "runtime" "strconv" "strings" "time" ) type OpsGenieClient struct { Retr...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: common/common.proto package common import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runt...
// Copyright 2017 <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 ag...
package platform import ( "context" "net" "os" "os/exec" "syscall" "unsafe" "fmt" "runtime" "github.com/davecgh/go-spew/spew" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/msgboxio/ike/protocol" "github.com/pkg/errors" ) const ( syscall_AF_KEY = 29 syscall_SOL_IP = 0 ...
// Copyright 2020 <NAME> // SPDX-License-Identifier: Apache-2.0 // Package lpp implements a peering.NetworkProvider based on the libp2p. // // The set of known peers is managed in several places: // - TrustManager contains a registry of trusted peers and their pub keys. // That's the main reference DB for the auth...
/* Package server provides a convienence type for merging GRPC/REST/HTTP services on a single port. This avoids issues like needing CORS for JS/WASM clients to talk REST to your service because it runs on a different port. It handles issues such as: - Routing all three services on a single port - Applying TLS for all...
// Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. package v1beta20210501 type AgentPool_StatusARM struct { //Id: Resource ID. Id *string `json:"id,omitempty"` //Name: The name of the resource that is unique within a resource...
// 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 taskdb defines interfaces and data types for storing and querying reflow // runs, tasks, pools and allocs. It also provides a function to keep a lease...
package form import ( "bytes" "fmt" "net/url" "reflect" "strconv" "strings" "sync" ) const tagName = "form" // Appender is the interface implemented by types that can append themselves to // a collection of form values. // // This is usually something that shouldn't be used, but is needed in a few // places w...
/* Copyright 2015 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package comm type SelectVirusPayload struct { StartTimestamp int64 `json:"StartTimestamp"` EndTimestamp int64 `json:"EndTimestamp" ` VirusName string `json:"VirusName"` HoneypotName string `json:"HoneypotName" ` PageNumber int `json:"PageNumber" binding:"required"` PageSize int `json:"...
package dingtalk import ( "encoding/json" "time" ) type ( Response interface { GotErr() error } UserInfo struct { Nick string `json:"nick,omitempty"` // 用户在钉钉上面的昵称 UnionID string `json:"unionid,omitempty"` // 用户在当前开放应用所属企业的唯一标识 OpenID ...
// Copyright 2019 Red Hat, Inc. and/or its affiliates // // 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 applic...
package admin import ( //"bytes" "errors" "fmt" //"html/template" //"path" //"regexp" //"strconv" "strings" //"time" //"golang.org/x/crypto/bcrypt" "github.com/jinzhu/gorm" "github.com/qor/action_bar" "github.com/qor/activity" "github.com/qor/admin" "github.com/qor/help" //"github.com/qor/i18n/exchan...
package dr import ( "context" "fmt" "io/ioutil" "math/rand" "strings" "time" g "github.com/onsi/ginkgo" o "github.com/onsi/gomega" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/ap...
/* libvirt.go: mutations for libvirt using the go-libvirt via RPC interface of local socket * * Author: <NAME> <<EMAIL>> * * This software is open source software available under the BSD-3 license. * Copyright (c) 2021, Triad National Security, LLC * See LICENSE file for details. */ //go:generate protoc -I ../....
package debug import ( "fmt" "strings" "github.com/Azure/golua/lua" ) // // Lua Standard Library -- debug // // Open open the Lua standard debug library. This library provides the functionality of the // debug interface (§4.9) to Lua programs. You should exert care when using this library. // // Several of its f...
// Copyright 2019-present Open Networking Foundation. // // 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 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 controlplanecerts import ( "context" "crypto/rand" "fmt" "testing" "github.com/golang/mock/gomock" log "github.com/sirupsen/logrus" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachin...
// Copyright (c) Microsoft Open Technologies, Inc. // All Rights Reserved. // Licensed under the Apache License, Version 2.0. // See License.txt in the project root for license information. package iso import ( "code.google.com/p/go-uuid/uuid" "errors" "fmt" powershell "github.com/MSOpenTech/packer-hyperv/packer/p...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: service.proto package proto import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/pro...
package goftlmux // // Go Go Mux - Go Fast Mux / Router for HTTP requests // // (C) <NAME>, 2013-2014. // Version: 0.4.3 // BuildNo: 804 // // import ( "fmt" "net/http" "testing" debug "github.com/pschlump/godebug" ) var testRuns = []struct { param string result string }{ {"", `["/"]`}, {"/", `["/"]`}, {"...
package main import ( "bytes" "flag" "fmt" "io" "io/ioutil" "os" "os/exec" "sort" "strings" "github.com/blang/semver/v4" "github.com/olekukonko/tablewriter" "golang.org/x/tools/benchmark/parse" "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/storer" "g...
package main import ( "bufio" "encoding/base64" "fmt" "io/ioutil" "math/big" "os" "path/filepath" "strconv" "strings" "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/privval" "github.com/Oneledger/protocol/chains/bitcoin" ethcha...
package itf2rpc import ( "errors" "fmt" "os" "strings" "github.com/ProtossGenius/SureMoonNet/basis/smn_exec" "github.com/ProtossGenius/SureMoonNet/basis/smn_file" "github.com/ProtossGenius/smnric/smn_pglang" "github.com/ProtossGenius/SureMoonNet/basis/smn_str" "github.com/ProtossGenius/smnric/code_file_build...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: services.proto package jjogaegigprc import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) // Reference imp...
/* Go IPP - IPP core protocol implementation in pure Go * * Copyright (C) 2020 and up by <NAME> (<EMAIL>) * See LICENSE for license terms and conditions * * Values for message attributes */ package goipp import ( "bytes" "encoding/binary" "errors" "fmt" "math" "time" ) // Values represents a slice of Att...
/* Copyright 2020 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...
package dawg import ( "errors" "fmt" "io" "log" "math/bits" "os" "golang.org/x/exp/mmap" ) /* FILE FORMAT - 4 bytes - total size of file - 1 byte: cbits - 1 byte: abits - 7code - number of words - 7code - number of nodes - 7code - number of edges - let wbits be the number of bits to represent the total number...
package vals import ( "crypto/md5" "errors" "fmt" "github.com/variantdev/vals/pkg/api" "github.com/variantdev/vals/pkg/expansion" "github.com/variantdev/vals/pkg/providers/awssec" "github.com/variantdev/vals/pkg/providers/echo" "github.com/variantdev/vals/pkg/providers/file" "github.com/variantdev/vals/pkg/pr...
package handler import ( "context" "fmt" kedav1alpha1 "github.com/kedacore/keda/pkg/apis/keda/v1alpha1" "github.com/kedacore/keda/pkg/scalers" "github.com/go-logr/logr" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/...
/* * Copyright Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * or in the "...
// 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-gogo. DO NOT EDIT. // source: pkg/apis/microservice/v1alpha1/envoy_plugin.proto package v1alpha1 import ( fmt "fmt" 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 ...
package adc import ( "bytes" "encoding/base32" "fmt" "os" "reflect" "strconv" "strings" "github.com/direct-connect/go-dc/tiger" ) var ( messages = make(map[MsgType]reflect.Type) ) func init() { RegisterMessage(Supported{}) RegisterMessage(ZOn{}) RegisterMessage(ZOff{}) RegisterMessage(Status{}) Regist...
/* * 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 eudore_test import ( "fmt" "sort" "strings" "testing" "time" "unsafe" "github.com/eudore/eudore" "github.com/kr/pretty" ) type ( config struct { Full *A `alias:"full"` Array A1 `alias:"array"` Map M1 `alias:"map"` Face interface{} `alias:"face"` Base B1 ...
package spectests import ( "encoding/json" "fmt" "math" "os" "path/filepath" "reflect" "runtime" "strconv" "strings" "testing" "github.com/stretchr/testify/require" "github.com/tetratelabs/wazero/wasm" "github.com/tetratelabs/wazero/wasm/binary" "github.com/tetratelabs/wazero/wasm/interpreter" "github...
package syncdrive import ( "context" "fmt" "github.com/tickstep/aliyunpan-api/aliyunpan" "github.com/tickstep/aliyunpan/internal/utils" "github.com/tickstep/aliyunpan/internal/waitgroup" "github.com/tickstep/aliyunpan/library/collection" "github.com/tickstep/library-go/logger" "io/ioutil" "os" "path" "strin...
package statsdaemon import ( "bytes" "fmt" "io" "log" "net" "os" "strings" "sync" "syscall" "time" "github.com/benbjohnson/clock" "github.com/raintank/statsdaemon/common" "github.com/raintank/statsdaemon/out" "github.com/raintank/statsdaemon/ticker" "github.com/raintank/statsdaemon/udp" "github.com/tv...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: call_aggregate.proto package rpc import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import any "github.com/golang/protobuf/ptypes/any" import ( context "golang.org/x/net/context" grpc "google.golang.org/grpc" ) // Referen...
package main import ( "flag" "fmt" "math" "os" "sync" "time" "github.com/ChristopherRabotin/gokalman" "github.com/ChristopherRabotin/smd" "github.com/gonum/matrix/mat64" ) const ( ekfTrigger = 15 // Number of measurements prior to switching to EKF mode. ekfDisableTime = -1200 // Seconds between mea...
package ice import ( "bytes" "encoding/csv" "encoding/json" "fmt" "path" "reflect" "runtime" "strings" "time" kit "github.com/shylinux/toolkits" ) func (m *Message) Cut(fields ...string) *Message { m.meta[MSG_APPEND] = strings.Split(strings.Join(fields, ","), ",") return m } func (m *Message) CSV(text st...
package curator import ( "context" "crypto/subtle" "fmt" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" "google.golang.org/protobuf/proto" ipb "source.monogon.dev/metropolis/node/core/curator/proto/api" "source.monogon.dev/metropolis/node/core/identity" "source.monogon.dev/metropolis/node/co...
package fbx import ( "fmt" "sync" "github.com/trazfr/freebox-exporter/log" ) // MetricsFreeboxSystem https://dev.freebox.fr/sdk/os/system/ type MetricsFreeboxSystem struct { FirmwareVersion string `json:"firmware_version"` Mac string `json:"mac"` Serial...
/* Copyright 2021 Contributors to the EdgeNet 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 law or agreed to...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.12.3 // source: policypb/policy.proto package policypb import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google...
/* Package tfexamples contains functionality for reading .wav files and performing CARFAC, FFT, and SNR calculations. When calling exported function WriteExamplesToRecordio each .wav file in a directory gets read and on a particular window the CARFAC features are calculated. On each of the CARFAC channels a FFT + SNR ...
// Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum 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 Foundation, either version 3 of the License...
/* * Copyright 2018- The Pixie 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 tlsutil import ( "crypto/tls" "crypto/x509" "fmt" "log" "net" "strings" "sync" "time" "github.com/hashicorp/go-rootcerts" ) // DCWrapper is a function that is used to wrap a non-TLS connection // and returns an appropriate TLS connection or error. This takes // a datacenter as an argument. type DCWr...
package v3 import ( "github.com/traPtitech/traQ/utils/optional" "time" "github.com/gofrs/uuid" "github.com/traPtitech/traQ/model" ) type Channel struct { ID uuid.UUID `json:"id"` Name string `json:"name"` ParentID optional.UUID `json:"parentId"` Topic string `json:"topic"` Chi...
// Convert tiller config files/templates to the new formats package convert import ( "log" "os" "path/filepath" "strings" "regexp" "text/template" "github.com/catalyst/gotiller/util" "github.com/catalyst/gotiller/sources" ) const ConfigEtcPath = "/etc/tiller" // Corrected template n...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: update.proto package info import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" inspection "github.com/easyopsapis/easyops-api-go/protorepo-models/easyops/model/insp...
// Copyright 2013 The Walk 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 windows package walk import ( "bytes" ) import ( "github.com/lxn/win" ) type Key uint16 func (k Key) String() string { return key2string[k] ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/resources/dynamic_search_ads_search_term_view.proto package resources import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/go...
/** * 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...
// Copyright (c) 2015, <NAME> <<EMAIL>> // See LICENSE for licensing information package interfacer import ( "fmt" "go/ast" "go/token" "go/types" "io" "os" "path/filepath" "regexp" "sort" "strconv" "strings" "github.com/kisielk/gotool" "golang.org/x/tools/go/loader" "github.com/mvdan/interfacer/intern...
// Copyright (c) 2018 The MATRIX Authors // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php package core import ( "encoding/json" "errors" "math/big" "sync" "time" "github.com/MatrixAINetwork/go-matrix/ca" "github.com/Matrix...
package wizcompiler import ( "fmt" "os" "sort" "strconv" "strings" "time" humanize "github.com/dustin/go-humanize" "github.com/fasterthanlime/wizardry/wizardry/wizparser" "github.com/go-errors/errors" ) type indentCallback func() type ruleNode struct { id int64 rule wizparser.Rule children []*...
package engine import ( "bufio" "flag" "fmt" "io" "net" "os" "os/exec" "runtime" "strconv" "strings" "sync" "time" . "github.com/FactomProject/factomd/common/globals" "github.com/FactomProject/factomd/common/primitives" "github.com/FactomProject/factomd/elections" "github.com/FactomProject/factomd/p2p...
package storage import ( "context" "encoding/json" "fmt" "log" "math/rand" "os" "sync" "time" "github.com/pkg/errors" "github.com/yuuki0xff/goapptrace/tracer/encoding" "github.com/yuuki0xff/goapptrace/tracer/types" ) type LogID = types.LogID const ( defaultMetadataUpdateInterval = 1 * time.Second ) // ...
package redis import ( "encoding/json" "fmt" "math" "regexp" "sort" "strings" "sync" "time" "github.com/go-redis/redis" "github.com/splitio/split-synchronizer/log" "github.com/splitio/split-synchronizer/splitio/api" ) var impressionMutex sync.Mutex const minImpressionsPerFeature = 50 const impressionsTT...
/* Package multichan16 tailors the voxels data type for 16-bit fluorescent images with multiple channels that can be read from V3D Raw format. Note that this data type has multiple channels but segregates its channel data in (c, z, y, x) fashion rather than interleave it within a block of data in (z, y, x, c) fash...
// Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved. // // WSO2 Inc. licenses this file to you 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...
package luddite import ( "errors" "fmt" "net" "net/http" "net/http/pprof" "os" "os/signal" "path" "strings" "sync" "syscall" "github.com/dimfeld/httptreemux" opentracing "github.com/opentracing/opentracing-go" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometh...