text
stringlengths
5.51k
28.1k
package validate import ( "bytes" "crypto/sha256" "github.com/araddon/dateparse" urn "github.com/leodido/go-urn" "net" "net/url" "os" "strings" ) // FormatType is used for format validator type definitions. type FormatType string // Following string formats are available. // E.g. `validate:"format=email"` co...
package sro import ( "crypto/aes" "crypto/cipher" "crypto/md5" "crypto/rand" "encoding/base64" "encoding/hex" "fmt" "io" "io/ioutil" "os" "reflect" "regexp" "strings" "time" o "github.com/onsi/gomega" exutil "github.com/openshift/openshift-tests-private/test/extended/util" "k8s.io/apimachinery/pkg/ut...
// Copyright (c) 2015-2018 <NAME> (<EMAIL>), All rights reserved. // resty source code and usage is governed by a MIT style // license that can be found in the LICENSE file. package resty import ( "bytes" "crypto/tls" "errors" "io/ioutil" "net/http" "net/url" "path/filepath" "reflect" "strconv" "strings" "...
/* * Copyright (c) 2020 PANTHEON.tech s.r.o. 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 requir...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.14.0 // source: mesh/v1alpha1/dataplane_overview.proto package v1alpha1 import ( _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" protoreflect "google.golang.o...
// Fast downloader of OONI reports using the OONI API. Syncs a local directory // with all reports satisfying a given API query. Only downloads reports that // are not already present locally. // // Example usage: // ooni-sync -xz -directory reports.tcp_connect.201701 test_name=tcp_connect since=2017-01-01 until=2017-...
package renter // projectdownloadinit.go implements an algorithm to select the best set of // initial workers for completing a download. This algorithm is balancing // between two different criteria. The first is the amount of time that the // download will take to complete - the algorithm tries to minimize this - and...
// 协议类型 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.14.0 // source: swaggerdemo.proto // 包名 package swaggerdemo import ( context "context" proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options...
package dhcpv6 import ( "fmt" ) // TransactionID is a DHCPv6 Transaction ID defined by RFC 3315, Section 6. type TransactionID [3]byte // String prints the transaction ID as a hex value. func (xid TransactionID) String() string { return fmt.Sprintf("0x%x", xid[:]) } // MessageType represents the kind of DHCPv6 me...
// Copyright 2019 The Hugo 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 ...
package jwk import ( "bytes" "crypto" "encoding/base64" "encoding/json" "fmt" "github.com/pkg/errors" "github.com/smallstep/cli/crypto/randutil" "github.com/smallstep/cli/flags" "github.com/smallstep/cli/jose" "github.com/smallstep/cli/ui" "github.com/smallstep/cli/utils" "github.com/urfave/cli" "go.step...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: renderer_service.proto package render import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync...
/* * Copyright 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
package main import ( "flag" "fmt" "runtime" "strings" "time" "io" "os" "sort" "github.com/huajiao-tv/qchat/client/saver" "github.com/huajiao-tv/qchat/logic" ) var ( testcase string saveraddr string receiver string sender string msgid int64 count int chatC...
package ldap import ( "crypto/tls" "errors" "strconv" "strings" "sync" "time" "github.com/go-ldap/ldap/v3" "github.com/liut/staffio-backend/ldap/pool" "github.com/liut/staffio-backend/model" ) // PoolStats ... type PoolStats = pool.Stats // Group ... type Group = model.Group // People ... type People = m...
// Copyright (c) 2016-2017. <NAME> & teris.io. All rights reserved. // See the LICENSE file in the project root for licensing information. // Original algorithm: // Copyright (c) 2015 <NAME>, contributors: https://github.com/dylang/shortid. // MIT-license as found in the LICENSE file. // Seed computation: based on Th...
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
package main import ( "fmt" sqlite "github.com/bvinc/go-sqlite-lite/sqlite3" "time" ) // StorageConn is a database connection from a specific Storage with application-specific methods to query the database. // It implements SQLiteConn. type StorageConn struct { actual SQLiteConn } /***** Users ******/ // Read ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: yandex/cloud/mdb/redis/v1/backup.proto package redis import ( timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl ...
package contorller import ( "context" "fmt" "time" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/kubernetes" "...
package mysqlbatch import ( "context" "database/sql" "sync" "time" "github.com/moiot/gravity/pkg/position_repos" "github.com/moiot/gravity/pkg/inputs/helper" "github.com/juju/errors" "github.com/mitchellh/mapstructure" log "github.com/sirupsen/logrus" "github.com/moiot/gravity/pkg/config" "github.com/mo...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.9.1 // source: proto/telemetry.proto package tpoller_server import ( empty "github.com/golang/protobuf/ptypes/empty" timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/p...
/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
/* Copyright 2016-2020 <NAME>. All right 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 main import ( "bufio" "context" "flag" "fmt" "io/ioutil" "log" "os" "path" "path/filepath" "sort" "strconv" "strings" "sync" "time" "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes" pcounter "github.com/synerex/proto_pcounter" api "github.com/synerex/synerex_api" pb "gi...
// SPDX-License-Identifier: Apache-2.0 // // Copyright (C) 2021 Renesas Electronics Corporation. // Copyright (C) 2021 EPAM Systems, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at /...
package main import ( "fmt" "log" "strings" "time" ) func seedFormat(t time.Time) string { if time.Now().After(t) { return fmt.Sprintf("%04d,%03d,%s", t.Year(), t.YearDay(), t.Format("15:04:05.0000")) } return "" } type Blockette struct { Type int Content string } func (b Blockette) String() string { ...
// // Copyright (c) 2014-2019 Cesanta Software Limited // 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 // // Un...
// Copyright 2019 Hewlett Packard Enterprise Development LP package kubernetes import ( "crypto/sha256" b64 "encoding/base64" "fmt" "os" "reflect" "strings" "time" log "github.com/hpe-storage/common-host-libs/logger" "github.com/hpe-storage/common-host-libs/model" crd_v1 "github.com/hpe-storage/k8s-custom-...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. package sandbox import ( "golang.org/x/sys/unix" ) const NATIVE_AUDIT_ARCH = AUDIT_ARCH_X86_64 var AllowedSyscalls = []SeccompSyscall{ {Syscall: unix.SYS_ACCEPT}, {Syscall: unix.SYS_ACCEPT4}, {Syscall...
package topology import ( "context" "encoding/json" "errors" "fmt" "os/user" "reflect" "strconv" "github.com/gstormlee/gstorm/core/etcd" "github.com/gstormlee/gstorm/core/send" "github.com/gstormlee/gstorm/core/tuple" "github.com/gstormlee/gstorm/core/utils" "github.com/gstormlee/gstorm/core/topology/gro...
package dyno import ( "context" "fmt" "github.com/aws/aws-sdk-go-v2/feature/dynamodb/expression" ddb "github.com/aws/aws-sdk-go-v2/service/dynamodb" ddbTypes "github.com/aws/aws-sdk-go-v2/service/dynamodb/types" "github.com/ericmaustin/dyno/condition" "sync" ) // Scan executes Scan operation and returns a Scan...
package lockedresourcecontroller import ( "bytes" "context" "encoding/json" "errors" "fmt" "regexp" "strings" "sync" "github.com/go-logr/logr" "github.com/redhat-cop/operator-utils/pkg/util" "github.com/redhat-cop/operator-utils/pkg/util/apis" "github.com/redhat-cop/operator-utils/pkg/util/lockedresourcec...
// Copyright 2016 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 ( "math" "math/rand" ) const ( fakeRegionBox = (100000 * 9100) + 0 ) func kmPerLat() float64 { return 111.1 } func kmPerLng(lat float64) float64 { latRadians := lat * math.Pi / 180.0 cos := math.Cos(latRadians) if cos <= 0.01 { cos = 0.01 } return 111.1 * cos } func distKm(lat0, lng0...
// Code generated by protoc-gen-go. // source: google.golang.org/genproto/googleapis/api/serviceconfig/auth.proto // DO NOT EDIT! package google_api import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = prot...
/* * * k6 - a next-generation load testing tool * Copyright (C) 2017 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...
//go:build linux // +build linux package cache import ( "bytes" "context" "fmt" "io" "io/ioutil" "os" "path/filepath" "strings" "syscall" "github.com/containerd/containerd/archive" ctdcompression "github.com/containerd/containerd/archive/compression" "github.com/containerd/containerd/content" "github.co...
package tengo import ( "database/sql" "errors" "fmt" "strings" ) // Schema represents a database schema. type Schema struct { Name string CharSet string Collation string tables []*Table instance *Instance } // TablesByName returns a mapping of table names to Table struct values, for // all tables...
package complaints import ( "bytes" "fmt" "html/template" "net/http" "net/url" "regexp" "sort" "strings" "time" "appengine" "appengine/urlfetch" "appengine/taskqueue" "appengine/mail" "github.com/skypies/util/date" "github.com/skypies/complaints/bksv" "github.com/skypies/complaints/complaintdb" "gi...
package view import ( "github.com/viant/sqlx/io" "github.com/viant/xunsafe" "reflect" "sync" "unsafe" ) //Visitor represents visitor function type Visitor func(value interface{}) error //Collector collects and build result from view fetched from Database //If View or any of the View.With MatchStrategy support P...
package main import ( "bufio" "io/ioutil" "strings" "time" "gopkg.in/yaml.v3" "fmt" "log" "net" "os" "github.com/gotk3/gotk3/gdk" "github.com/gotk3/gotk3/glib" "github.com/gotk3/gotk3/gtk" ) // https://pkg.go.dev/github.com/gotk3/gotk3/gtk?utm_source=godoc // https://docs.gtk.org/gtk3 const gladeTempl...
package fio import ( "bytes" "encoding/json" "github.com/fioprotocol/fio-go/eos" "io/ioutil" "sync" ) const ( FeeAddNft = "add_nft" FeeAddPubAddress = "add_pub_address" FeeAuthDelete = "auth_delete" FeeAuthLink = "auth_link" FeeAuthUpdate = "auth_update" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/resources/campaign_draft.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/goog...
package statemachine import ( "bufio" "fmt" "os" "reflect" "regexp" "strings" "time" "github.com/google/uuid" "github.com/marrbor/golog" ) const ( // message for goroutine changeState = "state changed" pleaseStop = "stop!" stopped = "stopped" // do-action tick timer duration when do-action is not...
/* Download and collects candles Downloaded candles will be cached and stored, if requested range are not represented in cache, download range and combine with existing. */ package candles import ( "DaruBot/internal/models" "DaruBot/pkg/errors" "DaruBot/pkg/logger" "DaruBot/pkg/tools/numbers" "encoding/json" "fm...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/mutate_job.proto package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v1/resources" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import wrappers "github.com/...
package cmd import ( "context" "fmt" "os" "path/filepath" "github.com/AlecAivazis/survey/v2" "github.com/fatih/color" "github.com/mattn/go-runewidth" sbo "github.com/redhat-developer/service-binding-operator/apis/binding/v1alpha1" "github.com/rodaine/table" "github.com/spf13/cobra" metav1 "k8s.io/apimachin...
/* Copyright 2021 Alibaba Group Holding Limited. 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 wr...
/* Copyright © 2020 <NAME>. Contacts: <<EMAIL>> Copyright © 2020 Eltal<NAME>. Contacts: <<EMAIL>> 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/lic...
// Copyright 2015 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: orc8r/protos/mconfig.proto package protos import ( fmt "fmt" proto "github.com/golang/protobuf/proto" any "github.com/golang/protobuf/ptypes/any" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal...
// Copyright (c) 2019, <NAME>, All rights reserved. package gtt import ( "context" "fmt" "io" "io/ioutil" "net/http" "sort" "strconv" "strings" "time" "github.com/ohler55/ojg/jp" "github.com/ohler55/ojg/oj" "github.com/ohler55/ojg/pretty" "github.com/ohler55/ojg/sen" ) // Step is a step in a use case. ...
package syntax import ( "strings" "github.com/jrecuero/go-cli/graph" "github.com/jrecuero/go-cli/tools" ) // Worker represent the function for any complete or help worker. type Worker = func(cn *ContentNode, tokens []string) interface{} // Matcher represents the matcher for a given graph. type Matcher struct { ...
package tokenizer import ( "fmt" "log" "reflect" ) type PaddingDirection int const ( Left PaddingDirection = iota Right ) // Encoding represents the output of tokenizer type Encoding struct { Ids []int // ID produced by the `tokenizer` TypeIds []int // Type of the ID Tokens ...
//go:generate go run gen.go -out atomic_amd64.s -stubs atomic_amd64.go // +build ignore package main import ( "bytes" "fmt" "io/ioutil" "regexp" "strings" . "github.com/mmcloughlin/avo/build" "github.com/mmcloughlin/avo/operand" "github.com/mmcloughlin/avo/reg" ) type R operand.Op type Fn func(R, []R) []R ...
package main // Pull down pool statistics from Zergpool's REST and store into a database, creating schema as necessary. // ZergPoolConfig.hcl controls the configuration for this program. Important settings such as database // connectivity etc. are stored there. import ( "encoding/json" "errors" "fmt" "io/ioutil" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.15.6 // source: eth/ext/options.proto package ext import ( reflect "reflect" proto "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" protoreflect "google....
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/resources/campaign_criterion_simulation.proto package resources import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" common "google.golang.org/genproto/goo...
package allocator import ( "sort" "strings" pr "go.gazette.dev/core/allocator/sparse_push_relabel" "go.gazette.dev/core/keyspace" ) // sparseFlowNetwork models an allocator.State as a flow network, representing // Items, "Zone Items" (which is an Item within the context of a single zone), // and Members. Pictori...
package mat import ( "fmt" "strings" ) // Mat4 represents 4x4 matrix stored by (column * 4 + row) index. // (Column is stored first to optimize memory access when transforming vector.) type Mat4 [16]float32 func (m Mat4) Floats() [16]float32 { return m } func (m Mat4) Mul(a Mat4) Mat4 { var out Mat4 for i := 0...
// Copyright © 2013 Galvanized Logic Inc. // Use is governed by a FreeBSD license found in the LICENSE file. package device // The microsoft (windows) native layer. This wraps the c functions that // wrap the microsoft API's (where the real work is done). // // The following block is C code and cgo directvies. // /...
package database import ( "database/sql" "encoding/json" "errors" "fmt" "strings" "time" "github.com/paulmach/orb/geojson" // "github.com/sjsafranek/logger" ) type User struct { Username string `json:"username"` Password string `json:"-"` Email string `json:"email"` Apikey strin...
// Copyright 2019 GRAIL, Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package diviner implements common data structures to support a // black-box optimization framework in the style of Google Vizier // [1]. Implementations of op...
// Copyright 2020 Thinkium // // 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 2021 Mirantis 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 distri...
package server import ( "context" "encoding/json" "fmt" "io" "github.com/ghodss/yaml" "github.com/xeipuuv/gojsonschema" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" "github.com/runmachine-io/runmachine/pkg/api/types" "github.com/runmachine-io/runmachine/pkg/errors" "github.com/runmachine...
package expr_test import ( "context" "fmt" "reflect" "strings" "testing" "github.com/leftmike/maho/evaluate/expr" "github.com/leftmike/maho/parser" "github.com/leftmike/maho/sql" ) func TestEval(t *testing.T) { cases := []struct { s string r string }{ {"1 + null", sql.NullString}, {"null + 2.3", sq...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.3 // source: demo_v2.proto package user import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/pro...
package imageblk import ( "fmt" "math" "strconv" "sync" "github.com/janelia-flyem/dvid/dvid" "github.com/janelia-flyem/dvid/server" "github.com/janelia-flyem/dvid/storage" ) // ArbSlice is a 2d rectangle that can be positioned arbitrarily in 3D. type ArbSlice struct { topLeft dvid.Vector3d topRight dvi...
package draw import ( "encoding/binary" "fmt" "io/ioutil" "log" "os" "path" "strconv" "strings" "sync" "syscall" ) // Display locking: // The Exported methods of Display, being entry points for clients, lock the Display structure. // The unexported ones do not. // The methods for Font, Image and Screen also...
package worker import ( "encoding/json" "errors" "fmt" "io" "net/url" "os" "path" "strings" "time" "code.cloudfoundry.org/clock" "code.cloudfoundry.org/garden" "code.cloudfoundry.org/lager" "github.com/concourse/atc" "github.com/concourse/atc/db" "github.com/concourse/baggageclaim" ) var ErrUnsupporte...
// Copyright 2014 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ht import ( "encoding/json" "errors" "fmt" "testing" ) var jr = Response{BodyStr: `{"foo": 5, "bar": [1,2,3]}`} var ar = Response{BodyStr: `["jo nesbo",[...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: msg.proto package proto_resources import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "syn...
// Package bot is a Hubot style bot that sits a microservice environment package bot import ( "fmt" "log" "os" "regexp" "sort" "strings" "sync" "time" "github.com/micro/cli" "github.com/micro/go-micro" "github.com/micro/go-bot/command" "github.com/micro/go-bot/input" proto "github.com/chremoas/chremoas...
package radius import ( "errors" "crypto" _ "crypto/md5" "encoding/binary" "net" "time" ) type PacketCode uint8 const ( AccessRequest PacketCode = 1 AccessAccept PacketCode = 2 AccessReject PacketCode = 3 AccountingRequest PacketCode = 4 AccountingResponse PacketCode = 5 AccessChalleng...
/* Copyright 2014 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
// Copyright 2016 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 shell import ( "context" "errors" "fmt" "io" "os" "strings" "sync" "github.com/nyaosorg/go-windows-findfile" "github.com/nyaosorg/nyagos/defined" "github.com/nyaosorg/nyagos/nodos" ) var WildCardExpansionAlways = false var outputMutex sync.Mutex func Message(format string, a ...interface{}) { o...
// Copyright 2018 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...
package admin import ( "fmt" "log" "net" "os" "strconv" "strings" "Stowaway/node" "Stowaway/share" "Stowaway/utils" ) var AdminStatus *utils.AdminStatus var Route *utils.SafeRouteMap func init() { Route = utils.NewSafeRouteMap() AdminStatus = utils.NewAdminStatus() } // NewAdmin 启动admin func NewAdmin(c ...
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package webpagereplay import ( "bufio" "bytes" "compress/gzip" "encoding/json" "errors" "fmt" "io" "io/ioutil" "log" "net/http" "net/url" "os...
package coordinator import ( "errors" "fmt" "sort" "sync" "sync/atomic" "time" "github.com/cnosdatabase/cnosdb" "github.com/cnosdatabase/cnosdb/meta" "github.com/cnosdatabase/db/models" "github.com/cnosdatabase/db/tsdb" "go.uber.org/zap" ) // The keys for statistics generated by the "write" module. const ...
package scrive const ( viewer = "viewer" signingParty = "signing_party" approver = "approver" unknown = "unknown" notDelivered = "not_delivered" delivered = "delivered" deferred = "deferred" email = "email" mobile = "mobile" emailMobile = "ema...
package tar import ( "archive/tar" "fmt" "io" "io/ioutil" "os" "path/filepath" "regexp" "strings" "time" "github.com/openshift/source-to-image/pkg/util/fs" utilglog "github.com/openshift/source-to-image/pkg/util/glog" s2ierr "github.com/openshift/source-to-image/pkg/errors" "github.com/openshift/source-...
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package events import ( "errors" "fmt" "reflect" "regexp" "sync" "time" "github.com/golang/protobuf/proto" "github.com/hyperledger/fabric-sdk-go/api/apiconfig" fab "github.com/hyperledger/fabric-sdk-go/api...
package cmd import ( "encoding/json" "fmt" "github.com/ci123chain/ci123chain/pkg/abci/types" grpctypes "github.com/ci123chain/ci123chain/pkg/abci/types/grpc" accountRpc "github.com/ci123chain/ci123chain/pkg/account/rest" "github.com/ci123chain/ci123chain/pkg/app/module" "github.com/ci123chain/ci123chain/pkg/cli...
package dialect import ( "database/sql" "fmt" "strconv" "strings" ) var _ PrimaryKeyModifier = &MySQL{} var ( mysqlColumnTypes = []*ColumnType{ { Types: []string{"VARCHAR", "TEXT", "MEDIUMTEXT", "LONGTEXT", "CHAR"}, GoTypes: []string{"string"}, GoNullableTypes: []string{"*string", "...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.12.3 // source: automate-gateway/api/legacy/legacy.proto package legacy import ( context "context" _ "github.com/chef/automate/api/external/annotations/iam" proto "github.com/golang/protobuf/proto" empty "...
/* kdb.go _________________________________ Manipulating 'database' for guild data for Kylixor Discord Bot <NAME> kylixor.com */ package main import ( "database/sql" "strconv" "time" "github.com/bwmarrin/discordgo" _ "github.com/go-sql-driver/mysql" ) // KDB - Structure for holding pointers to all necessary d...
// Code generated by capnpc-go. DO NOT EDIT. package updatetool import ( capnp "capnproto.org/go/capnp/v3" text "capnproto.org/go/capnp/v3/encoding/text" schemas "capnproto.org/go/capnp/v3/schemas" ) // Constants defined in update-tool.capnp. var ( UpdatePublicKeys = PublicSigningKey_List{List: capnp.MustUnmarsh...
/* Copyright 2017 <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 control import ( "context" "fmt" "sync" "time" "github.com/juju/errors" "github.com/ngaut/log" "golang.org/x/sync/errgroup" "k8s.io/apimachinery/pkg/util/wait" "github.com/pingcap/tipocket/pkg/cluster" "github.com/pingcap/tipocket/pkg/core" "github.com/pingcap/tipocket/pkg/history" "github.com/pi...
/* * Copyright (c) 2018 VMware, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, ...
// 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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: artifact/github.proto package artifact import ( proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" protoreflect "google.golang.org/protobuf/reflec...
// Copyright (c) 2018 The Ecosystem Authors // Distributed under the MIT software license, see the accompanying // file COPYING or or or http://www.opensource.org/licenses/mit-license.php package npipe //sys createNamedPipe(name *uint16, openMode uint32, pipeMode uint32, maxInstances uint32, outBufSize uint32, inBufSi...
package web import ( "net/url" "strings" "unicode" ) type nodeType uint8 const ( static nodeType = iota // default root param catchAll ) type node struct { path string indices string children []*node handlers HandlersChain priority uint32 nType nodeType maxParams uint8 wildChild bool f...
// Code generated - DO NOT EDIT. // This file is a generated binding and any manual changes will be lost. package WithDepositer import ( "math/big" "strings" ethereum "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com...
// // Copyright 2019 Insolar Technologies GbH // // 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 ...