text
stringlengths
8.57k
38.1k
/* * MIT LICENSE * * Copyright © 2020, <NAME>, MD. * * 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, modif...
package bittrex import ( "encoding/json" "errors" "fmt" "net/url" "strconv" "strings" "time" "github.com/mattkanwisher/cryptofiend/common" "github.com/mattkanwisher/cryptofiend/config" "github.com/mattkanwisher/cryptofiend/currency/pair" "github.com/mattkanwisher/cryptofiend/exchanges" "github.com/mattkan...
// go implementation of upr client. // See https://github.com/couchbaselabs/cbupr/blob/master/transport-spec.md // TODO // 1. Use a pool allocator to avoid garbage package memcached import ( "encoding/binary" "errors" "fmt" "github.com/couchbase/gomemcached" "github.com/couchbase/goutils/logging" "strconv" "syn...
package hashcat import ( "strconv" ) type hashAlgorithm struct { Group string Name string Number string } type hashAlgorithms []hashAlgorithm func (h hashAlgorithms) Len() int { return len(h) } func (h hashAlgorithms) Swap(i, j int) { h[i], h[j] = h[j], h[i] } func (h hashAlgorithms) Less(i, j int) bool ...
package lstm import ( "fmt" "io/ioutil" "log" "math" "math/rand" "strconv" G "gorgonia.org/gorgonia" "gorgonia.org/tensor" ) // prediction params var softmaxTemperature = 1.0 var maxCharGen = 100 type contextualError interface { error Node() *G.Node Value() G.Value InstructionID() int } type layer stru...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: dummy.proto package pbutil import ( reflect "reflect" sync "sync" proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google...
package main import ( "archive/zip" "bufio" "encoding/hex" "encoding/json" "fmt" "io" "io/ioutil" "os" "path" "path/filepath" "regexp" "runtime" "strconv" "strings" "time" "github.com/NightMan-1/go-dropbox" "github.com/NightMan-1/go-dropy" "github.com/djherbis/times" "github.com/dustin/go-humanize"...
package biz import ( "context" "fmt" "os" "strconv" "strings" "time" "github.com/cuigh/auxo/byte/size" "github.com/cuigh/auxo/data" "github.com/cuigh/auxo/net/web" "github.com/cuigh/swirl/docker" "github.com/docker/docker/api/types/mount" "github.com/docker/docker/api/types/swarm" ) const ( ServiceModeR...
package main //go:generate go-bindata -pkg main -o bindata.go -modtime 1 -prefix html html // build: GOOS=windows GOARCH=amd64 go build -o fskneeboard.exe vfrmap-for-vr/vfrmap import ( "bufio" "context" "encoding/json" "flag" "fmt" "net/http" "os" "os/exec" "os/signal" "path/filepath" "strings" "syscall"...
package main import ( "flag" "fmt" "github.com/rakslice/wxGo/wx" "io" "log" "net/http" "os" "path" "path/filepath" "time" ) // Holds a notification entry that is queued up to go out order behind any other notifications. // This is intended to be used if the underlying desktop notification system doesn't hav...
package main import ( "context" "flag" "fmt" "html" "io" "io/ioutil" "log" "mime/multipart" "net" "net/http" "os" "os/exec" "regexp" "runtime" "strconv" "strings" "time" "github.com/mattn/go-shellwords" "github.com/msoap/raphanus" raphanuscommon "github.com/msoap/raphanus/common" ) const ( // VE...
package main import ( "bufio" "bytes" "fmt" "net/http" "os" "regexp" "strings" "text/template" "time" "github.com/fatih/color" "github.com/gorilla/mux" ) type EncCommand struct { Command string Commandres string HuntId string } type TaskList struct { ImageName string PID string Ser...
package main import ( "archive/zip" "io" "log" "os" "path/filepath" "strconv" "time" "golang.org/x/net/context" "strings" "encoding/json" "fmt" "path" "os/signal" "syscall" "github.com/aws/aws-sdk-go/aws/session" "github.com/awslabs/goformation/cloudformation" "github.com/docker/docker/api/types"...
package pipe import ( "encoding/binary" "errors" "net" "runtime" "sync" "time" "unsafe" "github.com/dearplain/fast-shadowsocks/ikcp" ) const dataLimit = 60 const recvBufLen = 20 * 1024 const accpectChanLen = 60 const readChanLen = 50 const ( CmdClose byte = 2 + iota CmdCreateSession CmdCreateSessionRsp ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: infra/qscheduler/qslib/protos/state.proto package protos import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" ) // Reference imports to suppress errors if they are not otherwise...
package frac import ( "fmt" "math" "strconv" "strings" "testing" ) const ( benchSrcInt = `-01230` benchSrcFrac = `-01230.04560` benchNumInt = -1234 benchNumFrac = -123456 benchNumFloat = -123.456 ) var ( maxInt64 = strconv.FormatInt(math.MaxInt64, 10) minInt64 = strconv.FormatInt(math.MinInt64, 10)...
package pipeline import ( "encoding/json" "fmt" "io" "math" "math/rand" "net/http" "runtime" "strconv" "sync" "time" "github.com/prometheus/client_golang/prometheus" "go.uber.org/atomic" "go.uber.org/zap" "github.com/ozontech/file.d/decoder" "github.com/ozontech/file.d/logger" "github.com/ozontech/fi...
// Copyright 2017 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package markup import ( "bytes" "net/url" "path" "path/filepath" "regexp" "strings" "github.com/masoodkamyab/gitea/modules/base" "github.com/masood...
// Copyright 2019 PingCAP, 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 i...
package main import ( "bufio" "bytes" "compress/gzip" "compress/zlib" "encoding/binary" "encoding/hex" "encoding/json" "flag" "fmt" "io" "io/ioutil" "log" "net/http" "os" "os/signal" "regexp" "strings" "sync" "time" "golang.org/x/net/html" "github.com/PuerkitoBio/goquery" "github.com/google/gop...
package tortoise import ( "fmt" "github.com/spacemeshos/go-spacemesh/common/types" "github.com/spacemeshos/go-spacemesh/events" "github.com/spacemeshos/go-spacemesh/log" "github.com/spacemeshos/go-spacemesh/mesh" "hash/fnv" "math" "sync" "time" ) type vec [2]int type patternID uint32 //this hash does not inc...
// Copyright (C) MongoDB, Inc. 2017-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 topology import ( "context" "fmt" "io/...
// Copyright 2016 the Go-FUSE 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 fuse import ( "fmt" "log" "math" "os" "path/filepath" "runtime" "strings" "sync" "syscall" "time" "unsafe" ) const ( // The kernel ca...
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package revoked import ( "crypto/rand" "crypto/x509" "crypto/x509/pkix" "strings" "testing" "github.com/golang/protobuf/proto" "github.com/hyperledger/fabric-sdk-go/pkg/common/errors/retry" "github.com/hyper...
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build aix // Aix system calls. // This file is compiled as ordinary Go code, // but it is also input to mksyscall, // which parses the //sys lines...
package renter import ( "bytes" "context" "encoding/json" "fmt" "io" "net/http" "sync" "time" "github.com/tus/tusd/pkg/handler" "gitlab.com/NebulousLabs/errors" "gitlab.com/NebulousLabs/fastrand" "gitlab.com/SkynetLabs/skyd/build" "gitlab.com/SkynetLabs/skyd/skymodules" "gitlab.com/SkynetLabs/skyd/skymo...
package miner import ( "bytes" "context" "crypto/rand" "encoding/binary" "fmt" "os" "sync" "time" lrand "github.com/filecoin-project/lotus/chain/rand" "github.com/filecoin-project/lotus/api/v1api" proof2 "github.com/filecoin-project/specs-actors/v2/actors/runtime/proof" "github.com/filecoin-project/lot...
// 利きのテスト package take11 import ( "fmt" "math" "math/rand" "sort" ) // TestControl func TestControl(pPosSys *PositionSystem, pPos *Position) (bool, string) { pPosSys.ClearControlLayer(CONTROL_LAYER_TEST_COPY) pPosSys.ClearControlLayer(CONTROL_LAYER_TEST_ERROR) // 利きをコピー for phase := 0; phase < 2; phase += 1 ...
/* Copyright 2020 The OpenEBS Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
// Copyright 2019 PingCAP, 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 i...
package bfv import ( "errors" "fmt" "math" "math/bits" "github.com/ldsec/lattigo/v2/ring" "github.com/ldsec/lattigo/v2/utils" ) // MaxLogN is the log2 of the largest supported polynomial modulus degree. const MaxLogN = 16 // MinLogN is the log2 of the smallest supported polynomial modulus degree (needed to en...
package packaging import ( "bytes" "context" "fmt" "io" "io/ioutil" "os" "os/exec" "path/filepath" "strings" "text/template" "github.com/kolide/kit/fs" "github.com/kolide/launcher/pkg/packagekit" "github.com/pkg/errors" "go.opencensus.io/trace" ) const ( // Enroll secret should be readable only by roo...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/errors/user_list_error.proto package errors import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are ...
// 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...
// Copyright 2019 Dolthub, 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 i...
/* * This is a simple hierarchical deterministc wallet for ether crytocurrency, * and it is based on the BIP-32 (Bitcoin Improvement Proposal), BIP-39, etc. * * Last modified date: December 12th 2018 */ package hdwallet; import ( // built in packages "fmt" "errors" "sync" "math/big" // cryptography pac...
package t import ( "fmt" "image/color" "log" "math" "math/rand" "os" "reflect" "sort" "strconv" "strings" "testing" "unicode" "unicode/utf8" ) func Test1(t *testing.T) { str := "ABC爱比次D" fmt.Println(str) fmt.Println(len(str)) rs := []rune(str) fmt.Println(rs) fmt.Println(string(rs[3])) } func Te...
package jbtracer import ( "context" "os" "testing" "github.com/cucumber/godog" godogcolors "github.com/cucumber/godog/colors" "github.com/cucumber/messages-go/v16" "github.com/spf13/pflag" ) var opts = godog.Options{ Output: godogcolors.Colored(os.Stdout), Format: "progress", } var ( t1, t2, t3, expected,...
package main import ( "bufio" "bytes" "encoding/json" "fmt" "io" "io/ioutil" "log" "math/rand" "net/http" "net/url" "os" "regexp" "runtime" "strconv" "strings" "sync" "sync/atomic" "time" ) // 定义常量 const ( NORMAL_SLASHES = "/" MINUS_SIGN = "-" DEFAULT_CHARSET = "utf-8" ZERO ...
package main import ( "flag" "fmt" "image" "image/color" _ "image/jpeg" _ "image/png" "log" "math" "os" "github.com/iAmPlus/go-tflite" "github.com/llgcode/draw2d/draw2dimg" "github.com/llgcode/draw2d/draw2dkit" "github.com/nfnt/resize" ) type vector2d struct { x float64 y float64 } func (p *vector2d)...
// This file contains data generators and utilities to simplify tests. // The data generated here shouldn't be used to run OCR instances package monitoring import ( "context" cryptoRand "crypto/rand" "encoding/base64" "encoding/hex" "encoding/json" "fmt" "io" "math/big" "math/rand" "net/http" "time" "gith...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/overload/v3/overload.proto package envoy_config_overload_v3 import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" any "github.com/gola...
// Copyright (c) 2022 <NAME> package main import ( "context" "errors" "fmt" "github.com/pborman/getopt/v2" "os" "regexp" "sort" "strings" "sync" "time" log "github.com/sirupsen/logrus" "golang.org/x/term" "gopkg.in/yaml.v2" ) const Version string = "0.0.2" // Define custom log formatter with very mi...
// Copyright 2019 Hewlett Packard Enterprise Development LP package provisioner import ( "context" "fmt" "os" "reflect" "time" csi_spec "github.com/container-storage-interface/spec/lib/go/csi" "github.com/kubernetes-csi/csi-lib-utils/connection" "github.com/kubernetes-csi/csi-lib-utils/rpc" log "github.com...
/* * Copyright © 2020. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file. */ /* { "imports": [], "name": "ProjectAirApplication", "description": "", "version": "1.0.0", "type": "flogo:app", "appModel": "1.1.1", "feVersi...
package app import ( "bytes" "encoding/binary" "fmt" "strings" ) // rgb ... type rgb struct { index int red uint8 green uint8 blue uint8 transparent uint8 } var wbPalette = []rgb{ rgb{0x08, 0x00, 0x00, 0x00, 0x00}, rgb{0x09, 0xff, 0xff, 0xff, 0x00}, rgb{0x0A, 0xff, 0x00, 0x00, ...
/* * Copyright (c) 2021 THL A29 Limited, a Tencent company. All rights reserved * * This source code file is licensed under the MIT License, you may obtain a copy of the License at * * http://opensource.org/licenses/MIT * */ package pkg import ( "container/list" "context" "os" "os/user" "path/filepath" "...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: go.chromium.org/luci/swarming/proto/config/bots.proto package configpb 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.Err...
package bot import ( "context" "errors" "fmt" "net" "net/url" "regexp" "sort" "strings" "sync" "time" "awesome-dragon.science/go/irc/client" "awesome-dragon.science/go/irc/connection" "awesome-dragon.science/go/irc/event" "awesome-dragon.science/go/irc/event/chatcommand" "awesome-dragon.science/go/irc/...
package search import ( "fmt" "math" "sync" . "github.com/amanjpro/zahak/book" . "github.com/amanjpro/zahak/engine" . "github.com/amanjpro/zahak/evaluation" ) func (r *Runner) Search(depth int8) { if len(r.Engines) == 1 { e := r.Engines[0] e.Search(depth) } else { r.ClearForSearch() var wg sync.WaitG...
package mdl import ( "bytes" "encoding/json" "sort" ) type ( // Views is the container for all views. Views struct { // LandscapeViewss describe the system landscape views. LandscapeViews []*LandscapeView `json:"systemLandscapeViews,omitempty"` // ContextViews lists the system context views. ContextViews...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.14.0 // source: suite_metadata_serializing_service.proto package bindings import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/cod...
/* * * k6 - a next-generation load testing tool * Copyright (C) 2019 Load Impact * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your o...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: ras/protocol/v1/param.proto package protocolv1 import ( _ "github.com/v8platform/protoc-gen-go-ras/plugin/ras/encoding" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoim...
// Copyright 2021 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package mirror import ( "context" "fmt" "strings" "time" admin_model "code.gitea.io/gitea/models/admin" "code.gitea.io/gitea/models/db" repo_model "...
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License i...
/* Copyright 2019 The Vitess 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 livemedia import ( "errors" sys "syscall" "github.com/djwackey/gitea/log" ) const ( spsMaxSize uint = 1000 seiMaxSize uint = 5000 // larger than the largest possible SEI NAL unit numNextSliceHeaderBytesToAnalyze uint = 12 ) //////// H264VideoStreamParser //////// type H264VideoStreamParser struct { ...
package main import ( _ "embed" ) func main() { i := New("My test app") i.AddCondition("Installation details", "<p>Spicy and spicyrv binaries are going to be copied in :</p>"+ "<p><i>C:/Users/<NAME>/AppData/Local/gospicy</i></p><p>A scheme association will be installed to handle spicyrv scheme from your web brow...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // IP address manipulations // // IPv4 addresses are 4 bytes; IPv6 addresses are 16 bytes. // An IPv4 address can be converted to an IPv6 address by // adding a...
// Copyright 2020 The Matrix.org Foundation C.I.C. // // 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 kgo import ( "context" "errors" "fmt" "strings" "sync" "sync/atomic" "time" "github.com/twmb/franz-go/pkg/kerr" "github.com/twmb/franz-go/pkg/kmsg" ) // TransactionEndTry is simply a named bool. type TransactionEndTry bool const ( // TryAbort attempts to end a transaction with an abort. TryAbort ...
// Copyright 2018 The LevelDB-Go and Pebble 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 pebble import ( "math" "sort" "github.com/cockroachdb/pebble/internal/manifest" ) // The minimum count for an intra-L0 compacti...
package campaigns import ( "container/heap" "context" "fmt" "strconv" "sync" "time" "github.com/inconshreveable/log15" "github.com/pkg/errors" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" "github.com/sourcegraph/sourcegraph/cmd/repo-updater/repo...
package reversetraceroute import ( "bytes" "fmt" "math/rand" "reflect" "sort" "sync" "time" "github.com/NEU-SNS/ReverseTraceroute/util/string" "github.com/golang/protobuf/ptypes" apb "github.com/NEU-SNS/ReverseTraceroute/atlas/pb" "github.com/NEU-SNS/ReverseTraceroute/log" "github.com/NEU-SNS/ReverseTrac...
package fastcdc import ( "bytes" "context" "errors" "fmt" "io" "math" ) const ( MinimumMin uint = 64 MinimumMax uint = 67_108_864 AverageMin uint = 256 AverageMax uint = 268_435_456 MaximumMin uint = 1024 MaximumMax uint = 1_073_741_824 ) type FastCDC struct { buffer []byte carry ...
// Copyright (c) 2020 Blockwatch Data Inc. // Author: <EMAIL> package model import ( "context" "encoding/binary" "fmt" "math/bits" "sync" "time" "blockwatch.cc/packdb/pack" "blockwatch.cc/packdb/util" "blockwatch.cc/tzindex/chain" "blockwatch.cc/tzindex/rpc" ) const BlockCacheLineSize = 320 var ( blockP...
//---------------------------------------- // 代码由GenlibVcl工具自动生成。 // Copyright © ying32. All Rights Reserved. // //---------------------------------------- package vcl import ( . "github.com/ying32/govcl/vcl/api" . "github.com/ying32/govcl/vcl/types" "unsafe" ) type TPaintBox struct { IControl in...
package windows import ( "fmt" "syscall" "time" "unsafe" "github.com/pkg/errors" ) var ( sizeofUint32 = 4 sizeofProcessEntry32 = uint32(unsafe.Sizeof(ProcessEntry32{})) sizeofProcessMemoryCountersEx = uint32(unsafe.Sizeof(ProcessMemoryCountersEx{})) sizeofMemoryStatu...
// 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 w...
package v1 import ( "bytes" "fmt" "strings" ) type SimpleValConfig struct { Flags uint32 `json:"flags"` NonReadables U8MinmaxSlice `json:"nonreadables"` Spaces U8MinmaxSlice `json:"spaces"` Unicodes U8MinmaxSlice `json:"unicodes"` Digits U8MinmaxSlice `json:"digits"` Letters ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/overload/v2alpha/overload.proto package envoy_config_overload_v2alpha import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" any "githu...
// The MIB module maps the IPSec // entities created dynamically to the policy entities // that caused them. This is an appendix to the // IPSEC-MONITOR-MIB that has been proposed to // IETF for monitoring IPSec based Virtual Private // Networks. // // Overview of Cisco IPsec Policy Map MIB // // MIB description // ...
// 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...
package k8s import ( "context" "fmt" "github.com/dbunion/com/scheduler" "github.com/juju/errors" "io/ioutil" "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes/scheme" "sigs.k8s.io/yaml" "time" ) //PodClient ... type PodCl...
/* * Copyright 2019 The Sugarkube 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 agre...
package cluster import ( cc "cke/cluster" "cke/kubernetes" "cke/kubernetes/cluster/conf" "cke/log" "cke/utils" "encoding/json" "errors" "fmt" "math/rand" "net/http" "strings" "sync" "time" "github.com/coreos/etcd/pkg/types" ) //监听task事件 type ListenType int var ( Listen_Started ListenType = 0 Listen_...
// The MIB module for managing UDP implementations. // Copyright (C) The Internet Society (2005). This // version of this MIB module is part of RFC 4113; // see the RFC itself for full legal notices. package udp_mib import ( "fmt" "github.com/CiscoDevNet/ydk-go/ydk" "github.com/CiscoDevNet/ydk-go/ydk/type...
package golang import ( "fmt" "github.com/jschaf/pggen/internal/ast" "github.com/jschaf/pggen/internal/casing" "github.com/jschaf/pggen/internal/codegen" "github.com/jschaf/pggen/internal/codegen/golang/gotype" "github.com/jschaf/pggen/internal/gomod" "sort" "strconv" "strings" "unicode" ) // TemplatedFile ...
package wifi import ( "encoding/binary" "encoding/hex" "log" "net" "strconv" "syscall" "time" "github.com/costinm/dmesh-l2/pkg/l2/nl80211" "github.com/mdlayher/genetlink" "github.com/mdlayher/netlink" "github.com/mdlayher/netlink/nlenc" ) // Netlink calls to support subst of NAN and Android+ESP8266/ESP32...
package migration25 import ( "bytes" "fmt" "io" "strconv" "strings" lnwire "github.com/lightningnetwork/lnd/channeldb/migration/lnwire21" mig24 "github.com/lightningnetwork/lnd/channeldb/migration24" mig "github.com/lightningnetwork/lnd/channeldb/migration_01_to_11" "github.com/lightningnetwork/lnd/keychain"...
package main import ( "bytes" "database/sql" "encoding/json" "log" "net/http" "path/filepath" "sort" "strconv" "strings" "github.com/alecxcode/sqla" ) // TasksPage is passed into template type TasksPage struct { AppTitle string PageTitle string LoggedinID int LoggedinAdmin bool Message ...
package core import ( "bytes" "context" _ "embed" "encoding/json" "errors" "fmt" "net" "net/http" "net/url" "os" "os/exec" "os/signal" "path/filepath" "reflect" "strings" "sync" "text/template" "time" iamTmpl "github.com/DODAS-TS/sts-wire/pkg/template" "github.com/gookit/color" "github.com/minio/...
// Copyright 2021 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. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: infra/unifiedfleet/api/v1/...
package internal import ( "context" "fmt" "github.com/nathanhack/sibyl/core" "github.com/nathanhack/sibyl/core/database" "github.com/sirupsen/logrus" "math/rand" "time" ) const ( maxISRRetry = 1 defaultISRStartingDelta = 14 * 24 * time.Hour // 14 days defaultIntradyStart = 5 * 8760 * time.H...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/service/ratelimit/v2/rls.proto package envoy_service_ratelimit_v2 import ( context "context" fmt "fmt" core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" ratelimit "github.com/envoyproxy/go-control-plane/envoy/api/v2/ratelimit" _ "git...
/* 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, ...
// Copyright 2018 New Vector 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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: examples/internal/proto/examplepb/stream.proto package examplepb import ( sub "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/sub" _ "google.golang.org/genproto/googleapis/...
package ringv2 import ( "context" "errors" "fmt" "path" "strings" "sync" "sync/atomic" "time" cron "github.com/robfig/cron/v3" "github.com/sensu/sensu-go/backend/etcd" "github.com/sensu/sensu-go/backend/store" "github.com/sensu/sensu-go/backend/store/etcd/kvc" "github.com/sensu/sensu-go/util/retry" "git...
// Copyright (c) 2021 Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project package propagator import ( "context" "errors" "fmt" "os" "sort" "strconv" "strings" "time" retry "github.com/avast/retry-go/v3" "github.com/go-logr/logr" clusterv1alpha1 "github.com/open-cluster-managemen...
package gmqtt import ( "context" "errors" "github.com/iconnectionkit/gmqtt/logger" "github.com/iconnectionkit/gmqtt/pkg/packets" "github.com/gorilla/websocket" "net" "net/http" "strconv" "sync" "sync/atomic" "time" ) var ( // ErrInvalWsMsgType [MQTT-6.0.0-1] ErrInvalWsMsgType = errors.New("invalid websoc...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.22.0 // protoc v3.10.1 // source: envoy/extensions/filters/http/aws_lambda/v3/aws_lambda.proto package envoy_extensions_filters_http_aws_lambda_v3 import ( _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy...
// Copyright 2017 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/billing_setup.proto package resources import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/ads/googl...
/** * @file * @copyright defined in aergo/LICENSE.txt */ package trie import ( "bytes" "fmt" "sync" "github.com/nmarley/aergo-lib/db" ) // Trie is a modified sparse Merkle tree. // Instead of storing values at the leaves of the tree, // the values are stored at the highest subtree root that contains only t...
//go:build tinygo && gc.provided package nogc import ( "time" "unsafe" ) const ( //gc_WHITE uintptr = 1 << (bits.UintSize-1) //gc_BLACK uintptr = 1 << (bits.UintSize-2) //gc_COLOR_MASK = gc_WHITE | gc_BLACK gc_WHITE uint32 = 0 gc_BLACK uint32 = 1 gc_DEBUG = false gc_TRACE = false ...
package imdb import ( "reflect" "sort" "strings" "time" "github.com/BurntSushi/csql" ) // Attributer describes types that correspond to one or more attribute values // of an entity. Namely, values that satisfy this interface can load those // attribute values from a database. type Attributer interface { ForEnt...
/* * Copyright (c) 2016 <NAME> | <NAME> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLA...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/overload/v2alpha/overload.proto package envoy_config_overload_v2alpha import ( fmt "fmt" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" any "github.com/golang/protobuf/ptypes/any" duration "g...