text
stringlengths
3.08k
10.4k
// Code generated by fastssz. DO NOT EDIT. package primitives import ( ssz "github.com/ferranbt/fastssz" ) // MarshalSSZ ssz marshals the BlockHeader object func (b *BlockHeader) MarshalSSZ() ([]byte, error) { return ssz.MarshalSSZ(b) } // MarshalSSZTo ssz marshals the BlockHeader object to a target array func (b ...
// 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 writi...
package locations import "github.com/dtcookie/hcl" type Locations []*Location func (me Locations) Schema() map[string]*hcl.Schema { return map[string]*hcl.Schema{ "location": { Type: hcl.TypeList, Description: "The name of the location", Optional: true, Elem: &hcl.Resource{Schema: new...
// Copyright 2012 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 ar import ( "bytes" "os" "path" "strings" "testing" "time" ) /*8 const ( c_ISUID = 04000 // Set uid c_ISGID = 02000 // Set gid c_ISVTX ...
package memory import ( "log" "github.com/valerio/go-jeebie/jeebie/bit" ) const titleLength = 11 const ( entryPointAddress = 0x100 logoAddress = 0x104 titleAddress = 0x134 manufacturerCodeAddress = 0x13F cgbFlagAddress = 0x143 newLicenseCodeAddress = 0x144 sgbFlagAdd...
package model import ( "context" "gin-vue-admin/global" "github.com/antlabs/timer" jsoniter "github.com/json-iterator/go" "github.com/segmentio/kafka-go" "go.uber.org/zap" "gopkg.in/eapache/queue.v1" "sort" "sync" "time" ) type logTmplMap map[uint32]*LogTemplate // 时间桶 type templateBucket struct { bucketS...
package queueinformer import ( "context" "github.com/pkg/errors" "github.com/sirupsen/logrus" "k8s.io/client-go/tools/cache" "k8s.io/client-go/util/workqueue" "github.com/operator-framework/operator-lifecycle-manager/pkg/lib/kubestate" "github.com/operator-framework/operator-lifecycle-manager/pkg/metrics" ) ...
// Package idx implements the iDeal and iDIN protocols, as used by Dutch banks. // // The iDeal specification (merchant integration guide) can be viewed online // from this URL: // https://www.rabobank.nl/images/ideal_merchant_integration_guide_29696264.pdf // // The iDIN specification is not available online, but can ...
/* Copyright 2017 The Nuclio Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
// +build !test // Copyright 2019 StreetByters Community // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Ap...
/* Copyright 2021 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 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 bootstrap import ( "context" "crypto/tls" "fmt" "io/ioutil" "net/http" "time" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-s...
package plugintest import ( "fmt" "io/ioutil" "os" "path/filepath" "strings" "testing" "github.com/bazelbuild/bazel-gazelle/rule" "github.com/stackb/rules_proto/pkg/protoc" ) // Cases is a utility function that runs a mapping of test cases. func Cases(t *testing.T, subject protoc.Plugin, cases map[string]Cas...
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
package adaptauth import ( "bytes" "crypto/hmac" "crypto/sha256" "encoding/base64" "encoding/hex" "encoding/json" "io/ioutil" "net/http" sa "github.com/secureauthcorp/saidp-sdk-go" ) /* ********************************************************************** * @author <EMAIL> * * Copyright (c) 2017, Secure...
/* * Copyright 2014 <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 writing, softw...
package functions import ( "context" "encoding/base64" "encoding/json" "errors" "fmt" "time" "github.com/edgexfoundry/app-functions-sdk-go/v2/pkg/interfaces" clientint "github.com/edgexfoundry/go-mod-core-contracts/v2/clients/interfaces" "github.com/edgexfoundry/go-mod-core-contracts/v2/clients/logger" "git...
package amiami import ( "errors" "fmt" "regexp" "strconv" "strings" "github.com/Stegosawr/apiapi" "github.com/bwmarrin/discordgo" "github.com/stegosawr/Albedo/static" ) const imgSite = "https://img.amiami.com" var reFigureCode = regexp.MustCompile(`https://www\.amiami\.(?:com|jp)/.+([sg])code=([\w-]+)`) ty...
// Code generated by go-swagger; DO NOT EDIT. package detects // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/...
package systemmetrics import ( "context" "fmt" "io" "time" "github.com/evergreen-ci/juniper/gopb" "github.com/evergreen-ci/timber" "github.com/mongodb/grip" "github.com/pkg/errors" "google.golang.org/grpc" ) const ( defaultMaxBufferSize int = 1e7 defaultFlushInterval = time.Minute ) // SystemMetricsC...
// *** 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 ovh import ( "context" "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func LookupIploadbalancing(ctx *pulumi.Context, args *L...
// 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...
/* Copyright 2020 The redhawk Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
package nodeprep import ( "bytes" "fmt" "math/rand" "os" "os/exec" "path/filepath" "strings" "testing" "time" "unicode/utf8" ) func init() { rand.Seed(time.Now().UnixNano()) } func Test_HexToString(t *testing.T) { src := "0041 0042" expected := "AB" if hexToString(src) != expected { t.Error(hexToStri...
// Copyright 2018 Thales UK Limited // // 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, di...
package main import ( "flag" "fmt" "io/ioutil" "regexp" "strconv" "strings" ) var inputFile = flag.String("f", "input", "Relative file path to use as input.") var ruleToCheck = flag.Int("r", 0, "Use this rule to check") var partA = flag.Bool("pA", false, "Part A") //Rule A rule. type Rule struct { ruleID ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/extensions/filters/http/cors/v3alpha/cors.proto package envoy_extensions_filters_http_cors_v3alpha import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppr...
package main import ( // "bytes" "fmt" log "github.com/Sirupsen/logrus" "github.com/czerwe/gobravia" "github.com/gorilla/mux" "github.com/jessevdk/go-flags" "html/template" "net/http" "os" // "strings" ) type Options struct { Listenport int `long:"listenport" env:"LISTENPORT" default:"4043" description...
package main const ( WorkspaceString = "workspace" InstanceString = "instance" ServiceDaaS = "ServiceDaaS" ServiceWorks = "ServiceWorks" WorkspaceName = "WorkspaceName" AblecloudWorks = "Ablecloud.Works" ClusterName = "ClusterName" AgentOK = "AgentOK" AgentCheck = "AgentCheck" Ena...
package cmd import ( "errors" "fmt" "os" "path/filepath" "strings" "github.com/blinkhealth/go-config-yourself/cmd/autocomplete" "github.com/blinkhealth/go-config-yourself/cmd/util" "github.com/blinkhealth/go-config-yourself/internal/input" "github.com/blinkhealth/go-config-yourself/pkg/file" log "github.com...
package client const ( ServiceSpecType = "serviceSpec" ServiceSpecFieldBatchSize = "batchSize" ServiceSpecFieldCPUs = "nanoCpus" ServiceSpecFieldCapAdd = "capAdd" ServiceSpecFieldCapDrop = "capDrop" ServiceSpecFieldCommand ...
package task import ( "encoding/json" "fmt" "io/ioutil" "log" "strconv" "strings" "time" ) type Item struct { Text string Prioirty int Position int Done bool Date string Deadline string } func SaveItems(filename string, items []Item) error { str, err := json.Marshal(items) if err != nil { ...
package apply import ( "github.com/pkg/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "github.com/alibaba/sealer/filesystem" "github.com/alibaba/sealer/guest" "github.com/alibaba/sealer/image" "github.com/alibaba/sealer/logger" "github.com/alibaba/sealer/runtime" v1 "github.com/alibaba/sealer/types/api...
/* * Copyright 2017-2018 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 agree...
package vdecompiler /** * SPDX-License-Identifier: Apache-2.0 * Copyright 2020 vorteil.io Pty Ltd */ import ( "encoding/binary" "errors" "io" "io/ioutil" "github.com/vorteil/vorteil/pkg/vmdk" ) type vmdkSparseIO struct { iio *IO grain int totalGrains int grainSize int...
package main import ( "flag" "fmt" "net" "os" "time" "github.com/google/gopacket" "github.com/google/gopacket/layers" "github.com/google/gopacket/pcap" "github.com/google/gopacket/routing" "k8s.io/client-go/tools/clientcmd" "k8s.io/klog/v2" "github.com/kubeedge/kubeedge/cloud/cmd/config" "github.com/kub...
// Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "encoding/json" "strconv" "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" "github.com/go-opena...
package crud import ( "context" "fmt" "time" "github.com/spaceuptech/helpers" "github.com/spaceuptech/space-cloud/gateway/model" "github.com/spaceuptech/space-cloud/gateway/utils" "github.com/spaceuptech/space-cloud/gateway/config" ) // data structure for storing a group of channels // against particular ta...
package repository import ( "app/domain/errors" "app/domain/model" "app/domain/validator" "strings" "time" "github.com/go-xorm/xorm" ) // AlertDB interface type AlertDB interface { GetAlert(id string) (*model.Alert, error) ListAlerts(q *validator.AlertListRequest) ([]model.AlertItem, error) CountAlerts(q *v...
package main import ( "encoding/json" "fmt" "io/ioutil" "log" "net/http" "os" "strings" fielder "github.com/redgoat650/fielder/scheduling" "golang.org/x/net/context" "golang.org/x/oauth2" "golang.org/x/oauth2/google" sheets "google.golang.org/api/sheets/v4" ) // Retrieve a token, saves the token, then re...
// Copyright 2022 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 AppsCode 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 law or agreed to in writing...
// Package parser // Created by Teocci. // Author: <EMAIL> on 2021-Aug-16 package parser import ( "container/list" "fmt" "github.com/teocci/go-config-parser/core/throw" "regexp" "strings" "sync" ) // Configuration represents a configuration file with its sections and options. type Configuration struct { filePa...
// Copyright 2018 The zookeeper-operator 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 l...
//go:build js && wasm package main import ( "bytes" "encoding/base64" "io" "syscall/js" "github.com/yeqown/go-qrcode/v2" stdw "github.com/yeqown/go-qrcode/writer/standard" ) // encodeOption refers to github.com/yeqown/go-qrcode/v2.encodingOption type encodeOption struct { version int // encodeVersion mod...
package main import ( "crypto/aes" "crypto/cipher" "errors" "flag" "fmt" "io/ioutil" "net/http" "os" "regexp" "strings" ) var url string var fileName string var header = http.Header{ "Referer": []string{"https://e.naixuejiaoyu.com/"}, "User-Agent": []string{"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14...
package statecounty_rates import ( "database/sql" "errors" ) // GetByType is an enumerate for GetBy* functions implemented // by MySQLStore structs type GetByType string // These are the enumerates for GetByType const ( ID GetByType = "StateCountyRateID" ) // MySQLStore is a user.Store backed by ...
package main import ( "fmt" "os" "github.com/gsmcwhirter/eve-route-finder/pkg/path" "github.com/gsmcwhirter/eve-route-finder/pkg/system" "github.com/gsmcwhirter/go-util/v7/deferutil" "github.com/pkg/errors" "gopkg.in/yaml.v3" ) type App struct { systemDataFile string fromSystems []string toSystem s...
package app import ( "fmt" "log" "time" "github.com/zetraison/chgk-bot/internal/bot" "github.com/zetraison/chgk-bot/internal/util" "github.com/zetraison/chgk-bot/pkg/database" ) const ( trueMessage = "Верно" falseMessage = "К сожалению, ваш ответ неверный" roundCompleteMessage = "Врем...
/* * Copyright (c) 2020 Baidu, 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...
package resource import ( "fmt" "math/rand" "regexp" "strings" "github.com/iancoleman/strcase" preflect "google.golang.org/protobuf/reflect/protoreflect" ) const ( WildcardId = "-" ) // Name is an interface for goten name and reference goten types (including parent variants). type Name interface { fmt.Stri...
package auacorn import ( "errors" "fmt" auacornapi "github.com/StephanHCB/go-autumn-acorn-registry/api" ) const ( phaseCreateDone = 1 phaseAssembleDone = 2 phaseSetupDone = 3 phaseTeardownDone = 4 phaseInRecursiveSetup = 93 // special phase value so we can detect circular setup dependencies phaseInRecursive...
// Copyright (c) 2022-2022. <NAME> | <EMAIL> package v1 import ( "fmt" t "ftx-omx/src/types" "ftx-omx/src/utils/dbg" "github.com/go-numb/go-ftx/rest" "github.com/go-numb/go-ftx/rest/private/orders" "github.com/go-numb/go-ftx/types" "log" "strconv" ) func (c *OrderManager) PlaceOpenBookOrder(clientID string, ...
package courier import ( "context" "errors" "os" "strconv" "strings" "testing" "time" mqtt "github.com/eclipse/paho.mqtt.golang" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/suite" ) type ClientSuite struct { suite.Suite } func TestClientSuite(t *t...
package payments import ( "context" "errors" "fmt" "net/http" "os" "testing" "github.com/cpurta/go-raiden-client/config" "github.com/ethereum/go-ethereum/common" "github.com/jarcoal/httpmock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func ExampleInitiator() { var ( pa...
// Copyright 2021 MatrixOrigin. // // 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 units import ( "errors" "fmt" "regexp" "strconv" "strings" ) // ParseErr returned invalid strings are parsed type ParseErr struct { Func string Str string Err error } func (e *ParseErr) Error() string { return "units." + e.Func + ": " + "parsing " + strconv.Quote(e.Str) + ": " + e.Err.Error() } /...
// Copyright 2020 DSR 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 t...
// Package fixpoint implements fixed-point arithmetic and vector operations. It // has been inspired on and is partially copied from the github.com/go-gl/mathgl // package. package fixpoint // Useful link: // https://spin.atomicobject.com/2012/03/15/simple-fixed-point-math/ // Q24 is a Q7.24 fixed point integer type ...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package servicequotas import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" ) type ListServicesInput struct { _ struct{} `type:"structure"` // (Optional) Limits the number of results that you w...
package rankings import ( "errors" "fmt" "math" "sort" "github.com/ChrisHines/GoSkills/skills" "github.com/ChrisHines/GoSkills/skills/trueskill" "github.com/danmane/abalone/go/game" ) type Rating struct { Mean float64 Stddev float64 } type Ranking struct { PlayerID int64 Rating Rating Rank int }...
package etcd import ( "crypto/tls" "encoding/json" "errors" "net/http" "strconv" "github.com/cloudfoundry-incubator/cf_http" "github.com/cloudfoundry-incubator/runtime-schema/metric" "github.com/cloudfoundry/gunk/urljoiner" "github.com/pivotal-golang/lager" ) var errRedirected = errors.New("redirected to le...
package strava import ( "bytes" "compress/gzip" "encoding/json" "fmt" "io" "io/ioutil" "mime/multipart" "net/http" "path/filepath" ) type UploadDetailed struct { UploadSummary } type UploadSummary struct { Id int64 `json:"id"` ExternalId string `json:"external_id"` Error string `json:"erro...
package colorutil import "math" // These values were derived by <NAME> (c) 2019 // https://www.zombieprototypes.com/?p=210 // see also: https://github.com/neilbartlett/color-temperature // // Based on original work by <NAME> (c) 2014 // http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/ var ...
package moveserver import ( "fmt" "log" "sync" "time" "github.com/HawkMachine/kodi_automation/platform/cron" tr "github.com/HawkMachine/transmission_go_api" ) func filterPathInfo(a map[string]*PathInfo, f func(*PathInfo) bool) []*PathInfo { var r []*PathInfo for _, pi := range a { if f(pi) { r = append...
package uploadserver import ( "fmt" "html/template" "io" "log" "net/http" "os" "path" "path/filepath" "regexp" "time" "github.com/zavla/upload/liteimp" "github.com/gin-gonic/gin" ) const meg = 1000000 type smallinf struct { Name string Size int64 DateTime time.Time Date string } // Get...
// // Author:: <NAME> (<<EMAIL>>) // Copyright:: Copyright 2021, 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...
/* * Copyright 2011 <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 wr...
/* 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 go_poro import ( "fmt" league "github.com/mikey-wotton/go-league" "golang.org/x/net/html" "io" "net/http" "regexp" "strings" "unicode/utf8" ) const ( tagName = "tagName" tagDescription = "tagDescription" ) const ( mozillaUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537...
package scorers import ( "context" "math" "time" "github.com/libp2p/go-libp2p-core/peer" "github.com/prysmaticlabs/prysm/beacon-chain/p2p/peers/peerdata" ) var _ Scorer = (*Service)(nil) // ScoreRoundingFactor defines how many digits to keep in decimal part. // This parameter is used in math.Round(score*ScoreR...
// Copyright 2018-2021 CERN // // 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 2019 IBM Corp. 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 # # ht...
// 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...
package baidu import ( "crypto/md5" "encoding/hex" "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" "strconv" "time" "github.com/jaredtao/Transer/services/transer" "github.com/jaredtao/Transer/services/youdao" ) const baiduAPI = "https://api.fanyi.baidu.com/api/trans/vip/translate" const ( //Auto 自...
package service import ( "encoding/json" "fmt" "log" "time" "github.com/gorilla/websocket" ) const ( // Send pings to peer with this period. pingPeriod = 30 * time.Second miningAuthorizeMethod = "mining.authorize" miningSubscribeMethod = "mining.subscribe" ) var ( // The JSON sent is not a valid Request ...
package generated import ( "io/ioutil" "os" "path/filepath" "sync" yaml "gopkg.in/yaml.v2" ) // DefaultConfigName is the default const DefaultConfigName = "default" // Config specifies the runtime config struct type Config struct { ActiveConfig string `yaml:"activeConfig,omitempty"` Configs ...
package mini import ( "context" "encoding/base64" "fmt" "strings" "time" "github.com/gdamore/tcell" ipfs_coreapi "github.com/ipfs/interface-go-ipfs-core" "github.com/pkg/errors" "github.com/rivo/tview" "berty.tech/berty/go/internal/banner" "berty.tech/berty/go/internal/orbitutil" "berty.tech/berty/go/pkg...
/* * Copyright (C) 2017-2017 Alibaba Group Holding Limited */ package action import ( bosherr "github.com/cloudfoundry/bosh-utils/errors" "github.com/denverdino/aliyungo/ecs" "strconv" "github.com/cppforlife/bosh-cpi-go/apiv1" "math" "strings" "fmt" "bosh-alicloud-cpi/registry" "bosh-alicloud-cpi/alicloud" ...
package ardoq import ( "bytes" "encoding/json" "fmt" "io" "io/ioutil" "net/http" "github.com/dghubble/sling" "github.com/mitchellh/mapstructure" ) const ( // UserAgentPrefix is the prefix of the User-Agent header that all terraform REST calls perform UserAgentPrefix = "terraform-provider-ardoq" ) // Error...
// Copyright (c) 2014-2019, <NAME> <<EMAIL>> // Use of this source code is governed by the ISC license that // can be found in the LICENSE file. /* Package mt19937 implements a 64-bit version of the Mersenne Twister pseudo-random number generator (MT19937 PRNG). The state size is 312 uint64. This is a pure Go implem...
package heap import ( "math" "fmt" ) /******************************************************************************* * A D-ary implements the Priority Queue ADT, just like the binary heap. * What's different is that it has d children. * * D-ary heaps are better for decreaseKey operations because decreaseKey() ...
// Parse the logs from GitHub Actions package main import ( "archive/zip" "bytes" "flag" "fmt" "io/ioutil" "log" "os" "path/filepath" "regexp" "strings" ) var ( // Flags outputDir = flag.String("o", "output", "Output directory") // Globals matchProject = regexp.MustCompile(`^([\w-]+)/([\w-]+)$`) projec...
// // // package main import ( "encoding/json" "fmt" "net/http" "runtime" "strconv" "time" ) var ( // ParsedData used to hold the JSON parsed data - use pointer instead? ParsedData WeatherMain ) // WeatherMain defines the main top level values to extract from JSON input type WeatherMain struct { Tz ...
package cReverse import ( "database/sql" "encoding/json" "fmt" mid "github.com/uouuou/ServerManagerSystem/middleware" "github.com/uouuou/ServerManagerSystem/models" "gorm.io/driver/mysql" "gorm.io/driver/sqlite" "gorm.io/driver/sqlserver" "gorm.io/gorm" "gorm.io/gorm/logger" "os" "time" ) // SqlConfig 数据库...
// Copyright © 2019 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
package decrypter import ( "crypto/aes" "crypto/cipher" "crypto/des" "crypto/hmac" "crypto/sha1" "crypto/sha256" "encoding/asn1" "errors" "golang.org/x/crypto/pbkdf2" ) var ( errSecurityKeyIsEmpty = errors.New("input [security find-generic-password -wa 'Chrome'] in terminal") errPasswordIsEmpty = error...
package gostore import ( "encoding/hex" "fmt" "io" "os" "crypto/rand" "crypto/md5" "time" "encoding/binary" "errors" "sync/atomic" ) // ObjectId is a unique ID identifying a BSON value. It must be exactly 12 bytes // long. MongoDB objects by default have such a property set in their "_id" // property. // // ...
// Copyright © 2016-2017 <NAME>. // All rights reserved, except as granted under license. // Licensed per file LICENSE.txt package code import ( "encoding/hex" "errors" "regexp" "strconv" "strings" "unicode/utf8" "github.com/spf13/cobra" "github.com/philpennock/character/internal/clipboard" "github.com/phi...
// Copyright 2018 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
// // Code generated by go-jet DO NOT EDIT. // // WARNING: Changes to this file may cause incorrect behavior // and will be lost if the code is regenerated // package table import ( "github.com/go-jet/jet/v2/postgres" ) var PgProc = newPgProcTable() type pgProcTable struct { postgres.Table //Columns Oid ...
package main import ( "errors" "log" "sync" "time" "github.com/ndlib/noids/noid" ) // PoolInfo contains the public info for a pool. We // use separate structures since the private structure contains // a mutex we do not wish to copy. The private structure is // the canonical source. type PoolInfo struct { Name...
package main import ( "bytes" "encoding/json" "io/ioutil" "log" "os" "path/filepath" "strings" ) var configFile = getCurrentPath() + "/config.json" type MajsoulExInfoDialogAttr struct { Width float64 `json:"width"` Height float64 `json:"height"` X float64 `json:"x"` Y float64 `json:"y"`...
package rd import ( "fmt" "sort" "sync" "time" "github.com/staroffish/am/global" ) // RdTask - 远程下载任务的结构体 type RdTask struct { // 任务标识(可能是一个逗号分割的ID列表) Ids string // 任务链接 Link string // 文件/目录名 Name string // 路径 SavePath string // 进度 Progress int // 状态 State string // 文件大小 Size int64 // 任务类型 TaskT...
// Copyright 2018 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...
/* * Bulldozer Framework * Copyright (C) DesertBit */ package sessions import ( "encoding/gob" "sync" "time" "github.com/desertbit/bulldozer/log" "github.com/desertbit/bulldozer/settings" "github.com/satori/go.uuid" ) func init() { // Register the custom types to gob gob.Register(&instances{}) gob.Reg...
package types import ( "errors" "fmt" math "math" "math/big" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go-ethereum/core/types" ) // TransactionArgs represents the arguments to construct a new transaction // or a message call using J...
package smf_context import ( "fmt" "gofree5gc/lib/pfcp/pfcpType" "net" "reflect" ) var upfPool map[string]*UPFInformation func init() { upfPool = make(map[string]*UPFInformation) } type UPTunnel struct { Node *UPFInformation ULPDR *PDR DLPDR *PDR ULTEID uint32 DLTEID uint32 } type UPFInformation struct...
// Copyright 2020 <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 writing, ...
package storage import ( "context" "log" "runtime" "testing" "time" "net/http" _ "net/http/pprof" "github.com/cortexproject/cortex/pkg/chunk" "github.com/cortexproject/cortex/pkg/chunk/local" "github.com/cortexproject/cortex/pkg/chunk/storage" "github.com/cortexproject/cortex/pkg/util/validation" "github...