text
stringlengths
8.57k
38.1k
// Copyright 2018 Google LLC 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 ...
// The goldfrontend executable is the process that exposes a RESTful API used by the JS frontend. package main import ( "context" "flag" "fmt" "html/template" "io/ioutil" "math/rand" "net/http" "net/http/pprof" "os" "path/filepath" "regexp" "strconv" "strings" "time" "github.com/gorilla/mux" "github.c...
package packets /* http://necrotoolz.sourceforge.net/kairpacketguide/ https://docs.polserver.com/packets/index.php http://www.hoogi.de/wolfpack/wiki/doku.php?id=uo_protocol */ import ( "bytes" "strings" ) type Packeter interface { Base() *BasePacket Bytes() []byte Read(chan byte) } type Ba...
// Copyright 2015 <NAME>. All rights reserved. // Copyright 2011 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 recorder allows to capture request/response pairs via a // reverse proxy and generate tests for these...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: mixer/v1/config/client/quota.proto package client import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Mars...
/* * Copyright (C) 2019 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ package main import ( "context" "crypto/tls" "crypto/x509" "flag" "fmt" "intel/isecl/cms/v3/config" "intel/isecl/cms/v3/constants" "intel/isecl/cms/v3/resource" "intel/isecl/cms/v3/tasks" "intel/isecl/cms/v3/version" "in...
package variant import ( "fmt" "os" "path" "strings" bunyan "github.com/mumoshu/logrus-bunyan-formatter" "github.com/pkg/errors" log "github.com/sirupsen/logrus" "github.com/spf13/viper" "encoding/json" "github.com/hashicorp/go-multierror" "github.com/mitchellh/colorstring" "github.com/mumoshu/variant/pk...
// Copyright (c) 2018-2021 VMware, Inc. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package virtualmachineservice import ( goctx "context" "fmt" "os" "reflect" "strings" "github.com/go-logr/logr" corev1 "k8s.io/api/core/v1" apiequality "k8s.io/apimachinery/pkg/api/equality" apiErrors "k8s.io...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: extension_user/extension_user.proto package extension_user import ( fmt "fmt" proto "github.com/temporalio/gogo-protobuf/proto" extension_base "github.com/temporalio/gogo-protobuf/protoc-gen-gogo/testdata/extension_base" extension_extra "github.com/tem...
package wigo import ( "database/sql" "encoding/json" "fmt" "io" "log" "os" "sync" "time" "container/list" "errors" "github.com/docopt/docopt-go" "github.com/fatih/color" "github.com/lann/squirrel" _ "github.com/mattn/go-sqlite3" "github.com/nu7hatch/gouuid" "github.com/root-gg/gopentsdb" "io/ioutil" ...
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 log entry ...
package rpc import ( "context" "fmt" "net/http" "runtime/debug" "strconv" "github.com/oasislabs/oasis-gateway/errors" "github.com/oasislabs/oasis-gateway/log" "github.com/oasislabs/oasis-gateway/rw" "github.com/oasislabs/oasis-gateway/stats" stderr "github.com/pkg/errors" "github.com/rs/cors" ) const Http...
/* * 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: exchange.proto package traceprotobufb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is ...
// Copyright 2020 The Chromium OS 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 firmware import ( "bytes" "context" "fmt" "io/ioutil" "os" "path/filepath" "strings" "time" gossh "golang.org/x/crypto/ssh" "google...
// Copyright (C) MongoDB, Inc. 2014-present. // // 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 package mongoreplay import ( "fmt" "log" "sync...
/* Copyright 2020 The Tekton 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, softw...
// app interface for graphical user interface. // 基本业务执行顺序依次为:New()-->[SetLog(io.Writer)-->]Init()-->SpiderPrepare()-->Run() package app import ( "fmt" "io" "reflect" "strconv" "strings" "sync" "time" "github.com/henrylee2cn/pholcus/app/crawler" "github.com/henrylee2cn/pholcus/app/distribute" "github.com/he...
package v2 import ( "context" "fmt" "math/rand" "sort" "strings" "time" "github.com/fsamin/go-dump" "github.com/ovh/cds/sdk" ) // Workflow is the "as code" representation of a sdk.Workflow type Workflow struct { Name string `json:"name" yaml:"name" jsonschema_description:"The name of the workflow."`...
// Copyright 2015-present, Cyrill @ <EMAIL> and the CoreStore 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 // // Unles...
// BSON library for Go // // Copyright (c) 2010-2012 - <NAME> <<EMAIL>> // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyrig...
/*- * Copyright (c) 2016-2021, <NAME>, 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: yandex/cloud/containerregistry/v1/ip_permission.proto package containerregistry import ( _ "github.com/yandex-cloud/go-genproto/yandex/cloud" protoreflect "google.golang.org/protobuf/reflect/p...
// Copyright 2017 Cisco Systems, 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 agree...
// Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source: com/daml/ledger/api/v1/active_contracts_service.proto p...
package gorgonia import ( "bytes" "fmt" "io/ioutil" "log" "runtime" "strings" "github.com/pkg/errors" "gorgonia.org/tensor" ) type lispMachine struct { ExternMetadata g *ExprGraph q []adInstr // a to-do list of differentiation instructions // device stuff cpumem int64 gpumem []int64 // gpumem is index...
/* (c) 2019, Blender Foundation - <NAME> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, pub...
package httprestful import ( "context" "crypto/tls" "encoding/json" "io/ioutil" "net" "net/http" "strconv" "strings" "sync" "github.com/elastos/Elastos.ELA.Elephant.Node/servers" . "github.com/elastos/Elastos.ELA.Elephant.Node/servers/errors" "github.com/elastos/Elastos.ELA/common/config" "github.com/ela...
package endpoint import ( "context" "encoding/json" "fmt" "math" "sort" "strings" "sync" "github.com/pkg/errors" "github.com/zrepl/zrepl/util/envconst" "github.com/zrepl/zrepl/util/semaphore" "github.com/zrepl/zrepl/zfs" ) type AbstractionType string // Implementation note: // There are a lot of exhaust...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/extensions/filters/http/fault/v3/fault.proto package envoy_extensions_filters_http_fault_v3 import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" v32 "github.com/envoyproxy/go-control-plane/envoy/config/route/v3" v31 "github.com/envoyprox...
package f2 import ( "crypto/md5" "crypto/sha1" "crypto/sha256" "crypto/sha512" "encoding/hex" "encoding/json" "fmt" "hash" "io" "math/rand" "os" "path/filepath" "regexp" "strconv" "strings" "time" "unicode" exiftool "github.com/barasher/go-exiftool" "github.com/dhowden/tag" "github.com/rwcarlsen/g...
// Package bq includes all code related to BigQuery. // // NB: NOTES ON MEMORY USE AND HTTP SIZE // The bigquery library uses JSON encoding of data, which appears to be the only // option at this time. Furthermore, it uses intermediate data representations, // eventually creating a map[string]Value (unless you pass th...
package wallet import ( "bytes" "context" "crypto/ecdsa" "encoding/gob" "errors" "fmt" "io/ioutil" "math/big" "path" "runtime" "time" wi "github.com/OpenBazaar/wallet-interface" "github.com/btcsuite/btcd/chaincfg/chainhash" hd "github.com/btcsuite/btcutil/hdkeychain" "github.com/ethereum/go-ethereum/ac...
package easygo import ( "reflect" "sync" "time" "fmt" "game_server/easygo/base" "net" "sync/atomic" "github.com/astaxie/beego/logs" "github.com/juju/ratelimit" ) type ENDPOINT_ID = int32 //服务器类型 const ( SERVER_TYPE_LOGIN int32 = 1 //登录服 SERVER_TYPE_HALL int32 = 2 //大厅服 SERVER_TYPE_BACKSTAGE ...
package main //go:generate gotext -srclang=en update -out=catalog.go -lang=en,ru import ( "bufio" "bytes" "crypto/md5" "flag" "fmt" "io/ioutil" "log" "os" "os/exec" "path/filepath" "sort" "strconv" "strings" "github.com/famz/SetLocale" "github.com/gdamore/tcell/v2" "github.com/rivo/tview" "github.co...
// Copyright 2020 ConsenSys 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 applicable law or a...
// Package nginx converts Envoy load balancing configuration from Pilot to NGINX configuration. // Additionally, the package provides means for starting/stoping NGINX and applying a new configuration. package nginx import ( "fmt" "sort" "strconv" "strings" "github.com/nginmesh/nginmesh/istio/agent/pilot" "githu...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow/core/framework/variable.proto package framework 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 _ = ...
// Copyright 2013 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. // No testdata on Android. //go:build !android // +build !android package pointer_test // This test uses 'expectation' comments embedded within testdata/*.go...
// This module contains a collection of YANG definitions // for Cisco IOS-XR es-acl package configuration. // // This module contains definitions // for the following management objects: // es-acl: Layer 2 ACL configuration data // // Copyright (c) 2013-2017 by Cisco Systems, Inc. // All rights reserved. package es...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: api.proto package api import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl...
package bytefmt import ( "fmt" "math" "reflect" "testing" ) func TestCmp(t *testing.T) { tests := []struct { A *Size B *Size Expect int }{ // Zeroes {A: &Size{}, B: &Size{}, Expect: 0}, {A: New(0, Metric), B: New(0, Binary), Expect: 0}, // Different bases {A: New(1024*KB, Metric), B: ...
// Copyright 2016-2017 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 flink import ( "context" "encoding/json" "errors" "fmt" "time" "github.com/lyft/flinkk8soperator/pkg/controller/common" "github.com/lyft/flinkk8soperator/pkg/controller/config" "github.com/lyft/flytestdlib/logger" "github.com/lyft/flinkk8soperator/pkg/apis/app/v1alpha1" "github.com/lyft/flinkk8sop...
package main import ( "bytes" "encoding/json" "errors" "fmt" "strconv" "strings" "unsafe" "github.com/hyperledger/fabric/core/chaincode/shim" sc "github.com/hyperledger/fabric/protos/peer" ) // SecurityManagerChaincode 証券に関する関数を提供 type SecurityManagerChaincode struct{} // SecurityStatus 証券の状態を表す type Secur...
// Code generated by protoc-gen-go. // source: api.proto // DO NOT EDIT! /* Package types is a generated protocol buffer package. It is generated from these files: api.proto It has these top-level messages: StartJobRequest StartJobResponse DeleteJobRequest DeleteJobResponse ListJobsRequest Job ListJobsRespon...
// Copyright 2017 Baliance. All rights reserved. // // Use of this source code is governed by the terms of the Affero GNU General // Public License version 3.0 as published by the Free Software Foundation and // appearing in the file LICENSE included in the packaging of this file. A // commercial license can be purchas...
// Copyright (c) 2019, The Emergent 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 main import ( "fmt" "github.com/emer/auditory/agabor" "github.com/emer/etable/etable" "github.com/emer/etable/etview" "log" "math" "s...
package wechat import ( "bytes" "context" "encoding/json" "encoding/xml" "errors" "fmt" "io/ioutil" "log" "math/rand" "net/http" "net/http/cookiejar" "net/url" "regexp" "strconv" "strings" "sync" "time" raven "github.com/getsentry/raven-go" "github.com/go-pg/pg" "github.com/ibigbug/vechat-bot/mode...
// Copyright 2020 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...
// Code generated by protoc-gen-go. // source: image.proto // DO NOT EDIT! /* Package oaktree is a generated protocol buffer package. It is generated from these files: image.proto It has these top-level messages: DiskFormat ContainerFormat Image ImageList */ package oaktree import proto "github.com/golang/prot...
// Copyright 2020 The Embedded 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 fpioa // Pin represents a FPIOA pin. type Pin uint32 type Config uint32 const ( Func Config = 0xFF << 0 // Function number (see function li...
package nodejs import ( "bytes" "fmt" "io" "math/big" "strings" "github.com/hashicorp/hcl/v2" "github.com/hashicorp/hcl/v2/hclsyntax" "github.com/pulumi/pulumi/pkg/v3/codegen/hcl2/model" "github.com/pulumi/pulumi/pkg/v3/codegen/pcl" "github.com/pulumi/pulumi/sdk/v3/go/common/util/contract" "github.com/zclc...
// Copyright 2013 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 godoc import ( "bytes" "encoding/json" "expvar" "fmt" "go/ast" "go/build" "go/doc" "go/token" htmlpkg "html" htmltemplate "html/template" "i...
/* 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, ...
package controller import ( "context" "encoding/json" "fmt" "time" "github.com/argoproj/gitops-engine/pkg/diff" "github.com/argoproj/gitops-engine/pkg/health" "github.com/argoproj/gitops-engine/pkg/sync" hookutil "github.com/argoproj/gitops-engine/pkg/sync/hook" "github.com/argoproj/gitops-engine/pkg/sync/ig...
package lnwallet import ( "fmt" "github.com/btcsuite/btcd/blockchain" "github.com/btcsuite/btcd/btcec" "github.com/btcsuite/btcd/txscript" "github.com/btcsuite/btcd/wire" "github.com/btcsuite/btcutil" "github.com/lightningnetwork/lnd/channeldb" "github.com/lightningnetwork/lnd/input" "github.com/lightningnet...
package container import ( "fmt" buildinfo "github.com/jfrog/build-info-go/entities" "io/ioutil" "net/http" "path" "strings" artutils "github.com/jfrog/jfrog-cli-core/v2/artifactory/utils" "github.com/jfrog/jfrog-client-go/artifactory" "github.com/jfrog/jfrog-client-go/artifactory/services" "github.com/jfro...
/*** The code contained here came from https://github.com/mongodb/mongo-tools/blob/master/mongostat/stat_types.go and contains modifications so that no other dependency from that project is needed. Other modifications included removing uneccessary code specific to formatting the output and determine the current state o...
package main import ( "bytes" "errors" "fmt" "github.com/cyfdecyf/bufio" "net" "strconv" "strings" "time" ) const CRLF = "\r\n" const ( statusCodeContinue = 100 ) const ( statusBadReq = "400 Bad Request" statusForbidden = "403 Forbidden" statusExpectFailed = "417 Expectation Failed" stat...
package universe import ( "context" "fmt" "sort" "strconv" "github.com/apache/arrow/go/arrow/array" arrowmemory "github.com/apache/arrow/go/arrow/memory" "github.com/influxdata/flux" "github.com/influxdata/flux/arrow" "github.com/influxdata/flux/codes" "github.com/influxdata/flux/execute" "github.com/influ...
package perft import ( "fmt" "os" "time" . "github.com/amanjpro/zahak/engine" ) type PerftNodes struct { nodes int64 checks int64 captures int64 enPassants int64 castles int64 promotions int64 checkmates int64 } func PerftTree(game Game, depth int, moves []Move) { sum := int64(0) for _, m...
package graph import ( "encoding/json" "errors" "fmt" "io" "io/ioutil" "os" "github.com/Sirupsen/logrus" "github.com/docker/distribution" "github.com/docker/distribution/digest" "github.com/docker/distribution/manifest" "github.com/docker/docker/image" "github.com/docker/docker/pkg/broadcaster" "github.c...
// Code generated from NitroParser.g4 by ANTLR 4.9.2. DO NOT EDIT. package parser // NitroParser import "github.com/antlr/antlr4/runtime/Go/antlr" // BaseNitroParserListener is a complete listener for a parse tree produced by NitroParser. type BaseNitroParserListener struct{} var _ NitroParserListener = &BaseNitroP...
// Package cav provides specific integrations for Cardiff and Vale University Health Board // CAV provides a ("PMS") web service that provides some endpoints, but one of those endpoints // is simply used as a transport itself for a non-WSDL defined API. // // The stubs were generated using https://github.com/hooklift/g...
package main import ( "bufio" "bytes" "compress/gzip" "context" "fmt" "io" "net/http" "os" "regexp" "strings" "sync" "time" "github.com/bvinc/go-sqlite-lite/sqlite3" "github.com/pkg/profile" "gopkg.in/alecthomas/kingpin.v2" "github.com/machinebox/progress" "github.com/sirupsen/logrus" // "github.c...
package domain //go:generate mockgen -destination=mocks.go -package=domain -self_package=github.com/teleclimber/DropServer/cmd/ds-host/domain github.com/teleclimber/DropServer/cmd/ds-host/domain MetricsI,SandboxI,V0RouteModel,AppspaceRouteModels,StdInput // ^^ remember to add new interfaces to list of interfaces to mo...
package prompt import ( "bytes" "io" "sort" "strconv" "unicode" "github.com/mattn/go-runewidth" ) // TODO(peter): test the text attribute support // TODO(peter): scroll input that is taller than the screen // TODO(peter): syntax highlighting? const ( attrBold = "\x1b[1m" attrDim = "\x1b[2m" attr...
package main import ( "bytes" "encoding/json" "errors" "fmt" units "github.com/docker/go-units" "github.com/flashmob/go-guerrilla" "github.com/flashmob/go-guerrilla/backends" "github.com/flashmob/go-guerrilla/log" "github.com/flashmob/go-guerrilla/mail" "github.com/jhillyerd/enmime" "github.com/urfave/cli/v...
// Implementation note: // In this implementation I read structs from the MPQ source field-by-field for efficiency // because fields are primitive types and binary.Read() is optimized for them // and hence no reflection will be applied. package mpq import ( "bytes" "encoding/binary" "errors" "io" "os" ) var ( ...
package gossip import ( "container/list" "fmt" "log" "net" "os" "strconv" "strings" "sync" "sync/atomic" "time" "github.com/hashicorp/go-multierror" "github.com/hashicorp/go-sockaddr" "github.com/miekg/dns" ) // Gossip basic structure of gossip type Gossip struct { sequenceNum uint32 // Local sequence ...
package shop import ( "fmt" "github.com/faiface/pixel" "github.com/faiface/pixel/imdraw" "github.com/faiface/pixel/pixelgl" "github.com/faiface/pixel/text" "math" "retro-carnage/assets" "retro-carnage/engine" "retro-carnage/engine/characters" "retro-carnage/engine/geometry" "retro-carnage/engine/input" "re...
package main import ( "bytes" "encoding/json" "fmt" "math/rand" "net/http" "os" "os/signal" "regexp" "strings" "time" "github.com/BurntSushi/toml" "github.com/PuerkitoBio/goquery" "github.com/mattermost/mattermost-server/v5/model" "github.com/yhat/scrape" "golang.org/x/net/html" "golang.org/x/net/html...
//line parser.y:2 package parser import __yyfmt__ "fmt" //line parser.y:3 import ( "github.com/elpinal/gec/ast" "github.com/elpinal/gec/token" ) //line parser.y:12 type yySymType struct { yys int top *ast.WithDecls decl *ast.Decl decls []*ast.Decl expr ast.Expr token token.Token cmpop ast.CmpOp } con...
package accounting import ( "errors" "fmt" "math/big" "net/url" "sort" "sync" "time" ) var ( driversMu sync.RWMutex drivers = make(map[string]Driver) defaultSchemes = []string{"ledger", "txtdb", "postgres"} ) // Open opens a ledger specified by a URL-like string, where the scheme is the // back...
package main import ( "fmt" "io/ioutil" "math" "os" "path/filepath" "runtime" "sort" "strings" "github.com/veandco/go-sdl2/img" "github.com/veandco/go-sdl2/sdl" ) const windowPositionX = int32(1000) const windowPositionY = int32(30) const defaultMask = "*.png;*.jpg;*.jpeg;*.ico;*.bmp;*.cur;*.pnm;*.xpm;*.lb...
// Copyright 2016 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" fil...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.13.0 // source: ns-extra.proto package networkserver import ( context "context" duration "github.com/golang/protobuf/ptypes/duration" empty "github.com/golang/protobuf/ptypes/empty" grpc "google.golang.org...
package exec import ( "bufio" "fmt" "io/ioutil" "log" "os" "os/exec" "os/signal" "path" "path/filepath" "regexp" "strconv" "strings" "syscall" "time" "fileutil" "tee" "tmpfile" ) // Verbose & Debug const DEBUG = false const VERBOSE = true // Exit codes const EXITCODE_OK = 0 const EXITCODE_ERROR = 1...
package mysql import ( "context" "database/sql" "errors" "fmt" "math" "time" sq "github.com/Masterminds/squirrel" "github.com/dlmiddlecote/sqlstats" "github.com/go-sql-driver/mysql" "github.com/google/uuid" "github.com/prometheus/client_golang/prometheus" "github.com/rs/zerolog/log" "go.opentelemetry.io/...
package tim import ( "stm32/hal/raw/tim" ) type ( CR1 = tim.CR1 CR2 = tim.CR2 SMCR = tim.SMCR DIER = tim.DIER SR = tim.SR EGR = tim.EGR CCMR1 = tim.CCMR1 CCMR2 = tim.CCMR2 CCER = tim.CCER CNT = tim.CNT PSC = tim.PSC ARR = tim.ARR RCR = tim.RCR CCR1 = tim.CCR1 CCR2 = tim.CCR2 CCR...
// Copyright © 2021 Luther Systems, Ltd. All right reserved. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.14.0 // source: common/exception.proto package common import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.g...
package tachibana // Environment - 環境 type Environment string const ( EnvironmentUnspecified Environment = "" // 未指定 EnvironmentProduction Environment = "production" // 本番環境 EnvironmentDemo Environment = "demo" // デモ環境 ) // ApiVersion - APIのバージョン type ApiVersion string const ( ApiVersion...
package steps import ( "bytes" "context" "fmt" "log" "os" "os/exec" "path/filepath" "strconv" "strings" "testing" "time" "github.com/gruntwork-io/terratest/modules/helm" "github.com/gruntwork-io/terratest/modules/k8s" cassdcapi "github.com/k8ssandra/cass-operator/operator/pkg/apis/cassandra/v1beta1" . ...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
package app import ( "fmt" "io" "os" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/log" tmos "github.com/tendermint/tendermint/libs/os" dbm "github.com/tendermint/tm-db" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github....
// Copyright (C) 2019-2021, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package avalanche import ( "errors" "fmt" "strings" "github.com/flare-foundation/flare/ids" "github.com/flare-foundation/flare/snow" "github.com/flare-foundation/flare/snow/choices" "github.com/flare-f...
// Copyright 2014 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...
package data import ( "fmt" "io/ioutil" "log" "os" "strconv" "strings" "time" "regexp" "github.com/laurent22/ical-go" "github.com/ngradwohl/caldav-go/files" "github.com/ngradwohl/caldav-go/lib" ) // ResourceInterface defines the main interface of a CalDAV resource object. This // interface exists only...
/* * Copyright (C) 2020 IBM, 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 ofthe License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
// Copyright (c) 2022 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 2021 Intel 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.o...
// Copyright 2016 The Cockroach Authors. // // Licensed as a CockroachDB Enterprise file under the Cockroach Community // License (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // https://github.com/cockroachdb/cockroach/blob/master/LI...
// Copyright 2016 The Gini Authors. All rights reserved. Use of this source // code is governed by a license that can be found in the License file. package xo import ( "fmt" "io" "log" "runtime" "sync" "time" "github.com/go-air/gini/dimacs" "github.com/go-air/gini/inter" "github.com/go-air/gini/z" ) const...
// Copyright 2015-2019 the u-root 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 bb builds one busybox-like binary out of many Go command sources. // // This allows you to take two Go commands, such as Go implementations o...
/* Copyright (c) Facebook, Inc. and 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 applicable law or agreed to in...
// Package cluster provides a sorted-set API (via Redis ZSETs) on top of a // group of Redis instances. package cluster import ( "fmt" "log" "math/rand" "strings" "sync" "sync/atomic" "time" "github.com/garyburd/redigo/redis" "github.com/soundcloud/roshi/common" "github.com/soundcloud/roshi/instrumentation...
// Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA // // 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 dynparquet import ( "bytes" "fmt" "io" "sort" "github.com/segmentio/parquet-go" ) const ( // The size of the column indicies in parquet files. ColumnIndexSize = 16 ) // ColumnDefinition describes a column in a dynamic parquet schema. type ColumnDefinition struct { Name string StorageLayout...
package scraper import ( "bufio" "encoding/json" "fmt" "io" "github.com/monitoring-tools/prom-nginx-exporter/metric" ) // NginxPlusScraper is scraper for getting nginx plus metrics type NginxPlusScraper struct{} // NewNginxPlusScraper crates new nginx plus stats scraper func NewNginxPlusScraper() NginxPlusScra...