Vova Tkach 6 years ago
parent
commit
61855170fb

+ 3 - 3
Gopkg.lock

@@ -18,12 +18,12 @@
   version = "v1.0.0"
 
 [[projects]]
-  digest = "1:287426c516549a444caa7e6bab8a44f4e23af54eb3a87fd49f13d7c5a7b06038"
+  digest = "1:3e4c59e0a867aea93adbfe66eb86b41a718dc9066534a068d00325164731bdf6"
   name = "github.com/vladimirok5959/golang-server-sessions"
   packages = ["session"]
   pruneopts = "UT"
-  revision = "c6d341a14a93caab1ba52fb552527ad88a5fa53b"
-  version = "v1.0.0"
+  revision = "e000912f70a8354cc4d0bd05617629970e05c9b9"
+  version = "v1.0.1"
 
 [solve-meta]
   analyzer-name = "dep"

+ 3 - 3
vendor/github.com/vladimirok5959/golang-server-sessions/session/bool.go

@@ -1,6 +1,6 @@
 package session
 
-func (this *session) IsSetBool(name string) bool {
+func (this *Session) IsSetBool(name string) bool {
 	if _, ok := this.v.Bool[name]; ok {
 		return true
 	} else {
@@ -8,7 +8,7 @@ func (this *session) IsSetBool(name string) bool {
 	}
 }
 
-func (this *session) GetBool(name string, def bool) bool {
+func (this *Session) GetBool(name string, def bool) bool {
 	if v, ok := this.v.Bool[name]; ok {
 		return v
 	} else {
@@ -16,7 +16,7 @@ func (this *session) GetBool(name string, def bool) bool {
 	}
 }
 
-func (this *session) SetBool(name string, value bool) {
+func (this *Session) SetBool(name string, value bool) {
 	this.v.Bool[name] = value
 	this.c = true
 }

+ 3 - 3
vendor/github.com/vladimirok5959/golang-server-sessions/session/int.go

@@ -1,6 +1,6 @@
 package session
 
-func (this *session) IsSetInt(name string) bool {
+func (this *Session) IsSetInt(name string) bool {
 	if _, ok := this.v.Int[name]; ok {
 		return true
 	} else {
@@ -8,7 +8,7 @@ func (this *session) IsSetInt(name string) bool {
 	}
 }
 
-func (this *session) GetInt(name string, def int) int {
+func (this *Session) GetInt(name string, def int) int {
 	if v, ok := this.v.Int[name]; ok {
 		return v
 	} else {
@@ -16,7 +16,7 @@ func (this *session) GetInt(name string, def int) int {
 	}
 }
 
-func (this *session) SetInt(name string, value int) {
+func (this *Session) SetInt(name string, value int) {
 	this.v.Int[name] = value
 	this.c = true
 }

+ 4 - 4
vendor/github.com/vladimirok5959/golang-server-sessions/session/session.go

@@ -16,7 +16,7 @@ type vars struct {
 	String map[string]string
 }
 
-type session struct {
+type Session struct {
 	w http.ResponseWriter
 	r *http.Request
 	d string
@@ -25,8 +25,8 @@ type session struct {
 	i string
 }
 
-func New(w http.ResponseWriter, r *http.Request, tmpdir string) *session {
-	sess := session{w: w, r: r, d: tmpdir, v: &vars{}, c: false, i: ""}
+func New(w http.ResponseWriter, r *http.Request, tmpdir string) *Session {
+	sess := Session{w: w, r: r, d: tmpdir, v: &vars{}, c: false, i: ""}
 
 	cookie, err := r.Cookie("session")
 	if err == nil && len(cookie.Value) == 40 {
@@ -68,7 +68,7 @@ func New(w http.ResponseWriter, r *http.Request, tmpdir string) *session {
 	return &sess
 }
 
-func (this *session) Close() bool {
+func (this *Session) Close() bool {
 	if !this.c {
 		return false
 	}

+ 3 - 3
vendor/github.com/vladimirok5959/golang-server-sessions/session/string.go

@@ -1,6 +1,6 @@
 package session
 
-func (this *session) IsSetString(name string) bool {
+func (this *Session) IsSetString(name string) bool {
 	if _, ok := this.v.String[name]; ok {
 		return true
 	} else {
@@ -8,7 +8,7 @@ func (this *session) IsSetString(name string) bool {
 	}
 }
 
-func (this *session) GetString(name string, def string) string {
+func (this *Session) GetString(name string, def string) string {
 	if v, ok := this.v.String[name]; ok {
 		return v
 	} else {
@@ -16,7 +16,7 @@ func (this *session) GetString(name string, def string) string {
 	}
 }
 
-func (this *session) SetString(name string, value string) {
+func (this *Session) SetString(name string, value string) {
 	this.v.String[name] = value
 	this.c = true
 }