Merge branch 'master' of github.com:msoedov/hacker-slides
This commit is contained in:
commit
ed5f75e735
2 changed files with 3 additions and 2 deletions
|
@ -21,7 +21,7 @@ This repo is a reworked version of [Sandstorm Hacker Slides](https://github.com/
|
||||||
|
|
||||||
|
|
||||||
| Edit mode | Published |
|
| Edit mode | Published |
|
||||||
| --- | --- | --- |
|
| --- | --- |
|
||||||
| ![1st](https://sc-cdn.scaleengine.net/i/520e2f4a8ca107b0263936507120027e.png) | ![1st](https://sc-cdn.scaleengine.net/i/7ae0d31a40b0b9e7acc3f131754874cf.png) |
|
| ![1st](https://sc-cdn.scaleengine.net/i/520e2f4a8ca107b0263936507120027e.png) | ![1st](https://sc-cdn.scaleengine.net/i/7ae0d31a40b0b9e7acc3f131754874cf.png) |
|
||||||
|![2nd](https://sc-cdn.scaleengine.net/i/5acba66070e24f76bc7f20224adc611e.png) | ![2nd](https://sc-cdn.scaleengine.net/i/fee3e1374cb13b1d8c292becb7f514ae.png) |
|
|![2nd](https://sc-cdn.scaleengine.net/i/5acba66070e24f76bc7f20224adc611e.png) | ![2nd](https://sc-cdn.scaleengine.net/i/fee3e1374cb13b1d8c292becb7f514ae.png) |
|
||||||
|
|
||||||
|
|
3
main.go
3
main.go
|
@ -11,6 +11,7 @@ import (
|
||||||
log "github.com/Sirupsen/logrus"
|
log "github.com/Sirupsen/logrus"
|
||||||
haikunator "github.com/atrox/haikunatorgo"
|
haikunator "github.com/atrox/haikunatorgo"
|
||||||
"github.com/gin-contrib/sessions"
|
"github.com/gin-contrib/sessions"
|
||||||
|
"github.com/gin-contrib/sessions/cookie"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
cache "github.com/hashicorp/golang-lru"
|
cache "github.com/hashicorp/golang-lru"
|
||||||
"github.com/msoedov/hacker-slides/auth"
|
"github.com/msoedov/hacker-slides/auth"
|
||||||
|
@ -27,7 +28,7 @@ func NewApp() *gin.Engine {
|
||||||
|
|
||||||
r := gin.Default()
|
r := gin.Default()
|
||||||
|
|
||||||
store := sessions.NewCookieStore([]byte("secret"))
|
store := cookie.NewStore([]byte("secret"))
|
||||||
arc, err := cache.NewARC(10)
|
arc, err := cache.NewARC(10)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failied to allocate cache %#v", err)
|
log.Fatalf("Failied to allocate cache %#v", err)
|
||||||
|
|
Loading…
Reference in a new issue