Documentation ¶
Overview ¶
Copyright 2016 Wenhui Shen <www.webx.top> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Session implements middleware for easily using github.com/gorilla/sessions within echo. This package was originally inspired from the https://github.com/ipfans/echo-session package, and modified to provide more functionality
Index ¶
- func Del(name string)
- func Get(name string) sessions.Store
- func NewMySession(store sessions.Store, name string, ctx echo.Context) echo.Sessioner
- func NewSession(ctx echo.Context) echo.Sessioner
- func Reg(name string, store sessions.Store)
- func StoreEngine(options *echo.SessionOptions) (store sessions.Store)
- type Session
- func (s *Session) AddFlash(value interface{}, vars ...string) echo.Sessioner
- func (s *Session) Clear() echo.Sessioner
- func (s *Session) Delete(key string) echo.Sessioner
- func (s *Session) Flashes(vars ...string) []interface{}
- func (s *Session) Get(key string) interface{}
- func (s *Session) ID() string
- func (s *Session) Save() error
- func (s *Session) Session() *sessions.Session
- func (s *Session) Set(key string, val interface{}) echo.Sessioner
- func (s *Session) SetID(id string) echo.Sessioner
- func (s *Session) Written() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMySession ¶
func StoreEngine ¶
func StoreEngine(options *echo.SessionOptions) (store sessions.Store)
Types ¶
Click to show internal directories.
Click to hide internal directories.