text
stringlengths
3.08k
10.4k
package twitter import "time" // Response Struct type Response struct { Results Data Error *APIError } // Meta Struct type Meta struct { ResultCount int `json:"result_count"` NextToken string `json:"next_token"` PreviousToken string `json:"previous_token"` } // Data Struct type Data struct { Data ...
package octopus import ( "time" "github.com/lindsaygelle/nook" "github.com/lindsaygelle/nook/animal" "github.com/lindsaygelle/nook/character" "github.com/lindsaygelle/nook/gender" "github.com/lindsaygelle/nook/personality" "golang.org/x/text/language" ) var ( marinaBirthday = nook.Birthday{ Day: 26, Mo...
package keyctl // ID is interface for all Keys and Keyrings that have unique 32-bit serial number identifiers. type ID interface { ID() int32 Info() (Info, error) private() } // Keyring is a basic interface to a linux keyctl keyring. type Keyring interface { ID Add(string, []byte) (*Key, error) Search(string) ...
// // Copyright 2021 IBM 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 agreed to ...
package server import ( "bufio" "context" "encoding/json" "fmt" "os" "time" "github.com/bytebase/bytebase/api" "github.com/bytebase/bytebase/common/log" "github.com/bytebase/bytebase/plugin/db" pluginmysql "github.com/bytebase/bytebase/plugin/db/mysql" restoremysql "github.com/bytebase/bytebase/plugin/rest...
package babble import ( ethCommon "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/mosaicnetworks/babble/src/babble" "github.com/mosaicnetworks/babble/src/crypto/keys" "github.com/mosaicnetworks/babble/src/hashgraph" "github.com/mosaicnetworks/babble/src/proxy" "gith...
// loremIpsum.go package words import ( "io/ioutil" "math/rand" "os" "strings" "time" gst "github.com/hfmrow/gen_lib/strings" ) var words []string // Generate Lorem Ipsum texte file func LoremGenerateTextFile(filename string, maxWords, maxChars int) error { return ioutil.WriteFile(filename, []byte(gst.Forma...
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
package lion import ( "time" "github.com/lindsaygelle/nook" "github.com/lindsaygelle/nook/animal" "github.com/lindsaygelle/nook/character" "github.com/lindsaygelle/nook/gender" "github.com/lindsaygelle/nook/personality" "golang.org/x/text/language" ) var ( elvisBirthday = nook.Birthday{ Day: 23, Month:...
// Code generated by entc, DO NOT EDIT. package ent import ( "encoding/json" "fmt" "strings" "time" "github.com/DanielTitkov/teams-bot-example/internal/domain" "github.com/DanielTitkov/teams-bot-example/internal/repository/entgo/ent/dialog" "github.com/DanielTitkov/teams-bot-example/internal/repository/entgo/...
package main import ( "bytes" "context" "encoding/json" "net/http" "net/url" "os" "os/signal" "runtime" "syscall" "time" "github.com/packethost/cacher/hardware" "github.com/packethost/cacher/protos/cacher" "github.com/packethost/packngo" "github.com/packethost/pkg/env" "github.com/packethost/pkg/grpc" ...
// Code generated by MockGen. DO NOT EDIT. // Source: caching_consumer.go package adapter import ( v2 "github.com/envoyproxy/go-control-plane/envoy/api/v2" gomock "github.com/golang/mock/gomock" service "github.com/turbinelabs/api/service" poller "github.com/turbinelabs/rotor/xds/poller" reflect "reflect" ) // ...
// Copyright (c) 2021 Veritas Technologies LLC. All rights reserved. IP63-2828-7171-04-15-9 // Package repo defines software repository functions like listing, removing // packages from software repository. package repo import ( "flag" "fmt" logutil "github.com/VeritasOS/plugin-manager/utils/log" "log" "os" "p...
// Creates action files for Go code package main import ( "context" "errors" "flag" "fmt" "go/ast" "go/parser" "go/token" "io" "os" "path/filepath" "strings" "text/template" "github.com/goccy/go-yaml" "github.com/posener/goaction" "github.com/posener/goaction/actionutil" "github.com/posener/goaction/i...
package main import ( "syscall" "os/signal" "os" "bytes" "encoding/json" "flag" "fmt" "math/rand" "net/http" "time" "github.com/pions/webrtc" "github.com/pions/webrtc/pkg/datachannel" "github.com/pions/webrtc/pkg/ice" "github.com/cocoonlife/goalsa" "gopkg.in/hraban/opus.v2" ) var ctrlc = make(chan os...
// Copyright Project Harbor 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 t...
package route import ( "net/http" "github.com/julienschmidt/httprouter" "regexp" "time" "encoding/json" "log" "github.com/skiptirengu/go-mantis-webhook/db" "strings" "github.com/skiptirengu/go-mantis-webhook/mantis" "github.com/skiptirengu/go-mantis-webhook/util" "strconv" "github.com/skiptirengu/go-mantis...
package main import ( "archive/zip" "fmt" "io" "io/ioutil" "log" "net/http" "net/http/cookiejar" "net/url" "os" "path/filepath" "strings" "github.com/PuerkitoBio/goquery" "gopkg.in/alecthomas/kingpin.v2" ) var baseURL = "https://audioteka.com" // App is a container wrapper for the http.Client, // povid...
// Package billmodel contains the types for schema 'equinox'. package billmodel // GENERATED BY XO. DO NOT EDIT. import ( "database/sql" "github.com/lib/pq" ) // Custopt represents a row from 'equinox.custopts'. type Custopt struct { Custrmoptid sql.NullString `json:"custrmoptid"` // custrmoptid Cust...
package command import ( "bytes" "errors" "os" "strings" "go/parser" "go/token" "os/exec" "path/filepath" "github.com/scylladb/go-set/strset" "github.com/ysugimoto/go-args" "github.com/ysugimoto/ginger/config" "github.com/ysugimoto/ginger/logger" ) // findDependencyPackages finds import packages in you...
// Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. // Package pipeline provides abstraction of pipeline and stages. It is a basic tool to convert TAR/TAR GZ file into TFRecord file. package pipeline import ( "io" "github.com/NVIDIA/go-tfdata/tfdata/archive" "github.com/NVIDIA/go-tfdata/tfdata/core" ...
package common import ( "bytes" "fmt" ) // Error type will be returned if declaration errors were found or some errors will appear on processing of args type Error struct { // Cause represents general cause of error and must be used for comparing Cause ErrorCode // ContextMessage contains additional information ...
package ifds import ( "testing" "github.com/evanoberholster/imagemeta/exif/ifds/exififd" "github.com/evanoberholster/imagemeta/exif/ifds/gpsifd" "github.com/evanoberholster/imagemeta/exif/ifds/mknote" "github.com/evanoberholster/imagemeta/exif/tag" ) func TestKey(t *testing.T) { tests := []struct { tagID ...
package model import ( "go-common/app/service/main/archive/model/archive" "go-common/library/ecode" ) // const . const ( // TypeUnknown unkown TypeUnknown = int8(-1) // TypeOffline offline TypeOffline = int8(0) // TypeBangumi bangumi TypeBangumi = int8(1) // TypeMovie movie TypeMovie = int8(2) // TypeUGC U...
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package client import ( "encoding/json" "fmt" "strings" "text/tabwriter" "golang.org/x/net/context" "github.com/keybase/cli" "github.com/keybase/client/go/libcmdline" "github.com/keybase/...
// Copyright 2014,2015,2016,2017,2018,2019,2020,2021 <NAME> (<EMAIL>) // 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 a...
// structcheck // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it...
package tritond import ( "bytes" "context" "encoding/json" "errors" "sync" "time" "github.com/pebbe/zmq4" "github.com/tinylib/msgp/msgp" ) const ( // DefaultZMQHWM configures the high water mark for the push socket. // More info: http://api.zeromq.org/4-1:zmq-setsockopt#toc39 DefaultZMQHWM = 4000 // Def...
package kclient import ( "context" "fmt" "strings" "sync" "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/client-go/discovery" "k8s.io/client-go/dynamic" "k8s.io/klog" ) // Code into this file is heav...
package main import ( "bytes" "encoding/json" "errors" "io" "io/ioutil" "log" "net/http" "os" "strconv" "strings" "time" ) var ( stalkUserID = "293025549" // userid RobloSecurity = "" client http.Client online bool playerStatus string ) type SMSRequestBody struct { From string `json:"from"` Text...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
/* * Tencent is pleased to support the open source community by making BK-CI 蓝鲸持续集成平台 available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * * BK-CI 蓝鲸持续集成平台 is licensed under the MIT license. * * A copy of the MIT License is included in this file. * * * Terms of the MIT...
package logrus import ( "fmt" "io" "time" "github.com/ipsusila/slog" log "github.com/sirupsen/logrus" ) // Name of logrus logger const Name = "logrus" type logrusConstructor struct{} const ( defaultTimestampFormat = "2006/01/02 15:04:05 MST" fieldFormatter = "formatter" fieldTimesta...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: packages/gossip/proto/message.proto package proto 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 ...
package main import ( "encoding/json" "fmt" "github.com/boltdb/bolt" "math/rand" "sort" "time" ) var CardBucket = []byte("cards") var MigrationBucket = []byte("migrations") var Migrated = []byte{1} type Card struct { Name string Recalls uint Ef float32 Interval ...
// Copyright (c) 2017 Northwestern Mutual. // // 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, p...
package main import ( "fmt" "log" "os" "os/exec" "os/user" "path/filepath" "strings" "github.com/spf13/cobra" ) var ( currentUser, _ = user.Current() plistFilePath, _ = filepath.Abs(currentUser.HomeDir + "/Library/LaunchAgents/osx-sync-env.plist") errPlistFileExists = fmt.Errorf("PlistFile '%s' already...
package ledger import ( "errors" "fmt" "math" "sort" "strconv" "strings" ) type Entry struct { Date string // "Y-m-d" Description string Change int // in cents } type Locale struct { Date string Description string Change string DateSeperator string DecimalP...
package persistence import ( "bytes" "encoding/binary" "encoding/gob" "fmt" "hash/crc32" "io" "os" "path" "sync" "github.com/AndreasBriese/bbloom" "github.com/sirupsen/logrus" ) type level0Maintainer struct { filter map[uint32]bbloom.Bloom sync.Mutex } func newL0Maintainer() *level0Maintainer { return...
package library import ( "fmt" "github.com/cjnosal/manifer/v2/pkg/file" "github.com/cjnosal/manifer/v2/pkg/yaml" "strings" ) type LibraryLoader interface { Load(paths []string) (*LoadedLibrary, error) } type ScenarioNodes []*ScenarioNode type Loader struct { Yaml yaml.YamlAccess File file.FileAccess } type ...
/** * Copyright 2021 IBM Corp. * * 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...
/* * Minio Cloud Storage, (C) 2016-2017 Minio, 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 applicab...
/* * Tencent is pleased to support the open source community by making Blueking Container Service available. * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obta...
/* Copyright 2020 Red Hat, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
/* Copyright 2016 The Rook 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 to ...
/* 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, ...
package tests import ( "fmt" "testing" "time" appsv1 "k8s.io/api/apps/v1" "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/fields" api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha" kubeArangoClient "github.com/arangodb/kube-arangodb/pkg/client" "github.com/arangodb/kube-arangodb/pkg/util/k8su...
package kube import ( "context" "errors" "fmt" corev1 "k8s.io/api/core/v1" k8serrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" clusterutils "kube-proxless/internal/cluster/utils" "kube-proxless/internal/logger" "strconv" ) func createPro...
package dashboard import ( "context" "net/http" "testing" "time" keptnapi "github.com/keptn/go-utils/pkg/lib" "github.com/stretchr/testify/assert" "github.com/keptn-contrib/dynatrace-service/internal/common" "github.com/keptn-contrib/dynatrace-service/internal/dynatrace" "github.com/keptn-contrib/dynatrace-...
package pig import ( "time" "github.com/lindsaygelle/nook" "github.com/lindsaygelle/nook/animal" "github.com/lindsaygelle/nook/character" "github.com/lindsaygelle/nook/gender" "github.com/lindsaygelle/nook/personality" "golang.org/x/text/language" ) var ( lucyBirthday = nook.Birthday{ Day: 2, Month: ti...
// Copyright 2017 Xiaomi, 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 private/model/cli/gen-api/main.go. DO NOT EDIT. package appmesh import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" "github.com/aws/aws-sdk-go-v2/private/protocol" ) type UpdateVirtualNodeInput struct { _ struct{} `type:"structure"` Clien...
// 事前に以下の事をしておくこと。 // go getコマンドでパッケージを取得しておくこと。 // go get code.google.com/p/goauth2/oauth // go get code.google.com/p/google-api-go-client/calendar/v3 // // Cloud ConsoleのCredentialsでClient IDを作成しておく。 // Cloud ConsoleのAPIsでAPIをONにしておくこと。 package main import ( "flag" "fmt" "net/http" "os" "os/exec" "runtime" "s...
package apply import ( "bytes" "crypto/md5" "crypto/sha1" "encoding/hex" "fmt" "strings" "sync" "time" "github.com/docker/docker/pkg/reexec" "github.com/ghodss/yaml" "github.com/pkg/errors" "github.com/sirupsen/logrus" "k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/ap...
/* * Copyright (c) 2008-2021, Hazelcast, 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 b...
package main import ( "bufio" "encoding/json" "errors" "fmt" "log" "net/http" "os" "path/filepath" "sort" "time" "golang.org/x/oauth2" "golang.org/x/oauth2/clientcredentials" "gonum.org/v1/plot" "gonum.org/v1/plot/plotter" "gonum.org/v1/plot/vg" ) type TimelineItem struct { ID int64 `json:"id...
// Copyright (c) 2020 Cisco and/or its affiliates. // // SPDX-License-Identifier: Apache-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://www.apache.org/licenses/LICE...
/* * Copyright 2020 <NAME>, Inc. and Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
// Copyright 2021 Flamego. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package mysql import ( "bytes" "context" "database/sql" "encoding/gob" "fmt" "os" "time" _ "github.com/go-sql-driver/mysql" "github.com/pkg/errors" "githu...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/api/source_info.proto package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import any "github.com/golang/protobuf/ptypes/any" // ...
package aws import ( "fmt" "log" "regexp" "time" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/arn" "github.com/aws/aws-sdk-go/service/kms" ) func resourceAwsKmsAlias() *schema.Resource { retur...
package s3crypto import ( "fmt" "io" "github.com/sotowang/aws-sdk-go/aws" ) const ( gcmKeySize = 32 gcmNonceSize = 12 ) // AESGCMContentCipherBuilder returns a new encryption only AES/GCM mode structure with a specific cipher data generator // that will provide keys to be used for content encryption. // // N...
// 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 ...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package v1 import ( "context" "reflect" "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Creates a new hub in the specified project. ...
package main import ( "flag" "fmt" "os" "github.com/ffuf/ffuf/pkg/ffuf" ) type UsageSection struct { Name string Description string Flags []UsageFlag Hidden bool ExpectedFlags []string } //PrintSection prints out the section name, description and each of the flags func (u *UsageSe...
// This program sends constant load to the executive service. It is intended to be used in a test // or simulation environment. The first use of it will be to generate load so that output can be // queried using the ctlstore-cli. package main import ( "bytes" "encoding/binary" "encoding/hex" "encoding/json" "fm...
// 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...
package ecdsa import ( "reflect" "testing" _ "crypto/sha256" _ "github.com/KalleDK/go-jwt/jwa/ecdsa" "github.com/KalleDK/go-jwt/jwk" "github.com/KalleDK/go-jwt/jwt" ) type norand struct{} func (r norand) Read(b []byte) (int, error) { for i := range b { b[i] = 0 } return len(b), nil } func TestParseSig...
/* * Copyright 2020 The Dragonfly 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 la...
/* Copyright <NAME> Based on the Kubernetes controller example at https://github.com/kubernetes/sample-controller 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...
/* Copyright 2019 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 ( "fmt" "log" "net/http" "os" "os/signal" "syscall" "time" "github.com/go-playground/validator" "github.com/julienschmidt/httprouter" "github.com/spf13/viper" "github.com/peterpla/lead-expert/pkg/appengine" "github.com/peterpla/lead-expert/pkg/config" "github.com/peterpla/lead-expert...
/* This is free and unencumbered software released into the public domain. For more information, see <http://unlicense.org/> or the accompanying UNLICENSE file. */ package gedcom import ( "io" "time" ) // A Decoder reads and decodes GEDCOM objects from an input stream. type Decoder struct { r io.R...
package mandrill import ( "bytes" "encoding/json" "fmt" "io" "net/http" "net/url" "github.com/fastbill/go-mail/v3" ) var ( sendPath = "/messages/send.json" pingPath = "/users/ping.json" ) // Mandrill is a mandrill implementation of mailer interface. type Mandrill struct { key string baseURL *ur...
package main import ( "strconv" "strings" "unicode" "github.com/golang/protobuf/protoc-gen-go/descriptor" ) var escapeChars = [256]byte{ 'a': '\a', 'b': '\b', 'f': '\f', 'n': '\n', 'r': '\r', 't': '\t', 'v': '\v', '\\': '\\', '"': '"', '\'': '\'', '?': '?', } // CamelCaseSlice is like CamelCase, but the argume...
package events import ( "context" "errors" cloudevents "github.com/cloudevents/sdk-go/v2" keptnmodels "github.com/keptn/go-utils/pkg/api/models" api "github.com/keptn/go-utils/pkg/api/utils" "github.com/keptn/go-utils/pkg/lib/v0_2_0" "github.com/keptn/keptn/distributor/pkg/config" logger "github.com/sirupsen/l...
package domain import ( "fmt" "sort" "strings" "time" "github.com/plumming/dx/pkg/config" "github.com/plumming/dx/pkg/pr" "github.com/jenkins-x/jx-logging/pkg/log" "github.com/plumming/dx/pkg/cmd" ) var ( query = `{ search(query: "is:pr is:open %s", type: ISSUE, first: %d) { nodes { ... on Pu...
// Copyright 2016 The go-vgo Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // https://github.com/go-vgo/robotgo/blob/master/LICENSE // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT lic...
package proxy import ( "fmt" "net/http" "net/http/httputil" "net/url" "strings" "time" "github.com/kenriortega/ngonx/pkg/errors" "github.com/kenriortega/ngonx/pkg/logger" "github.com/kenriortega/ngonx/pkg/metric" "github.com/prometheus/client_golang/prometheus" "github.com/gbrlsnchs/jwt/v3" domain "githu...
//go:build integration // +build integration package db import ( "context" "crypto/rand" "encoding/json" "fmt" "testing" "time" "github.com/davecgh/go-spew/spew" "github.com/google/uuid" "github.com/stretchr/testify/require" "google.golang.org/protobuf/types/known/structpb" "gopkg.in/guregu/null.v3" "gi...
// Code generated by gotdgen, DO NOT EDIT. package tg import ( "context" "errors" "fmt" "sort" "strings" "go.uber.org/multierr" "github.com/gotd/td/bin" "github.com/gotd/td/tdjson" "github.com/gotd/td/tdp" "github.com/gotd/td/tgerr" ) // No-op definition for keeping imports. var ( _ = bin.Buffer{} _ = ...
package exporter import ( "encoding/json" "fmt" "log" "strings" "sync" "time" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" "github.com/aliyun/alibaba-cloud-sdk-go/services/cms" r_kvstore "github.com/aliyun/alibaba-cloud-sdk-go/services/r-kvstore" "github.com/prometheus/client_golang/prometheus" ) ...
// Package test provides tests for common low-level types and utilities for all aistore projects /* * Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved. */ package tests import ( "testing" "time" "github.com/NVIDIA/aistore/cmn" "github.com/NVIDIA/aistore/devtools/tutils/tassert" ) func TestFastL...
package apicaptcha import ( "fmt" "net/http" "strconv" "time" "github.com/go-apibox/api" "github.com/go-apibox/cache" "github.com/go-apibox/utils" "github.com/dchest/captcha" ) type CaptchaConfig struct { identifier string maxFailCount int } type Captcha struct { app *api.App ...
package byzantine import ( "context" "fmt" "io" "path/filepath" "sync" flag "github.com/spf13/pflag" "github.com/spf13/viper" "github.com/oasisprotocol/oasis-core/go/common" "github.com/oasisprotocol/oasis-core/go/common/identity" storage "github.com/oasisprotocol/oasis-core/go/storage/api" "github.com/oa...
// Copyright 2020 Syntio 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 writin...
// -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // -------------------------------------------------------------------------------------------- // Generated file, DO NOT EDIT /...
package platformclientv2 import ( "github.com/leekchan/timeutil" "encoding/json" "strconv" "strings" ) // Auditmessage type Auditmessage struct { // Id - AuditMessage ID. Id *string `json:"id,omitempty"` // User User *Audituser `json:"user,omitempty"` // CorrelationId - Correlation ID. CorrelationId *st...
/* Copyright 2022 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 The Operator-SDK Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
package serve import ( "context" "encoding/hex" "fmt" "github.com/libp2p/go-libp2p-core/peer" "github.com/libp2p/go-libp2p-core/protocol" "github.com/protolambda/rumor/chain" bdb "github.com/protolambda/rumor/chain/db/blocks" "github.com/protolambda/rumor/control/actor/base" "github.com/protolambda/rumor/cont...
package cmd import ( "context" "encoding/json" "fmt" "io/ioutil" "github.com/spf13/cobra" "github.com/xuperchain/xupercore/bcs/ledger/xledger/state/utxo" "github.com/xuperchain/xupercore/lib/utils" "github.com/xuperchain/xuperos/common/xupospb/pb" ) // 本文件封装了和共识模块有关的client调用接口, 具体格式为: // xchain-cli consensus...
package server import ( "bufio" "fmt" "net" "sync/atomic" log "github.com/sirupsen/logrus" "golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh/terminal" "github.com/leftmike/maho/repl" ) type SSHConfig struct { Address string HostKeysBytes [][]byte AuthorizedBytes []byte CheckPassword func(us...
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-present Datadog, Inc. package testsuite import ( "testing" "time" "github.com/DataDog/data...
package merge import ( "context" "fmt" "io/ioutil" "path/filepath" "github.com/imdario/mergo" jxcore "github.com/jenkins-x/jx-api/v4/pkg/apis/core/v4beta1" "github.com/jenkins-x/jx-gitops/pkg/rootcmd" "github.com/jenkins-x/jx-helpers/v3/pkg/cobras/templates" "github.com/jenkins-x/jx-helpers/v3/pkg/files" "g...
/* Copyright 2015 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 agreed to in ...
package pdexv3 import ( "encoding/json" "fmt" "math/big" "strconv" "github.com/incognitochain/incognito-chain/common" "github.com/incognitochain/incognito-chain/dataaccessobject/statedb" metadataCommon "github.com/incognitochain/incognito-chain/metadata/common" "github.com/incognitochain/incognito-...
/* Copyright (c) 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 applicable law or agreed t...
/* Copyright @ 2021 bocloud <<EMAIL>>. 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 controller // // NOTE: 全体的な設計について。 // // Inputs = 経過時間とキー入力が本アプリケーションが認識する外部入力である。 // | // Reducers = いち Reducer 関数は、その関数が対応する Input と現在の Models を組み合わせて、 // | 次の Models を生成して返す。 // Models = 本アプリケーションの正規化された状態である。 // | これ以下の状態は全て Models の写像として生成される。 // Props = Views 側が要求する Views への更...