text
stringlengths
5.51k
28.1k
// // Copyright 2015-present Facebook, 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...
// Use of this source code is governed by a MIT license that can be found in the LICENSE file. // Giorgis (<EMAIL>) package avutil /* #cgo pkg-config: libavutil #include <libavutil/frame.h> #include <libavutil/avutil.h> #include <stdlib.h> */ import "C" import ( "fmt" "image" "log" "os" "unsafe" ) type ( A...
package engine import ( "bytes" flate "compress/flate" gzip "compress/gzip" lzw "compress/lzw" zlib "compress/zlib" "fmt" arithmetic "github.com/go-compression/raisin/compressor/arithmetic" dmc "github.com/go-compression/raisin/compressor/dmc" huffman "github.com/go-compression/raisin/compressor/huffman" lz ...
// Package rpcclient provides an easy to use client for interfacing with an electrum wallet that runs a JSON-RPC daemon // Based on https://github.com/btcsuite/btcd/tree/master/rpcclient package rpcclient import ( "bytes" "container/list" "crypto/tls" "crypto/x509" "encoding/json" "errors" "fmt" "io/ioutil" ...
// Copyright 2020 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 intercom import ( "bufio" "context" "crypto/tls" "errors" "fmt" "io" "io/ioutil" "net" "strings" "sync" "time" "unicode" hclog "github.com/hashicorp/go-hclog" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/wa...
// 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. package ui import ( "context" "encoding/json" "fmt" "io/ioutil" "math/rand" "net/http" "net/url" "path/filepath" "strconv" "strings" "time"...
package e2e import ( "context" "fmt" "log" "math" "net" "testing" "time" config "github.com/openshift/api/config/v1" mapi "github.com/openshift/machine-api-operator/pkg/apis/machine/v1beta1" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "k8s.io/api/cor...
//line lang.y:6 package lang import __yyfmt__ "fmt" //line lang.y:6 import ( "github.com/hashicorp/terraform/config/lang/ast" ) //line lang.y:14 type parserSymType struct { yys int node ast.Node nodeList []ast.Node str string token *parserToken } const PROGRAM_BRACKET_LEFT = 57346 const PROGR...
// Copyright 2015 <NAME>. 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...
// Package memstore provides an in-memory data store for auto-resources. package memstore import ( "crypto/sha1" "encoding/base64" "encoding/json" "errors" "fmt" "net/http" "reflect" "strings" "sync" "time" "github.com/danielgtaylor/huma" "github.com/danielgtaylor/huma/schema" "github.com/fatih/structs" ...
package db import ( "database/sql" "time" ) // 图片 type Image struct { UUID string `db:"uuid" json:"uuid"` // unique id CreateAt time.Time `db:"create_at" json:"create_at"` // create time UpdateAt time.Time `db:"update_at" json:"update_at"` // update time Data []byte `db:"data" json:...
package main import ( "context" "flag" "fmt" "log" "sync" "time" proto "google.golang.org/protobuf/proto" api "github.com/synerex/synerex_api" order "github.com/synerex/synerex_beta_example/proto_order" sxutil "github.com/synerex/synerex_sxutil" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/trace...
package pomo import ( "bytes" "context" "fmt" "io" "io/ioutil" "mime" "net/http" "net/url" "path" "time" "golang.org/x/net/http2" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/util/net" "k8s.io/klog" ) var ( /...
// Copyright 2017 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 law or a...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package emr import ( "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/go/pulumi" ) // Provides an Elastic MapReduce Cluster, a web service ...
// MIT License // // Copyright (c) 2016 C.T.Chen <<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, ...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: command.proto package msg 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 a compile-...
// Copyright 2016-2019 Authors of Cilium // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
package etl import ( "bufio" "compress/gzip" "context" "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "net/url" "path/filepath" "strings" "time" "cloud.google.com/go/storage" "github.com/golang/glog" "github.com/livepeer/cdn-log-puller/internal/common" "github.com/livepeer/cdn-log-puller/intern...
package httpcli import ( "bytes" "crypto/tls" "errors" "fmt" "io" "log" "net" "net/http" "time" "github.com/mesos/mesos-go/api/v1/lib" "github.com/mesos/mesos-go/api/v1/lib/encoding" "github.com/mesos/mesos-go/api/v1/lib/recordio" ) var ( // ErrNotLeader is returned by Do calls that are sent to a non le...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: envoy/type/matcher/v3/number.proto package envoy_type_matcher_v3 import ( _ "github.com/cncf/udpa/go/udpa/annotations" v3 "github.com/datawire/ambassador/v2/pkg/api/envoy/type/v3" _ "github....
/* Copyright NetFoundry, 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: peer/proposal_response.proto package peer import ( fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = p...
package cluster import ( "bytes" "fmt" "io/ioutil" "log" "math" "net" "net/http" "os" "path/filepath" "strconv" "strings" "time" "github.com/CanonicalLtd/go-dqlite" "github.com/CanonicalLtd/raft-http" "github.com/CanonicalLtd/raft-membership" "github.com/boltdb/bolt" "github.com/hashicorp/go-hclog" ...
package core import ( "context" "crypto/md5" "fmt" "github.com/google/go-github/github" "github.com/spf13/viper" "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/transport/http" "gopkg.in/src-d/go-git.v4/storage/memory" "io" "io/ioutil" "os" "regexp" "strc...
/* // Copyright (c) 2016 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.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
// // SPDX-License-Identifier: BSD-3-Clause // package redfish import ( "encoding/json" "fmt" "reflect" "github.com/stmcginnis/gofish/common" ) // ChassisType is a physical form of the chassis type ChassisType string const ( // BladeChassisType is an enclosed or semi-enclosed, typically vertically-oriented, s...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: importduplicate.proto package importduplicate import ( bytes "bytes" fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" proto1 "github.com/gogo...
// Package commands provides the set of CLI commands used to communicate with the AIS cluster. // This file handles commands that interact with objects in the cluster /* * Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved. */ package commands import ( "archive/tar" "compress/gzip" "encoding/hex" j...
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package modload import ( "bytes" "github.com/sirkon/goproxy/internal/base" "github.com/sirkon/goproxy/internal/cache" "github.com/sirkon/goproxy/internal/c...
/* Copyright 2015 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
package restart import ( "container/list" "context" "errors" "sync" "time" "github.com/docker/go-events" "github.com/moby/swarmkit/v2/api" "github.com/moby/swarmkit/v2/api/defaults" "github.com/moby/swarmkit/v2/log" "github.com/moby/swarmkit/v2/manager/orchestrator" "github.com/moby/swarmkit/v2/manager/sta...
/* Copyright 2020-2021 Gravitational, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
/* Copyright 2019 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...
package fenxiao import ( "net/url" "github.com/bububa/opentaobao/model" ) /* 更新产品 APIRequest taobao.fenxiao.product.update 更新分销平台产品数据,不传更新数据返回失败<br><br/>1. 对sku进行增、删操作时,原有的sku_ids字段会被忽略,请使用sku_properties和sku_properties_del。<br> */ type TaobaoFenxiaoProductUpdateRequest struct { model.Params // 运费类...
// Copyright 2020 Coinbase, 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...
// Copyright (c) 2016-2018 Tigera, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
package controller import ( "bufio" "github.com/bry00/m/buffers" "github.com/bry00/m/config" "github.com/bry00/m/utl" "github.com/bry00/m/view" "io" "log" "os" "path/filepath" "regexp" "strings" "time" "unicode/utf8" ) type Controller struct { fileName *string title *string conf ...
package decoder import ( "reflect" "testing" "github.com/makiuchi-d/gozxing" ) const ( dm4str = "" + "## ## ## ## ## ## ## ## \n" + "## #### #### ## #### ##\n" + "#### #### #### \n" + "###### #### ## #### ##\n" + "#### ########## \n" + "####...
package topgun_test import ( "bytes" "crypto/tls" "database/sql" "fmt" "io/ioutil" "net/http" "os" "os/exec" "path/filepath" "regexp" "strings" "testing" "time" gclient "code.cloudfoundry.org/garden/client" gconn "code.cloudfoundry.org/garden/client/connection" "code.cloudfoundry.org/lager" "code.clo...
// Utilities to help with incremental builds. // // There are four things we consider for each rule: // - the global config, some parts of which affect all rules // - the rule definition itself (the command to run, etc) // - any input files it might have // - any dependencies. // // If all of those are the same as ...
// Copyright 2021 The Fuchsia 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" "io/ioutil" "log" "os" "os/exec" "runtime" "strconv" "go.fuchsia.dev/fuchsia/src/lib/thinfs/block/file" "go.fuchsia....
// Copyright 2021 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 FISCO-BCOS go-sdk // 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...
// Copyright 2020 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...
// Copyright 2020 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: builder.proto package protos import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "github.com/golang/protobuf/ptypes/any" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/stat...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/resources/campaign_experiment.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/ads...
// Copyright 2019 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
package protocol import ( "errors" "fmt" "io" "libraries" "mysql" "net" "reflect" "runtime" "runtime/debug" "strconv" "sync" "sync/atomic" "time" "github.com/klauspost/compress/zstd" "github.com/luyu6056/cache" ) const ( RpcClientStatuShutdown = 1 << iota RpcClientStatuNormal ...
// Command runprog executes program defined restricted environment including seccomp-ptraced, namespaced and containerized. package main import ( "context" "errors" "flag" "fmt" "io" "os" "os/signal" "sync/atomic" "syscall" "time" "github.com/criyle/go-sandbox/cmd/runprog/config" "github.com/criyle/go-san...
package buffer import ( "bytes" "context" "encoding/json" "fmt" "io" "os" "path/filepath" "sync" "time" "github.com/observiq/stanza/entry" "github.com/observiq/stanza/operator" "github.com/observiq/stanza/operator/helper" "golang.org/x/sync/semaphore" ) // DiskBufferConfig is a configuration struct for ...
// // Copyright 2020 Contributors to the Parsec project. // SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.13.0 // source: psa_aead_encrypt.proto package psaaeadencrypt import ( psaalgorithm "github.com/parallaxs...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/custom_interest.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/ads/goo...
package handler import ( "encoding/hex" "fmt" "image/color" "math/rand" "regexp" "strings" "time" ) var Colors map[string]*color.RGBA func init() { Colors = make(map[string]*color.RGBA) Colors["aliceblue"] = &color.RGBA{0xf0, 0xf8, 0xff, 0xFF} Colors["antiquewhite"] = &color.RGBA{0xfa, 0xeb, 0xd7, 0xFF} C...
/* Copyright 2020 the Velero contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
package main import ( "bufio" "bytes" "encoding/hex" "fmt" "strings" ) func main() { in := input var totalCodeChars int var totalDecodedMemChars int var totalEncodedMemChars int scanner := bufio.NewScanner(bytes.NewBufferString(in)) for scanner.Scan() { s := strings.Trim(scanner.Text(), " \r\n\t") if s...
package main import ( "bytes" "crypto/sha1" "encoding/hex" "encoding/json" "flag" "fmt" "io" "log" "net/http" "net/url" "os" "path" "path/filepath" "strings" "sync" "time" "github.com/couchbaselabs/cbfs/client" "github.com/couchbaselabs/cbfs/tools" "github.com/dustin/go-id3" "github.com/dustin/htt...
// Package subscriber holds the bits and bobs that listen to the pricing messages being firehosed onto the queue // and does stuff to these messages... like... stores them and creates stats and stuff. package subscriber import ( "encoding/json" "errors" "fmt" "github.com/abaeve/pricing-service/model" "github.com/...
package main import ( "encoding/json" "errors" //"fmt" "io" "io/ioutil" "log" "net/url" "os" "path/filepath" "sort" "strconv" "strings" "sync" "time" "github.com/fsnotify/fsnotify" "github.com/golang/geo/r2" "github.com/golang/geo/s2" "github.com/paulmach/go.geojson" "github.com/prometheus/client_g...
// Copyright 2014 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 gl /* Partially generated from the Khronos OpenGL API specification in XML format, which is covered by the license: Copyright (c) 2013-2014 The Khro...
// Copyright 2020 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...
// Copyright 2016-2017 VMware, 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 appli...
// Copyright (c) 2012 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 to in w...
package gateway import ( "context" "errors" "fmt" "net/http" "sync" "time" "github.com/andersfylling/disgord/internal/constant" "github.com/andersfylling/disgord/internal/event" "github.com/andersfylling/disgord/internal/gateway/cmd" "github.com/andersfylling/disgord/internal/logger" ) const defaultShardRa...
// // Copyright (c) 2015 The heketi Authors // // This file is licensed to you under your choice of the GNU Lesser // General Public License, version 3 or any later version (LGPLv3 or // later), or the GNU General Public License, version 2 (GPLv2), in all // cases as published by the Free Software Foundation. // packa...
// Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
package renter import ( "container/heap" "math" "strings" "testing" "time" "gitlab.com/NebulousLabs/Sia/crypto" "gitlab.com/NebulousLabs/Sia/modules" "gitlab.com/NebulousLabs/Sia/types" "gitlab.com/NebulousLabs/errors" ) // TestProjectDownloadChunkHeap is a unit test that covers the functionality of // the ...
package config import ( "bytes" //"crypto/ecdsa" "io/ioutil" "path/filepath" "strings" "time" "github.com/Oneledger/toml" "github.com/pkg/errors" tmconfig "github.com/tendermint/tendermint/config" "github.com/Oneledger/protocol/log" ) const ( // Default permissions for writing files // These are based ...
// Copyright 2020 <NAME>. 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...
package cli import ( "bytes" "fmt" "io" "net/http" "os" "regexp" "sort" "strings" "sync" "github.com/labstack/gommon/color" "github.com/mattn/go-colorable" "github.com/mkideal/pkg/debug" ) var commandNameRegexp = regexp.MustCompile("^[a-zA-Z_0-9][a-zA-Z_\\-0-9]*$") // IsValidCommandName validates name o...
// Copyright 2020 Douyu // // 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...
package config import ( "bytes" "encoding/json" "errors" "fmt" "io/ioutil" "log" "net" "os" "strconv" "strings" "time" gonat "github.com/nknorg/go-nat" "github.com/nknorg/go-portscanner" "github.com/nknorg/nkn/common" "github.com/nknorg/nkn/crypto/ed25519" "github.com/nknorg/nkn/crypto/ed25519/vrf" "...
// Copyright (c) 2021 Terminus, 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...
package idservice import ( "encoding/base64" "fmt" "html/template" "log" "net/http" "github.com/juju/utils/jsonhttp" "gopkg.in/errgo.v1" "gopkg.in/macaroon.v1" "gopkg.in/macaroon-bakery.v0/bakery" "gopkg.in/macaroon-bakery.v0/bakery/checkers" "gopkg.in/macaroon-bakery.v0/bakery/example/meeting" "gopkg.in...
package main import "fmt" import ( sc "google.golang.org/api/servicecontrol/v1" sm "google.golang.org/api/servicemanagement/v1" //oauth "google.golang.org/api/oauth2/v2" smp "google.golang.org/genproto/googleapis/api/servicemanagement/v1" grpcOauth "google.golang.org/grpc/credentials/oauth" "flag" "os" "io/io...
// Copyright (c) 2017 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. // // Copyright (c) 2009 The Go Authors. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided ...
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/* Copyright 2015 The Kubernetes 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 ag...
package mempool import ( "BtcoinProject/blockchain" "BtcoinProject/wire" "fmt" "github.com/btcsuite/btcutil" "time" ) /* At a high level, this package satisfies that requirement by providing an in-memory pool of fully validated transactions that can also optionally be further filtered based upon a configurable p...
package kraken import ( "errors" "fmt" "math" "net/http" "strconv" "time" "github.com/gorilla/websocket" "github.com/thrasher-corp/gocryptotrader/common" "github.com/thrasher-corp/gocryptotrader/currency" "github.com/thrasher-corp/gocryptotrader/exchanges/orderbook" "github.com/thrasher-corp/gocryptotrader...
package main import ( "bufio" "bytes" "encoding/json" "fmt" "io" "io/ioutil" "log" "net/http" "os" "regexp" "sort" "strconv" "strings" "sync" "time" "github.com/hpcloud/tail" ) type logTailService struct { currentTailerLck sync.RWMutex currentTailer map[string]*logTail chainBlockHeight map[stri...
// 获取财报数据 package eastmoney import ( "context" "fmt" "strings" "time" "github.com/axiaoxin-com/goutils" "github.com/axiaoxin-com/logging" "go.uber.org/zap" ) // FinaMainData 财报主要指标 type FinaMainData struct { // 股票代码: 111111.SZ Secucode string `json:"SECUCODE"` // 股票代码: 111111 SecurityCode string `json:"S...
/* Copyright 2020 The Crossplane 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 2015 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 x509 import ( "crypto/dsa" "crypto/ecdsa" "crypto/rsa" "encoding/asn1" "encoding/json" "net" "strings" "time" "github.com/asaskevich/govalid...
/* 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: events.proto package rpc import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import google_protobuf "github.com/golang/protobuf/ptypes/any" import google_protobuf1 "github.com/golang/protobuf/ptypes/empty" import ( context "...
// Copyright © 2014 <NAME>. All rights reserved. package main import "flag" import "fmt" import "unsafe" import "time" import "sort" import "os" import "log" import "runtime/pprof" import "leb.io/hashland/jenkins" import "leb.io/hrff" //import "math/rand" //import "runtime" func stu(s string) []uint32 { //fmt.Print...
package self import ( "errors" "fmt" "io" "os" "path/filepath" "regexp" "runtime/debug" "strings" "sync/atomic" "time" "github.com/qiniu/log" "github.com/qiniu/pandora-go-sdk/base/config" "github.com/qiniu/logkit/conf" "github.com/qiniu/logkit/parser" parserconfig "github.com/qiniu/logkit/parser/confi...
package attachments import ( "bytes" "crypto/hmac" "crypto/sha256" "errors" "fmt" "hash" "io" "os" "path/filepath" "sync" "github.com/keybase/client/go/chat/attachments/progress" "github.com/keybase/client/go/chat/globals" "github.com/keybase/client/go/chat/types" "github.com/keybase/client/go/kbcrypto"...
/**------------------------------------------------------------** * @filename jiny/context.go * @author jinycoo * @version 1.0.0 * @date 2019-07-25 09:56 * @desc jiny - context **------------------------------------------------------------**/ package server import ( "context" "io" "math" "mime/mul...
// Code generated by protoc-gen-goten-go // File: edgelq/common/types/memo.proto // DO NOT EDIT!!! package ntt_memo import ( "fmt" "reflect" "sync" "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/proto" preflect "google.golang.org/protobuf/reflect/protoreflect" "google.golang.org/p...
package main import ( "fmt" "log" "math/rand" "time" "github.com/3zheng/railgun/PoolAndAgent" bs_proto "github.com/3zheng/railgun/protodefine" bs_types "github.com/3zheng/railgun/protodefine/mytype" bs_router "github.com/3zheng/railgun/protodefine/router" bs_tcp "github.com/3zheng/railgun/protodefine/tcpnet"...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.19.4 // source: vendor.protogen/bank_account/bank_account.proto package bank_account import ( context "context" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "google.golang.or...
package config import ( "fmt" "io/ioutil" "os" "path/filepath" "regexp" "strings" "time" "github.com/BurntSushi/toml" "github.com/mackerelio/mackerel-agent/logging" "github.com/mackerelio/mackerel-agent/util" ) var configLogger = logging.GetLogger("config") // `apibase` and `agentName` are set from build ...
package tokens import ( "bytes" "crypto" "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "encoding/binary" "fmt" "math/big" "strings" "time" "github.com/ugorji/go/codec" enforcerconstants "go.aporeto.io/trireme-lib/controller/internal/enforcer/constants" "go.aporeto.io/trireme-lib/controller/pkg/claimshea...
// // Author:: <NAME> (<<EMAIL>>) // Copyright:: Copyright 2020, Lacework Inc. // License:: Apache License, Version 2.0 // // 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://ww...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: components/automate-gateway/api/iam/v2/response/tokens.proto package response import ( fmt "fmt" common "github.com/chef/automate/components/automate-gateway/api/iam/v2/common" proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-ga...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: common/common.proto package common 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 a c...