1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-19 09:56:02 +00:00

Update to 8.2.6 | More on Iris Controllers: optional EndRequest. Read HISTORY.md

Former-commit-id: 5255ca5c4a898e2f3e7388f3af0457599e65f87f
This commit is contained in:
kataras
2017-08-14 16:21:51 +03:00
parent 8cd07719a6
commit 35620f6ecb
19 changed files with 105 additions and 53 deletions

View File

@@ -204,6 +204,7 @@ iris session manager lives on its own [package](https://github.com/kataras/iris/
- [Databases](sessions/database)
* [File](sessions/database/file/main.go)
* [BoltDB](sessions/database/boltdb/main.go)
* [LevelDB](sessions/database/leveldb/main.go)
* [Redis](sessions/database/redis/main.go)
> You're free to use your own favourite sessions package if you'd like so.

View File

@@ -42,7 +42,7 @@ func (c *User) Get() {
}
/* Can use more than one, the factory will make sure
that the correct http methods are being registed for this
that the correct http methods are being registered for this
controller, uncommend these if you want:
func (c *User) Post() {}

View File

@@ -61,7 +61,7 @@ func (c *User) Get() {
}
/* Can use more than one, the factory will make sure
that the correct http methods are being registed for this
that the correct http methods are being registered for this
controller, uncommend these if you want:
func (c *User) Post() {}

View File

@@ -86,7 +86,7 @@ func main() {
app.Get("/update", func(ctx context.Context) {
// updates expire date with a new date
sess.ShiftExpiraton(ctx)
sess.ShiftExpiration(ctx)
})
app.Run(iris.Addr(":8080"))

View File

@@ -82,7 +82,7 @@ func main() {
app.Get("/update", func(ctx context.Context) {
// updates expire date with a new date
sess.ShiftExpiraton(ctx)
sess.ShiftExpiration(ctx)
})
app.Run(iris.Addr(":8080"))

View File

@@ -87,7 +87,7 @@ func main() {
app.Get("/update", func(ctx context.Context) {
// updates expire date with a new date
sess.ShiftExpiraton(ctx)
sess.ShiftExpiration(ctx)
})
app.Run(iris.Addr(":8080"))

View File

@@ -76,7 +76,7 @@ func main() {
app.Get("/update", func(ctx context.Context) {
// updates expire date with a new date
sess.ShiftExpiraton(ctx)
sess.ShiftExpiration(ctx)
})
app.Run(iris.Addr(":8080"))

View File

@@ -64,7 +64,7 @@ func newApp() *iris.Application {
app.Get("/update", func(ctx context.Context) {
// updates expire date with a new date
mySessions.ShiftExpiraton(ctx)
mySessions.ShiftExpiration(ctx)
})
app.Get("/destroy", func(ctx context.Context) {

View File

@@ -71,7 +71,7 @@ func main() {
app.Get("/update", func(ctx context.Context) {
// updates expire date
sess.ShiftExpiraton(ctx)
sess.ShiftExpiration(ctx)
})
app.Get("/destroy", func(ctx context.Context) {

View File

@@ -76,7 +76,7 @@ func (c *UserController) Get() {
}
/* Can use more than one, the factory will make sure
that the correct http methods are being registed for this
that the correct http methods are being registered for this
controller, uncommend these if you want:
func (c *User) Post() {}

View File

@@ -37,7 +37,7 @@ func (c *User) Get() {
}
/* Can use more than one, the factory will make sure
that the correct http methods are being registed for this
that the correct http methods are being registered for this
controller, uncommend these if you want:
func (c *User) Post() {}