package
8.4.4+incompatible
Repository: https://github.com/codehakase/iris.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddCookie adds a cookie.
DecodeRemoteStore accepts a series of bytes and returns the store.
GetCookie returns cookie's value by it's name returns empty string if nothing was found.
IsValidCookieDomain returns true if the receiver is a valid domain to set valid means that is recognised as 'domain' by the browser, so it(the cookie) can be shared with subdomains also.
New returns a new fast, feature-rich sessions manager it can be adapted to an iris station.
RemoveCookie deletes a cookie by it's name/key.

# Constants

ActionClear occurs when clear all values but keep the database session entry.
ActionCreate occurs when add a key-value pair on the database session entry for the first time.
ActionDelete occurs when delete a specific value from a specific key from the database session entry.
ActionDestroy occurs when destroy, destroy is the action when clear all and remove the session entry from the database.
ActionInsert occurs when add a key-value pair on the database session entry.
ActionUpdate occurs when modify an existing key-value pair on the database session entry.
DefaultCookieName the secret cookie's name for sessions.

# Variables

CookieExpireDelete may be set on Cookie.Expire for expiring the given cookie.
CookieExpireUnlimited indicates that the cookie doesn't expire.

# Structs

No description provided by the author
LifeTime controls the session expiration datetime.
RemoteStore is a helper which is a wrapper for the store, it can be used as the session "table" which will be saved to the session database.
No description provided by the author
A Sessions manager should be responsible to Start a sesion, based on a Context, which should return a compatible Session interface, type.
SyncPayload reports the state of the session inside a database sync action.

# Interfaces

Database is the interface which all session databases should implement By design it doesn't support any type of cookie session like other frameworks.
Encoding is the Cookie Encoder/Decoder interface, which can be passed as configuration field alternatively to the `Encode` and `Decode` fields.

# Type aliases

Action reports the specific action that the memory store sends to the database.