text
stringlengths
3.08k
10.4k
// Package billmodel contains the types for schema 'equinox'. package billmodel // GENERATED BY XO. DO NOT EDIT. import ( "database/sql" "github.com/lib/pq" ) // Citylink represents a row from 'equinox.citylink'. type Citylink struct { ClUniqueid sql.NullInt64 `json:"cl_uniqueid"` // cl_uniqueid ClAdd...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.24.0 // protoc v3.12.3 // source: data.proto package security import ( proto "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" protoreflect "google.golang.org/protobuf/reflec...
package utxo import ( "bytes" "encoding/binary" "fmt" "github.com/btcsuite/goleveldb/leveldb" "github.com/mably/btcutil" "github.com/mably/btcwire" "time" ) const ( DB_UTXO byte = iota DB_ADDR DB_HEIGHT DB_MAX ) type UTXO struct { BlockTime uint32 StakeModifier uint64 OffsetInBlock uint32 Time ...
// Copyright (C) 2011, <NAME> package pdf import ( "errors" "reflect" "strconv" "strings" ) // A marshaler can produce a PDF object. type marshaler interface { marshalPDF(dst []byte) ([]byte, error) } // marshal returns the PDF encoding of v. // // If the value implements the marshaler interf...
package service import ( "context" "strings" "time" log "github.com/sirupsen/logrus" v1 "k8s.io/api/core/v1" "github.com/G-Research/armada/internal/armada/api" "github.com/G-Research/armada/internal/common" commonUtil "github.com/G-Research/armada/internal/common/util" context2 "github.com/G-Research/armada...
/* Copyright 2021 Gravitational, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
/* Copyright 2019 Adevinta */ package config import ( "encoding/json" "fmt" "io/ioutil" "os" "strconv" "github.com/BurntSushi/toml" "github.com/adevinta/vulcan-check-sdk/internal/push/rest" ) const ( loggerLevelEnv = "VULCAN_CHECK_LOG_LVL" loggerFormatterEnv = "VULCAN_CHECK_FMT" checkTargetEnv ...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package sns import ( "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" ) var _ aws.Config var _ = awsutil.Prettify // Endpoint for mobile app and device. // Please also see https://docs.aws.amazon.com/goto/WebAPI...
package command import ( "context" "encoding/json" "strings" mothership "github.com/kyma-project/control-plane/components/reconciler/pkg" "github.com/kyma-project/control-plane/tools/cli/pkg/logger" "github.com/kyma-project/control-plane/tools/cli/pkg/printer" "github.com/pkg/errors" "github.com/spf13/cobra" ...
package cmd import ( "fmt" "io/ioutil" "os" "strconv" "strings" "github.com/flanksource/commons/console" "github.com/flanksource/commons/is" "github.com/flanksource/commons/lookup" "github.com/flanksource/commons/text" "github.com/imdario/mergo" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" "...
package main import ( "context" "flag" "fmt" "io/ioutil" "net/http" "os" "os/signal" "path/filepath" "strconv" "syscall" "time" "github.com/everytv/gaurun/gaurun" ) const ( DefaultPidPermission = 0644 ) func main() { versionPrinted := flag.Bool("v", false, "gaurun version") confPath := flag.String("c...
package testing import ( "context" "fmt" "io/ioutil" "net" "os" "path" "runtime" "time" "github.com/spf13/pflag" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/apiserver/pkg/registry/generic/registry" genericapiserver "k8s.io/apiserver/pkg/server" "k8s.io/apiserver/pkg/storage/storagebackend" "k8s.io/clie...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: synchronization/rsync/transmission.proto package rsync 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...
package main import ( "database/sql" "log" "os" "path" "strconv" "time" ) const ( maxFileUploadSizeMB = 5000 freeFileUploadBytes = 250000000 freeBandwidthBytes = freeFileUploadBytes * 10 creditSteps = 0.5 userDirLen = 50 ) var fileStoreDirectory = os.Getenv("file_dir") // Transfer structure type Trans...
package main import ( "context" "io" "net" "sync" "time" log "github.com/sirupsen/logrus" ) const ( NET_LISTENER_PROTOCOL = "tcp" MAX_BUFFER_BYTES = 4048 ) // Conn is a thin wrapper around net.Conn that allows us to set deadline timers as well as a buffer size limit type QConn struct { Conn n...
// Copyright 2013 <NAME> <<EMAIL>> // Copyright 2011 <<EMAIL>>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main // "opencv" import ( "fmt" "os" "github.com/chai2010/go-opencv/opencv" "math/rand" "time" "unsafe" "flag" ) /...
package vision // DenseNet implementation. // // See "Densely Connected Convolutional Networks", Huang et al 2016. // https://arxiv.org/abs/1608.06993 import ( "fmt" "github.com/sugarme/gotch/nn" ts "github.com/sugarme/gotch/tensor" ) func dnConv2d(p *nn.Path, cIn, cOut, ksize, padding, stride int64) *nn.Conv2D ...
package timecalc import ( "strconv" "strings" "time" ) var monthDaysMap = map[int]int{ 1: 31, 2: 28, 3: 31, 4: 30, 5: 31, 6: 30, 7: 31, 8: 31, 9: 30, 10: 31, 11: 30, 12: 31, } func getMonthDays(year, month int) int { if month == 2 && isLeapYear(year) { return 29 } return monthDaysMap[mon...
package db import ( "database/sql" "fmt" "sort" "github.com/lxc/lxd/lxd/db/query" ) // StorageVolumeNodeAddresses returns the addresses of all nodes on which the // volume with the given name if defined. // // The empty string is used in place of the address of the current node. func (c *ClusterTx) StorageVolume...
package fakesrvrdata /* * 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 Apache License, Version 2.0 (t...
/* * Copyright 2019 The NATS Authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
package services import ( "fmt" "path/filepath" "sync" "github.com/greenplum-db/gpupgrade/idl" "github.com/greenplum-db/gpupgrade/utils" "github.com/pkg/errors" "github.com/greenplum-db/gpupgrade/hub/upgradestatus" "github.com/greenplum-db/gp-common-go-libs/cluster" "github.com/greenplum-db/gp-common-go-li...
package scheduler import ( "sync" "time" ) // Task interface describes a runnable task. type Task interface { Run() error ID() int64 Name() string } // Logger interface describes the kind of logger we'd like to have. type Logger interface { Infof(msgFormat string, args ...interface{}) Errorf(msgFormat string,...
/* * Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA * * 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...
package sds import ( "bytes" "io" "math/rand" "testing" "time" ) func init() { seed := time.Now().UnixNano() println(seed) rand.Seed(seed) } func randUint64() uint64 { return rand.Uint64() } func randInt64() int64 { return int64(randUint64()) } func randString() string { b := make([]byte, rand.Int()%204...
// Copyright (c) 2021 Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project package propagator import ( "context" clusterv1 "github.com/open-cluster-management/api/cluster/v1" appsv1 "github.com/open-cluster-management/governance-policy-propagator/pkg/apis/apps/v1" policiesv1 "github.com...
// Copyright 2019 Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in complian...
package lexer_test import ( "fmt" "strings" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/fairjungle/expr/file" . "github.com/fairjungle/expr/parser/lexer" ) type lexTest struct { input string tokens []Token } var lexTests = []lexTest{ { ".5 0.025 1 0...
// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose ei...
package main import ( "fmt" "github.com/icza/gowut/gwu" ) func updateDBBox(j *jawaInfo, e gwu.Event, p gwu.TextBox) { curText := "Rental Ops DB:\n" curText += "==============\n" curText += "Common Info:\n" curText += "==============\n" v := j.CI curText += fmt.Sprintf("Office manager: %s\n", v.OfficeM...
package conf import ( "encoding/json" "fmt" "gopkg.in/yaml.v3" "regexp" "strings" ) /**************************************************************\ * Cluster * \**************************************************************/ // Cluster define a postgres clust...
package main import ( "encoding/json" "fmt" "net/http" "os" "os/signal" "time" "github.com/Shopify/sarama" "github.com/nais/liberator/pkg/conftools" "github.com/nais/liberator/pkg/tlsutil" "github.com/navikt/deployment-event-relays/pkg/config" "github.com/navikt/deployment-event-relays/pkg/deployment" "gi...
// Copyright 2018 The gVisor 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 agree...
package ante_test import ( "testing" "time" "github.com/cosmos/cosmos-sdk/codec" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" "github.com/cosmos/cosmos-sdk/simapp/helpers" sdk "github.com/cosmos/cosmos-sdk/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/stretchr/testify/req...
// Code generated by transpiler. DO NOT EDIT. /** * Go Video Downloader * * Copyright 2019 Tenta, 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.or...
package tlsconfig /* * Copyright 2020-2021 Aldelo, LP * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
// This file contains the implementation of the RPC in the context of gRPC. // // Documentation Last Review: 07.10.2020 // package minogrpc import ( context "context" "sync" "github.com/rs/xid" "go.dedis.ch/dela" "go.dedis.ch/dela/internal/tracing" "go.dedis.ch/dela/mino" "go.dedis.ch/dela/mino/minogrpc/ptype...
package gorr import ( "context" "errors" "fmt" //"reflect" "encoding/json" "github.com/brahma-adshonor/gohook" "github.com/golang/protobuf/proto" "google.golang.org/grpc" "google.golang.org/grpc/connectivity" ) // grpc functions are exposed by interface, which cannot be hooked directly. /* there are 2 ways t...
package server import ( "context" "fmt" "net/http" "os" "os/signal" "syscall" "time" "searchproxy/mirrorsort" "searchproxy/util/miscellaneous" "searchproxy/util/network" "github.com/didip/tollbooth" "github.com/gorilla/mux" "github.com/spf13/viper" "github.com/tb0hdan/memcache" "github.com/didip/tol...
package encoder import ( "encoding/json" "encoding/xml" "errors" "reflect" "testing" "time" ) type ( sample struct { Id int `json:"id"` Name string `json:"name"` Password string `json:"password,omitempty" out:"false" xml:"-"` Registered time.Time `json:"registered"` ...
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ package handlers_test import ( "encoding/json" "fmt" "net/http" "net/http/httptest" "strings" ...
// Copyright 2020 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 main import ( "context" "encoding/json" "fmt" "log" "os" "sync" cloudtask "cloud.google.com/go/cloudtasks/apiv2" "cloud.google.com/go/dat...
// Copyright 2020 Apulis Technology Inc. All rights reserved. package imageservice import ( apulisdb "github.com/apulis/ApulisEdge/cloud/pkg/database" imagemodule "github.com/apulis/ApulisEdge/cloud/pkg/domain/image" imageentity "github.com/apulis/ApulisEdge/cloud/pkg/domain/image/entity" "github.com/apulis/Apuli...
package blockstream import ( "context" "errors" "fmt" "github.com/streamingfast/bstream" "github.com/streamingfast/bstream/firehose" "github.com/streamingfast/bstream/forkable" "github.com/streamingfast/logging" pbbstream "github.com/streamingfast/pbgo/dfuse/bstream/v1" "go.uber.org/zap" "google.golang.org/...
// Copyright 2018 <NAME>.P. // // 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 2016 CodisLabs. All Rights Reserved. // Licensed under the MIT (MIT-LICENSE.txt) license. package topom import ( "container/list" "net" "strings" "testing" "time" "github.com/CodisLabs/codis/pkg/models" "github.com/CodisLabs/codis/pkg/proxy/redis" "github.com/CodisLabs/codis/pkg/utils/assert" "...
// Copyright 2016 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package bootrecord import ( "testing" "unsafe" "go.fuchsia.dev/fuchsia/src/lib/thinfs/fs/msdosfs/testutil" ) func TestBootrecordLargeSize(t *testing....
package api import "time" // Task is a Habitica task. type Task struct { Order int Title string `json:"text"` Tags []string `json:"tags"` ID string `json:"id"` Type string `json:"type"` Completed bool `json:"completed"` date string `json:"date"` DueDate time.Time } ...
package dda import ( "fmt" "io/ioutil" "path" "path/filepath" "reflect" "sort" "testing" "github.com/zimmski/osutil" "gonum.org/v1/gonum/graph" "gonum.org/v1/gonum/graph/encoding/dot" "gonum.org/v1/gonum/graph/simple" "github.com/nskondratev/gonum-quasi-clique/dda/solvers/glpk" ) func TestDDA(t *testing...
/** Copyright 2021 <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, software distrib...
// Copyright 2016 The etcd 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 ...
// Copyright 2020 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 macho import ( "debug/macho" "encoding/binary" "fmt" "io" "os" "github.com/go-restruct/restruct" ) const ( // alignment wanted for each macho file within the universal binary. // amd64 needs 12 bits, arm64 needs 14. We choose the max of all requirements here. alignBits = 14 align = 1 << alignBi...
// Copyright (c) The Thanos Authors. // Licensed under the Apache License 2.0. package receive import ( "context" "github.com/go-kit/log" "github.com/go-kit/log/level" "github.com/pkg/errors" "github.com/prometheus/prometheus/model/exemplar" "github.com/prometheus/prometheus/storage" "github.com/prometheus/pr...
package graphqlbackend import ( "context" "errors" "github.com/graph-gophers/graphql-go" "github.com/graph-gophers/graphql-go/relay" "github.com/inconshreveable/log15" "github.com/sourcegraph/sourcegraph/cmd/frontend/envvar" "github.com/sourcegraph/sourcegraph/cmd/frontend/hubspot/hubspotutil" "github.com/so...
/* Copyright 2018 Gravitational, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
package main import ( "bytes" "crypto/sha256" "encoding/base64" "encoding/hex" "flag" "fmt" "io/ioutil" "os" "time" "github.com/golang/protobuf/proto" "golang.org/x/crypto/ed25519" "protobufs" "requestor/randomset" "shared/protocol_common" ) type Certificate struct { Host []byte Certificate [...
package main import ( "fmt" "github.com/c-bata/go-prompt" log "github.com/sirupsen/logrus" "sort" "strings" "github.com/piglei/lbssh/pkg/storage" "github.com/piglei/lbssh/pkg/util" "github.com/renstrom/fuzzysearch/fuzzy" ) // MainCompleter is the main completer type MainCompleter struct { hostCompleter Host...
package fsm import ( "fmt" "sort" "strings" "unicode" "moul.io/graphman" ) // Struct represent struct data type Struct struct { Name string StateField string StateType string StateValues []StateValue Transitions Transitions } // StateValue represents state field values type StateValue struct { ...
/* 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 rados // #cgo LDFLAGS: -lrados // #include <errno.h> // #include <stdlib.h> // #include <rados/librados.h> // import "C" import ( "unsafe" ts "github.com/ceph/go-ceph/internal/timespec" ) // Timespec is a public type for the internal C 'struct timespec' type Timespec ts.Timespec // WriteOp manages a set ...
package dfs import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) // List list filesystems and their properties in given account. // Parameters: // prefix - f...
package main import ( "crypto/md5" "crypto/sha1" "crypto/sha256" "crypto/sha512" "encoding/base64" "encoding/hex" "encoding/json" "flag" "fmt" "hash" "hash/crc32" "io" "io/fs" "log" "os" "runtime" "sync" ) var flagHash = flag.String("hash", "sha256", "hash function to use (crc32, md5, sha1, sha224, s...
package main import ( "flag" "fmt" "github.com/kianian9/Masih/masih/broker" "github.com/kianian9/Masih/masih/broker/amqp" "github.com/kianian9/Masih/masih/broker/kafka" "github.com/kianian9/Masih/masih/broker/stan" "os" "runtime" "strconv" "strings" "time" ) type peer interface { // Setups publishers/subs...
package util import ( "fmt" "io/ioutil" "os" "strings" ) // Default var ( dbHost = "" dbPort = "" dbUser = "" dbPass = "" dbName = "" apiHost = "localhost" apiPort = "8081" ap...
package main import ( "context" "errors" "fmt" "log" "os" keptn "github.com/keptn/go-utils/pkg/lib" "github.com/cloudevents/sdk-go/pkg/cloudevents" "github.com/cloudevents/sdk-go/pkg/cloudevents/client" cloudeventshttp "github.com/cloudevents/sdk-go/pkg/cloudevents/transport/http" "github.com/kelseyhightow...
package eks import ( "fmt" "reflect" "strings" "time" pkgaws "github.com/aws/aws-k8s-tester/pkg/aws" "github.com/aws/aws-k8s-tester/pkg/logutil" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" awseks "github.com/aws/aws-sdk-go/service/eks" "git...
// Package ws provides a websocket transport package transport import ( "context" "encoding/binary" "errors" "fmt" "hash/crc32" "net/http" "time" "github.com/east-eden/server/transport/codec" "github.com/gorilla/websocket" "github.com/valyala/bytebufferpool" "go.uber.org/atomic" "google.golang.org/protobu...
package metadata import ( "bytes" "errors" "fmt" "math" "strconv" "github.com/incognitochain/incognito-chain/common" "github.com/incognitochain/incognito-chain/dataaccessobject/statedb" "github.com/incognitochain/incognito-chain/privacy" ) type MetadataBase struct { Type int } func (mb *MetadataBase) Sign(...
package bradescoShopFacil import ( "testing" "time" "github.com/mundipagg/boleto-api/mock" "github.com/mundipagg/boleto-api/models" "github.com/mundipagg/boleto-api/test" "github.com/mundipagg/boleto-api/util" "github.com/stretchr/testify/assert" ) const baseMockJSON = ` { "BankNumber": 237, "Authent...
// Copyright 2021 The June Authors. All rights reserved. // Use of this source code is governed by Apache License // that can be found in the LICENSE file. package entity import ( "fmt" "sync" "sync/atomic" "github.com/reusee/dscope" "github.com/reusee/june/index" "github.com/reusee/june/sys" "github.com/reus...
package stats import ( "bytes" "container/heap" "fmt" "sort" "strings" "sync" "github.com/olekukonko/tablewriter" ) const ( // AllValue is a special bucket key that represents all possible values. AllValue = "__all__" // InvalidValue is a special bucket key that represents an invalid message. InvalidValu...
// --------------------------- // Value and Pointer semantics // --------------------------- // When it comes to use built-in type (numeric, string, bool), we should always be using value // semantics. When a piece of code that take an address of an integer or a bool, this raises a // big flag. It's hard to say becaus...
package gateway_interfaces import ( "github.com/nttcom/eclcloud" "github.com/nttcom/eclcloud/pagination" ) type ListOptsBuilder interface { ToGatewayInterfaceListQuery() (string, error) } type ListOpts struct { AwsGwID string `q:"aws_gw_id"` AzureGwID string `q:"azure_gw_id"` Description string `q:"desc...
package dr import ( "crypto/aes" "crypto/cipher" "crypto/elliptic" "crypto/hmac" "errors" "fmt" "hash" "io" "strconv" "golang.org/x/crypto/hkdf" ) // nist implements Ratchet using NIST curves, 256-bit AES-GCM, // HKDF with SHA-256, and HMAC-SHA-256. type nist struct { // curve is the underlying curve. cu...
package upgradecheck /* Copyright 2021 - 2022 Crunchy Data Solutions, 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 ...
package embeddedpostgres import ( "errors" "fmt" "io/ioutil" "log" "net" "os" "os/exec" "path/filepath" "runtime" "strings" "github.com/mholt/archiver/v3" ) // EmbeddedPostgres maintains all configuration and runtime functions for maintaining the lifecycle of one Postgres process. type EmbeddedPostgres st...
package bookmarks import ( "errors" "github.com/sho0pi/brograb" "github.com/sho0pi/brograb/browserutils" "github.com/tidwall/gjson" "io/ioutil" "time" ) const ( bookmarkTypeKey = "type" bookmarkUrlKey = "url" bookmarkNameKey = "name" bookmarkDateAddedKey = "date_added" bookmarkChildrenKey ...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package costexplorer import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" ) type GetSavingsPlansPurchaseRecommendationInput struct { _ struct{} `type:"structure"` // The account scope that you...
package store import ( "bytes" "fmt" "image" "image/jpeg" "image/png" "io" "io/ioutil" "log" "os" "path/filepath" "strings" "github.com/edwvee/exiffix" "github.com/vitali-fedulov/images" "xarantolus/sensibleHub/store/file" "xarantolus/sensibleHub/store/music" ) // GenerateCoverPreviews starts generati...
package core import ( "errors" "io/ioutil" "log" "path" "plugin" "runtime/debug" "strings" "sync" ) // 错误值 var ( ErrUnknowError = errors.New("Unknow error") ErrBadParame = errors.New("Bad parames") ErrNoMoudles = errors.New("No modules will load") ) // Module 模块接口 type Module interface { String() str...
// Copyright Fuzamei Corp. 2018 All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pbft import ( "flag" "fmt" "math/rand" "os" "strconv" "testing" "time" "github.com/33cn/chain33/blockchain" "github.com/33cn/chain33/common" "...
// Copyright 2019 The Kubeflow 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
package services import ( "bytes" "context" "crypto/tls" "encoding/json" "io" "io/ioutil" "net/http" "runtime" "github.com/evergreen-ci/aviation" "github.com/mongodb/grip" "github.com/pkg/errors" "google.golang.org/grpc" ) // API headers for the cedar service. const ( APIUserHeader = "Api-User" APIKeyH...
// Copyright 2016 Attic Labs, Inc. All rights reserved. // Licensed under the Apache License, version 2.0: // http://www.apache.org/licenses/LICENSE-2.0 package nbs import ( "fmt" "io" "net" "os" "time" "golang.org/x/sys/unix" "github.com/attic-labs/noms/go/d" "github.com/aws/aws-sdk-go/aws" "github.com/aw...
package integration import ( "bufio" "context" "fmt" "io" "regexp" "testing" "time" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubeclient "k8s.io/client-go/kubernetes" imageapiv1 "github.com/openshift/api/image/v1" imageclientv1 "github.com/openshift/client-go/image/clients...
package block import ( "fmt" "github.com/df-mc/dragonfly/server/block/cube" "github.com/df-mc/dragonfly/server/internal/nbtconv" "github.com/df-mc/dragonfly/server/item" "github.com/df-mc/dragonfly/server/item/inventory" "github.com/df-mc/dragonfly/server/world" "github.com/df-mc/dragonfly/server/world/sound" ...
package arp import ( "strings" ) type TokenStackFrame struct { StartPos int EndPos int Token string Nested int } type TokenStack struct { Frames []TokenStackFrame Extra string } func (s *TokenStack) Push(f TokenStackFrame) { s.Frames = append(s.Frames, f) } func (s *TokenStack) Pop() *TokenStackFra...
/* Copyright © LiquidWeb 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 distribu...
/* * This file is part of the Model Rocket Hiro Stack * Copyright (c) 2020 Model Rocket LLC. * * https://github.com/ModelRocket/hiro * * 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, ver...
package companies import ( "encoding/json" "fmt" "io/ioutil" jobs "job-scraper/internal" "net/http" "regexp" "strconv" "strings" "github.com/gocolly/colly" "go.uber.org/zap" ) // https://careers.google.com/api/v2/jobs/search/?company=Google&company=Google%20Fiber&company=YouTube&employment_type=FULL_TIME&h...
// Package p2pcrypto defines the cryptographic primitives used to communicate and identify in the p2p network, // it uses go stdlib's NaCL box implementation. package p2pcrypto import ( "crypto/rand" "errors" "fmt" "io" "github.com/btcsuite/btcutil/base58" "golang.org/x/crypto/nacl/box" "github.com/spacemesho...
package handler import ( "fmt" "os/exec" "strings" "sync" "github.com/robfig/cron/v3" "go.uber.org/atomic" "gorm.io/gorm" "github.com/cntechpower/utils/log" "github.com/cntechpower/v2ray-webui/config" "github.com/cntechpower/v2ray-webui/model" "github.com/cntechpower/v2ray-webui/persist" ) const ( fqdn ...
package wasm import ( "crypto/rand" "errors" "fmt" "io" "github.com/tetratelabs/wazero/internal/fs" ) // SysContext holds module-scoped system resources currently only used by internalwasi. type SysContext struct { args, environ []string argsSize, environSize uint32 stdin io.Reader s...
package sms import ( "unicode/utf8" ) // GSM7bitString is GSM 7-bit default alphabet of 3GPP TS23.038 type GSM7bitString []rune var code = [128 + 16]rune{ '@', '£', '$', '¥', 'è', 'é', 'ù', 'ì', 'ò', 'Ç', '\n', 'Ø', 'ø', '\r', 'Å', 'å', 'Δ', '_', 'Φ', 'Γ', 'Λ', 'Ω', 'Π', 'Ψ', 'Σ', 'Θ', 'Ξ', '\x1b', 'Æ', 'æ', 'ß...
// Copyright ©2020 The go-hep Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // root2fits converts the content of a ROOT tree to a FITS (binary) table. // // Usage: root2fits [OPTIONS] -f input.root // // Example: // // $> root2fit...
package gdnativeapijson import ( "encoding/json" "fmt" "io/ioutil" "log" "regexp" "strings" "github.com/pinzolo/casee" ) type Argument []string func (a *Argument) FunctionArgument() string { if strings.HasSuffix((*a)[0], "**") { return fmt.Sprintf("%s* %s[]", (*a)[0][:len((*a)[0])-2], (*a)[1]) } return...
package lexer import ( "github.com/branislavlazic/rooster/pkg/token" ) type Lexer struct { input string position int readPosition int lineNumber int index int ch byte } // NewLexer returns an initialized Lexer value func NewLexer(input string) *Lexer { lexer := &Lexer{input: inp...
package question import ( "github.com/samtech09/kidoma/internal/util" ) type Question struct { N1 int N2 int Ans int Remainder int Op string } // type QCount struct { // Add int // Subs int // Div int // Mul int // //Total int // } type QConfig struct { //firstStart bool /...
// Copyright 2017 Vckai Author. 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 applica...