Categorygithub.com/go-macaron/session
modulepackage
1.0.3
Repository: https://github.com/go-macaron/session.git
Documentation: pkg.go.dev

# README

session

GitHub Workflow Status codecov GoDoc Sourcegraph

Middleware session provides session management for Macaron. It can use many session providers, including memory, file, Redis, Memcache, PostgreSQL, MySQL, Couchbase, Ledis and Nodb.

Installation

The minimum requirement of Go is 1.6 (1.13 if using Redis, 1.10 if using MySQL).

go get github.com/go-macaron/session

Getting Help

Credits

This package is a modified version of beego/session.

License

This project is under the Apache License, Version 2.0. See the LICENSE file for the full license text.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
NewFileStore creates and returns a file session store.
NewManager creates and returns a new session manager by given provider name and configuration.
NewMemStore creates and returns a memory session store.
Register registers a provider.
Sessioner is a middleware that maps a session.SessionStore service into the Macaron handler chain.
No description provided by the author

# Structs

FileProvider represents a file session provider implementation.
FileStore represents a file session store implementation.
No description provided by the author
Manager represents a struct that contains session provider and its configuration.
MemProvider represents a in-memory session provider implementation.
MemStore represents a in-memory session store implementation.
Options represents a struct for specifying configuration options for the session middleware.

# Interfaces

Provider is the interface that provides session manipulations.
RawStore is the interface that operates the session data.
Store is the interface that contains all data for one session process with specific ID.