aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/Xe/gopreload
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2018-10-19 06:58:02 -0700
committerChristine Dodrill <me@christine.website>2018-10-19 06:58:35 -0700
commitd2ff4407993e4511e0225c12964bc07cd8d02be6 (patch)
tree1ca621c635b568054bf8808306cf4b6baa9cfedf /vendor/github.com/Xe/gopreload
parentf363c7e7eb6ca43e92624365ceab66a78d99b376 (diff)
downloadxesite-d2ff4407993e4511e0225c12964bc07cd8d02be6.tar.xz
xesite-d2ff4407993e4511e0225c12964bc07cd8d02be6.zip
use GOPROXY
Diffstat (limited to 'vendor/github.com/Xe/gopreload')
-rw-r--r--vendor/github.com/Xe/gopreload/.gitignore1
-rw-r--r--vendor/github.com/Xe/gopreload/LICENSE19
-rw-r--r--vendor/github.com/Xe/gopreload/README.md51
-rw-r--r--vendor/github.com/Xe/gopreload/doc.go7
-rw-r--r--vendor/github.com/Xe/gopreload/preload.go26
5 files changed, 0 insertions, 104 deletions
diff --git a/vendor/github.com/Xe/gopreload/.gitignore b/vendor/github.com/Xe/gopreload/.gitignore
deleted file mode 100644
index 140f8cf..0000000
--- a/vendor/github.com/Xe/gopreload/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.so
diff --git a/vendor/github.com/Xe/gopreload/LICENSE b/vendor/github.com/Xe/gopreload/LICENSE
deleted file mode 100644
index 82248fe..0000000
--- a/vendor/github.com/Xe/gopreload/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2017 Christine Dodrill <me@christine.website>
-
-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, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE. \ No newline at end of file
diff --git a/vendor/github.com/Xe/gopreload/README.md b/vendor/github.com/Xe/gopreload/README.md
deleted file mode 100644
index 32a3e5d..0000000
--- a/vendor/github.com/Xe/gopreload/README.md
+++ /dev/null
@@ -1,51 +0,0 @@
-gopreload
-=========
-
-An emulation of the linux libc `LD_PRELOAD` except for use with Go plugins for
-the addition of instrumentation and debugging utilities.
-
-## Pluginizer
-
-`pluginizer` is a bit of glue that makes it easier to turn underscore imports
-into plugins:
-
-```console
-$ go get github.com/Xe/gopreload/cmd/pluginizer
-$ pluginizer -help
-Usage of pluginizer:
- -dest string
- destination package to generate
- -pkg string
- package to underscore import
-$ pluginizer -pkg github.com/lib/pq -dest github.com/Xe/gopreload/database/postgres
-To build this plugin:
- $ go build -buildmode plugin -o /path/to/output.so github.com/Xe/gopreload/database/postgres
-```
-
-### Database drivers
-
-I have included plugin boilerplate autogenned versions of the sqlite, postgres
-and mysql database drivers.
-
-## Manhole
-
-[`manhole`][manhole] is an example of debugging and introspection tooling that has
-been useful when debugging past issues with long-running server processes.
-
-## Security Implications
-
-This package assumes that programs run using it are never started with environment
-variables that are set by unauthenticated users. Any errors in loading the plugins
-will be logged using the standard library logger `log` and ignored.
-
-This has about the same security implications as [`LD_PRELOAD`][ld-preload] does in most
-Linux distributions, but the risk is minimal compared to the massive benefit for
-being able to have arbitrary background services all be able to be dug into using
-the same tooling or being able to have metric submission be completely separated
-from the backend metric creation. Common logging setup processes can be _always_
-loaded, making the default logger settings into the correct settings.
-
----
-
-[manhole]: https://github.com/Xe/gopreload/tree/master/manhole
-[ld-preload]: https://rafalcieslak.wordpress.com/2013/04/02/dynamic-linker-tricks-using-ld_preload-to-cheat-inject-features-and-investigate-programs/
diff --git a/vendor/github.com/Xe/gopreload/doc.go b/vendor/github.com/Xe/gopreload/doc.go
deleted file mode 100644
index 720c5c1..0000000
--- a/vendor/github.com/Xe/gopreload/doc.go
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Package gopreload is a bit of a hack to emulate the behavior of LD_PRELOAD [ld-preload].
-This allows you to have automatically starting instrumentation, etc.
-
-[ld-preload]: http://man7.org/linux/man-pages/man8/ld.so.8.html (see LD_PRELOAD section)
-*/
-package gopreload
diff --git a/vendor/github.com/Xe/gopreload/preload.go b/vendor/github.com/Xe/gopreload/preload.go
deleted file mode 100644
index 1b5a0c9..0000000
--- a/vendor/github.com/Xe/gopreload/preload.go
+++ /dev/null
@@ -1,26 +0,0 @@
-//+build linux,go1.8
-
-package gopreload
-
-import (
- "log"
- "os"
- "plugin"
- "strings"
-)
-
-func init() {
- gpv := os.Getenv("GO_PRELOAD")
- if gpv == "" {
- return
- }
-
- for _, elem := range strings.Split(gpv, ",") {
- log.Printf("gopreload: trying to open: %s", elem)
- _, err := plugin.Open(elem)
- if err != nil {
- log.Printf("%v from GO_PRELOAD cannot be loaded: %v", elem, err)
- continue
- }
- }
-}