text
stringlengths
5.51k
28.1k
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.6.1 // source: github.com/solo-io/gloo/projects/gloo/api/v1/options/stats/stats.proto package stats import ( reflect "reflect" sync "sync" _ "github.com/solo-io/protoc-gen-ext/extproto" protoreflect "goog...
// Copyright 2018 The kubecfg 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 applica...
package main import ( "flag" "fmt" "log" "net" "os" "os/signal" "path" "strings" "syscall" "time" "github.com/flipkart-incubator/dkv/internal/master" "github.com/flipkart-incubator/dkv/internal/slave" "github.com/flipkart-incubator/dkv/internal/stats" "github.com/flipkart-incubator/dkv/internal/storage"...
package main import ( "encoding/json" "flag" "fmt" "log" "os" "strings" "time" . "github.com/bingoohuang/kt/pkg/kt" "github.com/Shopify/sarama" ) type produceArgs struct { topic string partition int brokers string auth string batch int timeout time.Duration verbose b...
package main import ( "database/sql" "fmt" "log" "strconv" "strings" ) type accountingRow struct { id int // 'Primary table id' _pos int _checksum string // 'md5_hex checksum of line in file', qname string // 'Name of the cluster queue in which the job h...
/* Copyright (c) 2019 <NAME> 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, distribute, sublicen...
package translib import ( "reflect" "encoding/json" "errors" "translib/db" "translib/ocbinds" "github.com/openconfig/ygot/ygot" "os" "strconv" "time" "io/ioutil" "syscall" "translib/tlerr" log "github.com/golang/glog" ) type SysApp struct { path *PathInfo...
package godo import ( "fmt" "io" "path/filepath" "sort" "strconv" "strings" "sync" "time" "github.com/mgutz/minimist" "github.com/blyork/godo/v2/glob" "github.com/blyork/godo/v2/util" "github.com/blyork/godo/v2/watcher" ) // softPanic is used to check for errors within a task handler. type softPanic stru...
/* Package hashauth provides a means of creating a cookie- and url-friendly token containing arbitrary encoded information, with an embedded authentication code that ensures that it was created by you (not forged) and is in its original form (not tampered with). Primary use-cases are login sessions, password reset to...
package astilibav import ( "context" "fmt" "sort" "sync" "sync/atomic" "time" "github.com/asticode/go-astiencoder" "github.com/asticode/go-astikit" "github.com/asticode/goav/avcodec" "github.com/asticode/goav/avformat" "github.com/asticode/goav/avutil" ) var ( countDemuxer uint64 nanosecondRationa...
package metar import ( "reflect" "testing" "time" "github.com/urkk/metar/clouds" "github.com/urkk/metar/phenomena" ) type tafparsetest struct { input string expected *TAFMessage } func getCloud(inp string) clouds.Cloud { cl, _ := clouds.ParseCloud(inp) return cl } var tafparsetests = []tafparsetest{ ...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
package main import ( "crypto/tls" "encoding/gob" "flag" "io" "log" "net/http" "os" "os/exec" "strconv" "github.com/netsec-ethz/2SMS/common" "github.com/gorilla/mux" sd "github.com/scionproto/scion/go/lib/sciond" "github.com/scionproto/scion/go/lib/snet" "github.com/lucas-clemente/quic-go" //"github...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/logging/type/http_request.proto /* Package ltype is a generated protocol buffer package. It is generated from these files: google/logging/type/http_request.proto google/logging/type/log_severity.proto It has these top-level messages: HttpRequest *...
// Draws to the console package consoleui import ( "bytes" "fmt" "log" "strings" "time" "github.com/phelix-/psostats/v2/client/internal/client/config" "github.com/phelix-/psostats/v2/pkg/model" ui "github.com/gizak/termui/v3" "github.com/gizak/termui/v3/widgets" "github.com/phelix-/psostats/v2/client/inter...
package rpmdb import ( "bytes" "encoding/binary" "io" "unsafe" "golang.org/x/xerrors" ) const ( // ref. https://github.com/rpm-software-management/rpm/blob/rpm-4.14.3-release/lib/header.c#L121-L122 REGION_TAG_COUNT = int32(unsafe.Sizeof(entryInfo{})) REGION_TAG_TYPE = RPM_BIN_TYPE // ref. https://github.c...
// Copyright 2020 The xxhash3 Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build amd64 !gccgo package xxhash3 import ( "math/bits" "unsafe" "github.com/zchee/xxhash3/internal/cpu" ) var ( useSSE2 = cpu.X86.HasSSE2 use...
/* Copyright 2020 The Crossplane Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package kafka import ( "errors" "flag" "strconv" "strings" "time" "github.com/grafana/metrictank/conf" "github.com/Shopify/sarama" p "github.com/grafana/metrictank/cluster/partitioner" "github.com/grafana/metrictank/schema" "github.com/grafana/metrictank/schema/msg" "github.com/grafana/metrictank/stats" ...
package models import ( "time" "github.com/gobuffalo/pop/v5" "github.com/gobuffalo/validate/v3" "github.com/gobuffalo/validate/v3/validators" "github.com/gofrs/uuid" "github.com/pkg/errors" "github.com/transcom/mymove/pkg/auth" "github.com/transcom/mymove/pkg/db/utilities" ) // MoveDocumentStatus represent...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.6.1 // source: swagger/swagger.proto package swagger import ( descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "googl...
//go:build go1.16 // +build go1.16 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the cod...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.3 // source: pb/v1/services/catalog.proto package services import ( resources "github.com/ake-persson/peekaboo/pkg/pb/v1/resources" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimp...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/resources/campaign_budget.proto package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v0/resources" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import wrappers "github...
package birc import ( "context" "sort" "sync" "time" "github.com/friendsofgo/errors" "github.com/hortbot/hortbot/internal/birc/breq" "github.com/hortbot/hortbot/internal/pkg/correlation" "github.com/hortbot/hortbot/internal/pkg/errgroupx" "github.com/hortbot/hortbot/internal/pkg/ircx" "github.com/jakebailey...
/** 通达第三次网络安全实验 ARP欺骗 152201 第二组 */ package arpzebra import ( "bytes" "encoding/binary" "fmt" "log" "net" "regexp" "strings" "sync" "time" "github.com/google/gopacket" "github.com/google/gopacket/layers" "github.com/google/gopacket/pcap" ) // 默认序列化配置参数 var defaultSerializeOpts = gopacket.SerializeOption...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/resources/ad_group_ad.proto package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v0/resources" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import wrappers "github.com...
package dtypes // import "github.com/go-hep/dtypes" import ( "encoding/gob" "errors" "fmt" "hash/adler32" "reflect" "sync" "unicode" "unicode/utf8" ) // ID represents a Type as an integer that can be stored on disk or passed on the wire. type ID uint32 func (id ID) Type() Type { if id == 0 { return nil }...
// pmm-agent // Copyright 2019 Percona 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 agr...
package cmd import ( "context" "errors" "fmt" "io" "net/http" "os" "os/signal" "syscall" vgterm "code.vegaprotocol.io/shared/libs/term" vglog "code.vegaprotocol.io/shared/libs/zap" "code.vegaprotocol.io/shared/paths" "code.vegaprotocol.io/vegawallet/cmd/cli" "code.vegaprotocol.io/vegawallet/cmd/flags" "...
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. // Package xcontext implements a generic context with integrated logger, // metrics, tracer and recoverer. package xcontext import ( "c...
// Copyright 2018 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
package evtxparser //go:generate stringer -type=Type import ( "bytes" "encoding/binary" "fmt" "time" "golang.org/x/text/encoding/unicode" ) type Header struct { CurrentChunk uint64 NextRecord uint64 Size1 uint32 Size2 uint16 Count uint16 Minor uint16 Major uint16 Flags uint32 Che...
package ft232h import ( "fmt" "math/bits" ) // I2C stores interface configuration settings for an I²C master and provides // methods for reading and writing to I²C slave devices. // The interface must be initialized by calling either Init or Config (not both) // before use. type I2C struct { device *FT232H config...
/* * Copyright (c) 2019 UPLEX Nils Goroll Systemoptimierung * All rights reserved * * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain t...
package config import ( "fmt" "os" "regexp" "sort" "strings" "github.com/TyeMcQueen/tools-gcp/mon" "github.com/TyeMcQueen/go-lager" sd "google.golang.org/api/monitoring/v3" "gopkg.in/yaml.v2" ) //// Global Data Types //// // Selector is the type used in each "For" entry, selecting which metrics to // appl...
/* Copyright 2017 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 patchlib import ( "debug/elf" "encoding/binary" "fmt" "io" "github.com/ianlancetaylor/demangle" "rsc.io/arm/armasm" ) // manually tested with libnickel from 12777, 14622, and 5761 and libadobe from 14622 // should work on any ARM binary targeting the ARMv6 ABI or newer which uses the recommended PLT fo...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
package errors import ( "bytes" "fmt" "io" ) // A Code is an signed 32-bit error code copied from gRPC spec but negatived. type Code int32 const ( // OK is returned on success. OK Code = 0 // Canceled indicates the operation was canceled (typically by the caller). Canceled Code = -1 // Unknown error. An ex...
package main import ( "bufio" "bytes" "context" "database/sql" "encoding/json" "flag" "fmt" "github.com/buildkite/go-buildkite/buildkite" _ "github.com/mattn/go-sqlite3" "io/ioutil" "log" "net/http" "os/exec" "regexp" "strings" "sync" "time" ) type Commit struct { Sha1 string ChangeId s...
package client import ( "encoding/json" "errors" "fmt" "io/ioutil" "log" "net/http" "sort" "strings" "time" ) // DEX struct handles all API requests relating to HaloDEX type DEX struct { // HaloDEX GraphQL API URL GQLURL string `json:"urlgql"` // HaloDEX public REST API URL BaseURL string `json:"baseurl"...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/services/change_status_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources" _ "goo...
// Copyright 2018 The Cockroach Authors. // // Licensed as a CockroachDB Enterprise file under the Cockroach Community // License (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // https://github.com/cockroachdb/cockroach/blob/master/li...
package main import ( "bytes" "context" "encoding/base64" "encoding/gob" "flag" "fmt" "image" "image/color" "image/draw" "math/rand" "net/http" "os" "strconv" "strings" "time" "github.com/GoogleCloudPlatform/testgrid/hackathon/pkg/hackupdater" hackimage "github.com/GoogleCloudPlatform/testgrid/hackat...
// Copyright (c) Acrosync LLC. All rights reserved. // Free for personal use and commercial trial // Commercial use requires per-user licenses available from https://duplicacy.com package duplicacy import ( "io" "os" "fmt" "bytes" "time" "sync" "strconv" "strings" "net/url" "net/http" "math/rand" "io/iout...
// Copyright 2018 The go-daq 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 ipbus /* hw is the interface to the hardware device. There should only be a single hw instance per device. hw should receive all the IPbus p...
package web import ( "github.com/rajivnavada/cryptzd/crypto" "html/template" textTemplate "text/template" ) type messagesTemplateExtensions struct { Session *SessionObject Messages []crypto.EncryptedMessage Users []crypto.User CurrentUser crypto.User FormAction...
package types import ( "fmt" "math" "strconv" "strings" "unsafe" ) type _ = strings.Builder type _ = unsafe.Pointer var _ = math.Float32frombits var _ = math.Float64frombits var _ = strconv.FormatInt var _ = strconv.FormatUint var _ = strconv.FormatFloat var _ = fmt.Sprint type JSONStructVstruct []byte func (...
// Copyright 2015 CloudAwan 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 i...
package main import ( "bufio" "context" "encoding/json" "fmt" "github.com/sirupsen/logrus" "github.com/spf13/cobra" "gopkg.in/yaml.v2" "html" "io" "net" "net/http" "os" "os/signal" "regexp" "strings" "sync" "syscall" "time" "github.com/go-telegram-bot-api/telegram-bot-api" ) func main() { var tgT...
package trie import ( "bytes" "io/ioutil" "path/filepath" "reflect" "strings" "testing" "github.com/golang/protobuf/proto" "github.com/openacid/errors" "github.com/openacid/low/pbcmpl" "github.com/openacid/slim/encode" "github.com/openacid/testkeys" "github.com/stretchr/testify/require" ) var ( // a squ...
// Copyright 2015 The Vanadium 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 golib defines utilities for using the Go toolchain to build // Vanadium binaries. package golib import ( "bufio" "bytes" "fmt" "os" "os/u...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: yandex/cloud/mdb/postgresql/v1/backup_service.proto package postgresql // import "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "github.com/yan...
package proxy import ( "context" "crypto/tls" "fmt" lctx "github.com/echocat/lingress/context" "github.com/echocat/lingress/rules" "github.com/echocat/lingress/server" "github.com/echocat/lingress/support" "github.com/echocat/lingress/value" log "github.com/sirupsen/logrus" "io" "net" "net/http" "net/url"...
/* ============================================================================================ Name : pragma_processor.go Author : <NAME> Version : Copyright : Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License...
/* Copyright 2014 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// Copyright 2018-2019 Authors of Cilium // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
// Code generated - DO NOT EDIT. // Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-present Datadog, Inc. // +build linux package probe // Sysca...
package server import ( "fmt" "html/template" "io" "net/http" "net/url" "os" "path" "github.com/coreos/dex/api" "github.com/coreos/pkg/capnslog" "github.com/coreos/pkg/health" "github.com/openshift/console/pkg/auth" helmhandlerspkg "github.com/openshift/console/pkg/helm/handlers" "github.com/openshift/c...
package internal import ( "encoding/json" "fmt" "io/ioutil" "net/mail" "net/url" "os" "path/filepath" "regexp" "strings" semver "github.com/blang/semver/v4" "github.com/operator-framework/api/pkg/manifests" "github.com/operator-framework/api/pkg/operators/v1alpha1" "github.com/operator-framework/api/pkg/...
// This file and its contents are licensed under the Apache License 2.0. // Please see the included NOTICE for copyright information and // LICENSE for a copy of the license. package querier import ( "fmt" "math" "sort" "strings" "time" "github.com/jackc/pgx/v4" "github.com/prometheus/common/model" "github.c...
package secure import ( "context" "fmt" "net/http" "regexp" "strings" ) type secureCtxKey string const ( stsHeader = "Strict-Transport-Security" stsSubdomainString = "; includeSubdomains" stsPreloadString = "; preload" frameOptionsHeader = "X-Frame-Options" frameOptionsValue = "DENY" ...
package genschema import ( "encoding/json" "fmt" "net/url" "reflect" "sort" "strconv" "github.com/hirokisan/goa/design" ) type ( // JSONSchema represents an instance of a JSON schema. // See http://json-schema.org/documentation.html JSONSchema struct { Schema string `json:"$schema,omitempty"` // Core s...
/* * Copyright (c) 2013 IBM Corp. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * <NAME> * ...
package rollout import ( "context" "fmt" "reflect" "time" "github.com/crossplane/crossplane-runtime/pkg/event" kruisev1 "github.com/openkruise/kruise-api/apps/v1alpha1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/klog/v2" ...
// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use ...
// Copyright 2020 Red Hat, Inc. and/or its affiliates // // 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 applic...
// Package websocket is a lightweight client implementation of the WebSocket // protocol (RFC 6455). It is designed specifically for fast, efficient and // idiomatic client-side communication with Chrome DevTools in Blink-based // browsers. // // Examples for unsupported features: server-side functionality, proxies, TL...
// Code generated by protoc-gen-go. // source: dota_broadcastmessages.proto // DO NOT EDIT! package dota 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 _ = proto.Marshal var _ = fmt.Errorf var _ = math.In...
// +build f411xe // Peripheral: GPIO_Periph General Purpose I/O. // Instances: // GPIOA mmap.GPIOA_BASE // GPIOB mmap.GPIOB_BASE // GPIOC mmap.GPIOC_BASE // GPIOD mmap.GPIOD_BASE // GPIOE mmap.GPIOE_BASE // GPIOH mmap.GPIOH_BASE // Registers: // 0x00 32 MODER Port mode register. // 0x04 32 OTYPER P...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: xendorser.proto package pb import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang...
package main import ( "context" "flag" "fmt" "github.com/netbirdio/netbird/client/system" "io/ioutil" "os" "os/exec" "path" "runtime" "strconv" "strings" "syscall" "time" "github.com/cenkalti/backoff/v4" _ "embed" "github.com/getlantern/systray" "github.com/netbirdio/netbird/client/internal" "gith...
// DO NOT EDIT THIS FILE. GENERATED BY svdxgen. // +build stm32f407 // Package tim1 provides access to the registers of the TIM peripheral. // // Instances: // TIM1 TIM1_BASE APB2 TIM1_BRK_TIM9*,TIM1_UP_TIM10*,TIM1_TRG_COM_TIM11*,TIM1_CC Advanced-timers // TIM8 TIM8_BASE APB2 TIM8_BRK_TIM12*,TIM8_UP_TIM13*,...
// Copyright 2015 - 2017 <NAME> // Copyright 2015 - 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-...
package iiif import ( "bytes" "encoding/base64" "fmt" "io/ioutil" "math" "net/http" "net/url" "os" "path/filepath" "strconv" "strings" "time" "github.com/golang/groupcache" "github.com/gorilla/mux" "gopkg.in/h2non/bimg.v1" ) // error messages var qualityError = "IIIF 2.1 `quality` and `format` argumen...
package types import ( "io" "regexp" "github.com/keybase/client/go/chat/s3" "github.com/keybase/client/go/gregor" "github.com/keybase/client/go/libkb" "github.com/keybase/client/go/protocol/chat1" "github.com/keybase/client/go/protocol/gregor1" "github.com/keybase/client/go/protocol/keybase1" "github.com/key...
/* 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 (the "License"); you may not use this f...
package database import ( "database/sql" "fmt" "io/ioutil" "log" "net/http" "strings" "nicolas.galipot.net/taxonomia/dataset" ) func CreateTables(db *sql.DB) (err error) { sqlTables := []string{"Items", "PictureCache", "ItemPictures", "Languages", "ItemNames", "Hierarchies", "Characters", "States", "Taxons",...
package cmd import ( "cloud.google.com/go/profiler" "fmt" "github.com/jinzhu/gorm" "github.com/spf13/viper" "github.com/traPtitech/traQ/repository" "github.com/traPtitech/traQ/router" "github.com/traPtitech/traQ/router/auth" "github.com/traPtitech/traQ/service/counter" "github.com/traPtitech/traQ/service/fcm"...
package git import ( "bytes" "errors" "fmt" "github.com/MakeNowJust/heredoc" "log" "net/url" "os" "os/exec" "path" "regexp" "strings" "github.com/tcnksm/go-gitconfig" "github.com/xanzy/go-gitlab" "glab/internal/config" "glab/internal/run" ) // GetRepo returns the repo name of the git directory with th...
/* * Copyright (c) 2019. Baidu Inc. All Rights Reserved. */ package pb import ( "encoding/hex" "encoding/json" "github.com/golang/protobuf/proto" "math/big" ) type HexID []byte func (h HexID) MarshalJSON() ([]byte, error) { hex := hex.EncodeToString(h) return json.Marshal(hex) } func (m *HexID) Reset() ...
// Copyright 2016 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. package hbook import ( "bufio" "bytes" "fmt" "math" ) // P1D is a 1-dim profile histogram. type P1D struct { bng binningP1D ann Annotation } // New...
package gorann // // reading cluster first, trains and then utilizes NNs to compete against // otherwise enhanced clustered readers; // the reading is initiator-to-target direct with no intermediaies, while // the cluster is assumed to store 3 (three) copies of each data/meta chunk; // comparison in the final phase is...
package mango import ( "bytes" "io/ioutil" "log" "net/http" "os" "path/filepath" "strings" "time" ) // Constants that detected by "gometalinter (goconst)" const ( _Yes = "Yes" _No = "No" _Md = ".md" ) // Application - mango application type Application struct { // sync.RWMutex // Absoluted domain pat...
// Copyright (c) 2018 Uber Technologies, 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...
/*- * Copyright 2014 Square 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...
package cli import ( "bufio" "fmt" "io" "math" "net/url" "os" "os/exec" "path/filepath" "strings" "time" "github.com/DataDrake/cli-ng/v2/cmd" "github.com/arken/ark/config" "github.com/arken/ark/ipfs" "github.com/arken/ark/manifest" "github.com/arken/ark/manifest/upstream" "github.com/arken/ark/parser"...
package server import ( "encoding/json" "flag" "fmt" "io/ioutil" "net" "net/url" "os" "path/filepath" "reflect" "strconv" "strings" "github.com/BurntSushi/toml" ) // The default location for the etcd configuration file. const DefaultSystemConfigPath = "/etc/etcd/etcd.conf" // Config represents the serve...
// Copyright © 2016 <NAME> // // Use of this source code is governed by an MIT license. // Details in the LICENSE file. package trello import ( "fmt" "strconv" "strings" "time" "github.com/pkg/errors" ) // Card represents the card resource. // https://developers.trello.com/reference/#card-object type Card stru...
package rod_test import ( "context" "encoding/json" "errors" "fmt" "time" "github.com/go-rod/rod" "github.com/go-rod/rod/lib/input" "github.com/go-rod/rod/lib/launcher" "github.com/go-rod/rod/lib/proto" "github.com/go-rod/rod/lib/utils" ) // Example_basic is a simple test that opens https://github.com/, se...
// Package app provides the assets information for server module. package app import ( "fmt" "io" "os" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/log" tmos "github.com/tendermint/tendermint/libs/os" dbm "github.com/tendermint/tm-db" bam "github.com/cosmos/cosmos...
package awarent import ( "bytes" "fmt" "log" "net/http" "os" "strings" "time" "github.com/DigitalUnion/dp_aware_demon/balancer" sentinel "github.com/alibaba/sentinel-golang/api" "github.com/alibaba/sentinel-golang/core/config" "github.com/alibaba/sentinel-golang/core/flow" "github.com/alibaba/sentinel-gol...
package supplemented import ( "archive/tar" "bytes" "context" "crypto/rand" "encoding/json" "fmt" "io" "io/ioutil" "os" "runtime" "testing" "time" cp "github.com/containers/image/v5/copy" "github.com/containers/image/v5/manifest" "github.com/containers/image/v5/signature" "github.com/containers/image/...
package log import ( "context" "errors" "fmt" "io" "os" "strings" "sync/atomic" "time" pkgX509 "github.com/plgd-dev/hub/v2/pkg/security/x509" "github.com/ugorji/go/codec" "go.opentelemetry.io/otel" "go.uber.org/zap" "go.uber.org/zap/zapcore" "google.golang.org/grpc/codes" "google.golang.org/grpc/status...
/* Copyright 2018 The Rook Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
package anchore import ( "encoding/base64" "encoding/json" "errors" "fmt" log "github.com/sirupsen/logrus" "net/http" "regexp" "strings" "time" "github.com/anchore/harbor-scanner-adapter/pkg/adapter" "github.com/anchore/harbor-scanner-adapter/pkg/adapter/anchore/client" "github.com/anchore/harbor-scanner-...
//+build linux,lxc package driver import ( "context" "encoding/json" "fmt" "log" "os" "path/filepath" "strconv" "strings" "syscall" "time" "github.com/hashicorp/nomad/client/fingerprint" "github.com/hashicorp/nomad/client/stats" "github.com/hashicorp/nomad/helper/fields" "github.com/hashicorp/nomad/nom...
package structs import ( "encoding/json" "fmt" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/lib" ) const ( defaultExposeProtocol = "http" ) var allowedExposeProtocols = map[string]bool{"http": true, "http2": true} type MeshGatewayMode string const ( // MeshGatewayModeDefault represents no ...
package hs /* #include <limits.h> #include <hs.h> */ import "C" import ( "errors" "fmt" "runtime" "sort" "strings" "unsafe" ) var ( // ErrNoFound means patterns not found. ErrNoFound = errors.New("no found") // ErrUnexpected means item is unexpected. ErrUnexpected = errors.New("unexpected") ) // A type c...