vendor the sessions/sessiondb/badger database

//  The Iris' vendored badger it's self-vendored as well.
	// Why?
	// Because they were changing their public API a lot and iris was unable to built itself...
	// https://github.com/dgraph-io/badger/pull/256
	// https://github.com/dgraph-io/badger/pull/254
	// https://github.com/dgraph-io/badger/pull/261
	// I fixed everything by pushing a PR(the original's repository tests were failing) from the kataras/badger to the dgraph-io/badger:
	// https://github.com/dgraph-io/badger/pull/264
	// But it's better to have it on its own folder for the shake of stability,
	// Iris should be not affected of any third-party changes,
	// this method guards against upstream renames and deletes.


Former-commit-id: 56e796cc96ac93024c1c53905ae9a78b81b37230
This commit is contained in:
Gerasimos (Makis) Maropoulos 2017-10-11 01:21:54 +03:00
parent 99c18f5a86
commit be03f915bb
3 changed files with 17 additions and 6 deletions

12
Gopkg.lock generated
View File

@ -15,9 +15,9 @@
[[projects]] [[projects]]
branch = "master" branch = "master"
name = "github.com/Unknwon/i18n" name = "github.com/iris-contrib/i18n"
packages = ["."] packages = ["."]
revision = "8372b908b5876d26cfa46a85fc4851b981dad102" revision = "976ad7f3463c8f0b8fd949cf5e78a73a1828c96d"
[[projects]] [[projects]]
name = "github.com/ajg/form" name = "github.com/ajg/form"
@ -37,6 +37,12 @@
revision = "2f1ce7a837dcb8da3ec595b1dac9d0632f0f99e8" revision = "2f1ce7a837dcb8da3ec595b1dac9d0632f0f99e8"
version = "v1.3.1" version = "v1.3.1"
[[projects]]
branch = "master"
name = "github.com/dgraph-io/badger"
packages = ["."]
revision = "d8b951787ebe5c42286475df8a3dea25045bda1a"
[[projects]] [[projects]]
name = "github.com/davecgh/go-spew" name = "github.com/davecgh/go-spew"
packages = ["spew"] packages = ["spew"]
@ -101,7 +107,7 @@
branch = "master" branch = "master"
name = "github.com/iris-contrib/formBinder" name = "github.com/iris-contrib/formBinder"
packages = ["."] packages = ["."]
revision = "ed52a69d2bfbe92c9e8c5a35cad28da183ededdc" revision = "ad9fb86c356f971f30319c40ddbdcf72129a2791"
[[projects]] [[projects]]
branch = "master" branch = "master"

View File

@ -8,7 +8,7 @@
[[constraint]] [[constraint]]
branch = "master" branch = "master"
name = "github.com/Unknwon/i18n" name = "github.com/iris-contrib/i18n"
[[constraint]] [[constraint]]
branch = "master" branch = "master"
@ -18,6 +18,10 @@
branch = "master" branch = "master"
name = "github.com/boltdb/bolt" name = "github.com/boltdb/bolt"
[[constraint]]
branch = "master"
name = "github.com/dgraph-io/badger"
[[constraint]] [[constraint]]
branch = "master" branch = "master"
name = "github.com/eknkc/amber" name = "github.com/eknkc/amber"

View File

@ -1,11 +1,12 @@
// Package i18n provides internalization and localization via middleware. See _examples/miscellaneous/i18n // Package i18n provides internalization and localization via middleware.
// See _examples/miscellaneous/i18n
package i18n package i18n
import ( import (
"reflect" "reflect"
"strings" "strings"
"github.com/Unknwon/i18n" "github.com/iris-contrib/i18n"
"github.com/kataras/iris/context" "github.com/kataras/iris/context"
) )