Librairie d’aide à la création d’applications web pour Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
441 B

package gorilla
import (
"forge.cadoles.com/wpetit/goweb/service"
"github.com/gorilla/sessions"
)
// ServiceProvider returns a service.Provider for the
// the gorilla session service implementation
func ServiceProvider(sessionName string, store sessions.Store) service.Provider {
sessionService := NewSessionService(sessionName, store)
return func(container *service.Container) (interface{}, error) {
return sessionService, nil
}
}