text
stringlengths
5.51k
28.1k
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
// Copyright 2017 TiKV Project 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...
/* 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 main import ( "context" "encoding/json" "fmt" "io/ioutil" "log" "net/url" "os" "os/signal" "strings" "syscall" "time" "github.com/ChimeraCoder/anaconda" "github.com/HouzuoGuo/tiedot/db" "github.com/Necroforger/dgrouter/exrouter" "github.com/bwmarrin/discordgo" "github.com/fatih/color" "github...
// Copyright 2020 New Relic Corporation. All rights reserved. // SPDX-License-Identifier: Apache-2.0 package newrelic import ( "errors" "fmt" "io" "math" "net/http" "os" "strings" "sync" "time" "github.com/Umanish/go-agent/internal" "github.com/Umanish/go-agent/internal/logger" ) type dataConsumer interf...
package common import ( "bytes" "database/sql" "fmt" "math/rand" "path/filepath" "regexp" "runtime" "strconv" "time" "emperror.dev/errors" "github.com/jonas747/dcmd/v4" "github.com/jonas747/discordgo/v2" "github.com/jonas747/dstate/v4" "github.com/lib/pq" "github.com/mediocregopher/radix/v3" "github.c...
/* Copyright 2018 The Bazel 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 ...
package server import ( "log" "math" "net/http" "sync" "time" "github.com/gorilla/websocket" "github.com/rs/xid" ) const ( WebsocketSubprotocolMagicV1 = "vchamber_v1" ErrInvalidRoomID = "Error: Invalid Room ID" ErrInvalidToken = "Error: Invalid token" ) const ( wsReadBufferSize ...
package agent import ( "bytes" "crypto/tls" "encoding/json" "fmt" "log" "net" "net/http" "net/http/pprof" "os" "strconv" "time" "github.com/NYTimes/gziphandler" assetfs "github.com/elazarl/go-bindata-assetfs" "github.com/hashicorp/nomad/helper/tlsutil" "github.com/hashicorp/nomad/nomad/structs" "githu...
/* * JuiceFS, Copyright 2020 Juicedata, 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 ...
package models import ( "fmt" "log" "os" "path/filepath" "sort" "strconv" "strings" ) const NgLibFrontRepoServiceTemplate = `import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Observable, combineLatest, BehaviorSubject } from 'rxjs'; // insert...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/services/paid_organic_search_term_view_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v2/re...
package ffmpeg import ( "context" "encoding/json" "fmt" "io" "os" "os/exec" "reflect" "strconv" "strings" "time" ) type Printer interface { Printf(format string, v ...interface{}) } type nopPrinter struct{} func (nopPrinter) Printf(format string, v ...interface{}) {} // ProbeInfo ffprobe result type Pro...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/resources/asset.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "google.golang.org/genproto/googleapis/ads/googleads/v2...
package mempool import ( "fmt" "github.com/p9c/matrjoska/pkg/amt" "time" "github.com/p9c/matrjoska/pkg/blockchain" "github.com/p9c/matrjoska/pkg/txscript" "github.com/p9c/matrjoska/pkg/util" "github.com/p9c/matrjoska/pkg/wire" ) const ( // maxStandardP2SHSigOps is the maximum number of signature operations ...
// Copyright 2016-2020 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...
/* Copyright 2018 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// Copyright ©2014 The 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 dynamic import ( "container/heap" "fmt" "math" "github.com/ArkaGPL/gonum/graph" "github.com/ArkaGPL/gonum/graph/path" "github.com/ArkaGPL/go...
// 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 ...
// +build linux darwin,amd64 package mount2 import ( "context" "os" "path" "syscall" fusefs "github.com/hanwen/go-fuse/v2/fs" "github.com/hanwen/go-fuse/v2/fuse" "github.com/rclone/rclone/cmd/mountlib" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/log" "github.com/rclone/rclone/vfs" ) // Node...
/* 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 2017-2018 DERO Project. All rights reserved. // Use of this source code in any form is governed by RESEARCH license. // license can be found in the LICENSE file. // GPG: 0F39 E425 8C65 3947 702A 8234 08B2 0360 A03A 9DE8 // // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" A...
package assertions import ( "io/ioutil" "net/http" "strings" "testing" assets "github.com/kyma-project/kyma/components/cms-controller-manager/pkg/apis/cms/v1alpha1" k8serrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime" "k8s.io/client-go/dynamic" istioclient "github.com/kyma-projec...
// Copyright 2010 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package termioslib provides POSIX compatible access to termios.h. package termioslib /* #include <termios.h> #include <unistd.h> */ import "C" type Termios struct ...
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use ...
package launcher import ( "context" "fmt" "io" "net" nethttp "net/http" _ "net/http/pprof" // needed to add pprof to our binary. "os" "path/filepath" "sync" "time" "github.com/influxdata/flux/control" "github.com/influxdata/flux/execute" platform "github.com/influxdata/influxdb" "github.com/influxdata/i...
package controllers import ( "context" "encoding/json" "errors" "fmt" "path/filepath" "regexp" "strconv" "time" constants "github.com/cybozu-go/meows" meowsv1alpha1 "github.com/cybozu-go/meows/api/v1alpha1" "github.com/cybozu-go/meows/github" "github.com/cybozu-go/meows/runner" "github.com/go-logr/logr" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.18.1 // source: google/ads/googleads/v10/errors/id_error.proto package errors import ( proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google...
package panos import ( "encoding/xml" "errors" "fmt" ) // Policy lists all of the security rules for a given device-group, or the local rules on a firewall. // The IncludedRules field contains information about which rules are defined. The values are as follows: // // pre, post, both, local // // If both is presen...
package httputil import ( "crypto/tls" "crypto/x509" "fmt" "io" "io/ioutil" "net/http" gohttputil "net/http/httputil" "net/url" "strings" "time" "github.com/PerformLine/go-stockutil/fileutil" "github.com/PerformLine/go-stockutil/log" "github.com/PerformLine/go-stockutil/maputil" "github.com/PerformLine/...
package format import ( "encoding/binary" "fmt" "net" "github.com/google/gopacket" "github.com/google/gopacket/layers" ) func formatPacketTCP(tcp *layers.TCP, src, dst string, length int) string { length = length - int(tcp.DataOffset)*4 flags := "" if tcp.FIN { flags = flags + "F" } if tcp.SYN { flags ...
// Copyright 2015 The Serulian Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Portions copied and modified from: https://github.com/golang/go/blob/master/src/text/template/parse/lex_test.go package parser import ( "runtime" "...
// gopartman will manage Postgres partitions. // // - Partitions to be managed are defined in gopartman.yml // - Maintenance is regularly performed so there's no need to set any commands to run in a crontab or anything like that // - An API can optionally be configured to allow: // - CORS and Basic Auth settings for ...
package subscriptions import ( "encoding/json" "errors" "strconv" "strings" "bytes" "encoding/base64" "fmt" "github.com/ARGOeu/argo-messaging/projects" "github.com/ARGOeu/argo-messaging/stores" log "github.com/sirupsen/logrus" "net/http" "net/url" "time" ) const ( LinearRetryPolicyType = "l...
package abci import ( "bytes" "crypto/sha256" _ "crypto/sha256" "encoding/json" "errors" "fmt" "runtime/debug" "time" "github.com/AccumulateNetwork/accumulate" "github.com/AccumulateNetwork/accumulate/config" "github.com/AccumulateNetwork/accumulate/internal/database" "github.com/AccumulateNetwork/accumul...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Dispatcher usage: // go run infra/monitoring/dispatcher // Expects gatekeeper.json to be in the current directory. package main import ( "encoding/j...
// vi: sw=4 ts=4: /* --------------------------------------------------------------------------- Copyright (c) 2013-2015 AT&T Intellectual Property 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 ...
/* Copyright 2020 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 aceydeucey import ( "encoding/json" "errors" "fmt" "github.com/google/uuid" "math" "mondaynightpoker-server/pkg/deck" "mondaynightpoker-server/pkg/playable" "time" ) var errorRoundIsOver = errors.New("round is over") const ( aceStateUndecided = 1 << iota aceStateLow aceStateHigh ) // Round is a c...
package retryable import ( "bytes" "context" "sync" // crypto libraries included for go-digest _ "crypto/sha256" _ "crypto/sha512" "crypto/tls" "crypto/x509" "fmt" "io" "io/ioutil" "net/http" "net/url" "time" digest "github.com/opencontainers/go-digest" "github.com/sirupsen/logrus" ) // Retryable is...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: session/session.proto package session import ( fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" url "github.com/havoc-io/mutagen/pkg/url" math "math" ) // Reference imports to suppress errors if...
package jira import ( "bytes" "fmt" "io" "mime/multipart" "net/url" "strings" "time" ) const ( // AssigneeAutomatic represents the value of the "Assignee: Automatic" of JIRA AssigneeAutomatic = "-1" ) // IssueService handles Issues for the JIRA instance / API. // // JIRA API docs: https://docs.atlassian.com...
// Copyright (c) 2021, 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" "math/rand" "os" "github.com/emer/emergent/env" "github.com/emer/emergent/erand" "github.com/emer/emergent/evec" ...
// Copyright 2019 <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, publish, distribute...
// Copyright (c) 2018 Cisco 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 applicabl...
// Copyright (C) 2021 Gridworkz Co., Ltd. // KATO, Application Management Platform // 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 r...
package protocol import ( "testing" "time" gc "github.com/go-check/check" "go.gazette.dev/core/allocator" pb "go.gazette.dev/core/broker/protocol" "go.gazette.dev/core/keyspace" "go.gazette.dev/core/labels" ) type SpecSuite struct{} func (s *SpecSuite) TestShardValidationCases(c *gc.C) { var cases = []struc...
package dbf import ( "errors" "os" "strings" "time" ) type DbfTable struct { // dbase file header information fileSignature uint8 // Valid dBASE III PLUS table file (03h without a memo .DBT file; 83h with a memo) updateYear uint8 // Date of last update; in YYMMDD format. updateMonth uint8 updateDa...
// Copyright 2020 The Wuffs 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
package libtrust import ( "crypto" "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "crypto/x509" "encoding/json" "encoding/pem" "errors" "fmt" "io" "math/big" ) /* * EC DSA PUBLIC KEY */ // ecPublicKey implements a libtrust.PublicKey using elliptic curve digital // signature algorithms. type ecPublicKey ...
// 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...
package provider import ( "bytes" "compress/gzip" "context" "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" "strconv" "strings" "sync" "time" "github.com/gorilla/websocket" "github.com/rs/zerolog" "github.com/umee-network/umee/price-feeder/config" "github.com/umee-network/umee/price-feeder/orac...
// Copyright 2016 HenryLee. 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 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 ...
// snfusion-web is a simple command serving fusion processes analyses over http. package main import ( "archive/zip" "bytes" "crypto/md5" "encoding/csv" "fmt" "image/color" "io" "io/ioutil" "log" "math" "net" "net/http" "os" "path/filepath" "strconv" "text/template" "time" "github.com/astrogo/snfusi...
// Copyright 2018, OpenCensus 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 app is the primary runtime service. */ package app import ( "context" "crypto/tls" "fmt" "github.com/julienschmidt/httprouter" "github.com/madflojo/hord" "github.com/madflojo/hord/drivers/cassandra" "github.com/madflojo/hord/drivers/redis" "github.com/madflojo/tarmac" "github.com/madflojo/tarmac/ca...
// Copyright 2015 The Prometheus 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...
// Copyright 2019 <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 writin...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: yandex/cloud/ai/vision/v1/face_detection.proto package vision import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ...
package restore import ( "context" "encoding/json" "fmt" "io" "log" "os" "path/filepath" "sort" "strings" "time" "github.com/influxdata/influx-cli/v2/api" "github.com/influxdata/influx-cli/v2/clients" br "github.com/influxdata/influx-cli/v2/internal/backup_restore" "github.com/influxdata/influx-cli/v2/p...
package main import ( "encoding/json" "fmt" "net" "os" "strconv" "strings" "time" "github.com/crowdsecurity/crowdsec/pkg/outputs" "github.com/crowdsecurity/crowdsec/pkg/parser" "github.com/crowdsecurity/crowdsec/pkg/types" "github.com/olekukonko/tablewriter" log "github.com/sirupsen/logrus" "github.com/...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.18.1 // source: namely/giraffe/stitch.proto package giraffe import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" descriptorpb "goo...
package main import ( "errors" "fmt" "io/ioutil" "math" "math/rand" "net/http" "strconv" "time" _ "image/png" wr "github.com/mroth/weightedrand" "github.com/faiface/beep" "github.com/faiface/beep/speaker" "github.com/faiface/pixel" "github.com/faiface/pixel/imdraw" "github.com/faiface/pixel/pixelgl" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: ospfv3_edm_border_router.proto package cisco_ios_xr_ipv6_ospfv3_oper_ospfv3_processes_process_vrfs_vrf_border_routers_border_router import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors i...
package accountviewnet type AcctRec struct { AcctNr string `json:"ACCT_NR"` // Verzamelrekening SubNr string `json:"SUB_NR"` // Debiteurnummer Contact ExtKey int `json:"EXT_KEY"` ContactID int `json:"CONTACT_Id"` fields *fields } func (acctRec AcctRec) BusinessObject() string { return "AR1" } func (acc...
package network import ( "bufio" "context" "fmt" "net" "net/http" "os" "time" "github.com/davecgh/go-spew/spew" "github.com/axiom-org/axiom/data" "github.com/axiom-org/axiom/util" ) var DatabasesInUse *util.SafeSet = util.NewSafeSet() type Server struct { port int keyPair *util.KeyPair peers []*R...
// 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 ...
package main import ( "bytes" "context" "encoding/json" "fmt" "io" "io/ioutil" "net" "net/http" "net/http/httptest" "os" "reflect" "sync" "testing" "time" "github.com/prometheus/client_golang/prometheus" "github.com/stretchr/testify/assert" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/api...
// // 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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.15.5 // source: store/thirdpartystore.proto package thirdpartystore import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "...
package webgl10 import ( "bytes" "fmt" "image" "image/color" "image/jpeg" "image/png" "io/ioutil" "log" "math" "net/http" "path/filepath" "syscall/js" "github.com/go4orward/gigl" ) type WebGLMaterial struct { rc *WebGLRenderingContext // color [4][4]float32 // color ([0...
// SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors. // // SPDX-License-Identifier: Apache-2.0 package subinstallations import ( "context" "fmt" "strings" cdv2 "github.com/gardener/component-spec/bindings-go/apis/v2" "github.com/gardener/component-spec/bindings-go/codec"...
package typescriptify import ( "errors" "fmt" "io/ioutil" "os" "reflect" "strings" "time" "unicode" "unicode/utf8" ) type TypeScriptify struct { Prefix string Suffix string Indent string CreateConstructor bool CreateEmptyObject bool UseInterface bool BackupExtensi...
package gossip import ( "fmt" "strings" "sync" "time" "github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/metrics" "github.com/ethereum/go-ethereum/params" "github.com/hashicorp/golang-lru" "githu...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.12.4 // source: catly/object.proto package catly import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.g...
// The MIT License (MIT) // Copyright (c) 2017 <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...
package postgres import ( "context" "fmt" "runtime/debug" "strings" "github.com/jackc/pgx/v4/pgxpool" "github.com/pkg/errors" v1 "github.com/stackrox/rox/generated/api/v1" "github.com/stackrox/rox/pkg/errox" "github.com/stackrox/rox/pkg/logging" "github.com/stackrox/rox/pkg/pointers" "github.com/stackrox/r...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: api.proto package api import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/...
/* Copyright (c) 2013, 2014, 2015 <NAME> (<EMAIL>), Univa 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 conditi...
/* File summary: logfile interface Package: logfile Author: <NAME> Copyright (C) 2015 LMMR Tech Ltd 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/licen...
// Copyright 2015 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
package chargeback import ( "bytes" "context" "fmt" "strings" "sync" "time" "golang.org/x/sync/errgroup" prom "github.com/prometheus/client_golang/api/prometheus/v1" "github.com/prometheus/common/model" "github.com/sirupsen/logrus" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" cbTypes...
/* 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, ...
package models import ( "github.com/shopspring/decimal" "time" ) // MarketOrder is just a simple struct to homologue the exchange responses type MarketOrder struct { Amount decimal.Decimal `json:"amount"` Price decimal.Decimal `json:"price"` } // FiatRates is the struct to handle internally the OpenRate respons...
package httpserver import ( "encoding/json" "fmt" "log" "net/http" "strconv" "strings" "time" "github.com/ChandraNarreddy/swoossh/ca" "github.com/ChandraNarreddy/swoossh/sshcert" "github.com/ChandraNarreddy/swoossh/storage" "github.com/ChandraNarreddy/swoossh/user" "golang.org/x/crypto/ssh" ) var ( GetC...
/* 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 pool import ( "crypto/tls" "crypto/x509" "fmt" "net" "os" "path" "path/filepath" "time" "github.com/btcsuite/btcutil" "github.com/lightningnetwork/lnd/cert" "github.com/lightningnetwork/lnd/lncfg" "github.com/lightningnetwork/lnd/lnrpc" "google.golang.org/grpc" "google.golang.org/grpc/credential...
package common import ( "encoding/xml" "time" ) //Config 配置 type SiteConfig struct { //站点名称 SiteName string `json:"site_name"` //底部信息 SiteFooter string `json:"site_footer"` //网站链接 SiteUrl string `json:"site_url"` //Logo 地址 Logo string `json:"logo"` //最大上传的图片个数 SiteUploadMaxNumber int `json:"site_upload_max_...
package sfu import ( "fmt" "strings" "sync" "sync/atomic" "time" "github.com/pion/ion-sfu/pkg/buffer" "github.com/pion/rtcp" "github.com/pion/transport/packetio" "github.com/pion/webrtc/v3" ) // DownTrackType determines the type of a track type DownTrackType int const ( SimpleDownTrack DownTrackType = iot...
// Package openapi provides primitives to interact with the openapi HTTP API. // // Code generated by github.com/deepmap/oapi-codegen version v1.9.0 DO NOT EDIT. package openapi import ( "encoding/json" "fmt" ) // Defines values for TaskOnDuplicate. const ( TaskOnDuplicateError TaskOnDuplicate = "error" TaskOnDu...
/* Copyright 2020 The Knative 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...
// Copyright 2015 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. package qemu import ( "fmt" "io" "os" "os/exec" "path/filepath" "strconv" "strings" "time" "github.com/google/syzkaller/pkg/config" "github.com...
package controller import ( "context" "fmt" "os" "os/signal" "strconv" "sync" "sync/atomic" "syscall" "time" "github.com/giantswarm/backoff" "github.com/giantswarm/k8sclient/v7/pkg/k8sclient" "github.com/giantswarm/microerror" "github.com/giantswarm/micrologger" "github.com/giantswarm/micrologger/logger...
// Package node defines the concept of a Aurora node // by bootstrapping and injecting all necessary // dependencies. package node import ( "context" "crypto/ecdsa" "fmt" "io" "log" "math/big" "net" "net/http" "path/filepath" "time" "github.com/gauss-project/aurorafs/pkg/crypto/cert" "github.com/gauss-pr...
// Copyright (c) 2017 Couchbase, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
package iter import ( "container/heap" "context" "io" "github.com/grafana/loki/pkg/logproto" "github.com/grafana/loki/pkg/logqlmodel/stats" "github.com/grafana/loki/pkg/util" ) // SampleIterator iterates over samples in time-order. type SampleIterator interface { Next() bool // todo(ctovena) we should add `S...
// +build f10x_md package usart // DO NOT EDIT THIS FILE. GENERATED BY xgen. import ( "bits" "mmio" "unsafe" "stm32/o/f10x_md/mmap" ) type USART_Periph struct { SR RSR _ uint16 DR RDR _ uint16 BRR RBRR _ uint16 CR1 RCR1 _ uint16 CR2 RCR2 _ uint16 CR3 RCR3 _ uint16 GTPR RG...
package allocdir import ( "archive/tar" "fmt" "io" "io/ioutil" "log" "os" "path/filepath" "time" "gopkg.in/tomb.v1" "github.com/hashicorp/go-multierror" "github.com/hashicorp/nomad/nomad/structs" "github.com/hpcloud/tail/watch" ) const ( // idUnsupported is what the uid/gid will be set to on platforms ...
package main import ( "encoding/hex" "fmt" "io" "sync" "sync/atomic" "github.com/lightningnetwork/lnd/lndc" "github.com/lightningnetwork/lnd/lnrpc" "github.com/lightningnetwork/lnd/lnwallet" "github.com/lightningnetwork/lnd/lnwire" "github.com/roasbeef/btcd/txscript" "github.com/roasbeef/btcd/wire" "gith...