session

package
v0.0.0-...-111e6d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	ID            string
	AuthKey       string
	Encryption    string
	Expired       int
	TimeForUpdate int
	Path          string
	HttpOnly      bool
}
var SessionConfig Session

type SessionType

type SessionType struct {
	Config  *Session
	Cookie  *sessions.CookieStore
	MySQL   *mysqlstore.MySQLStore
	Postgre *pgstore.PGStore
}
var SessType SessionType

func Init

func Init() SessionType

func (*SessionType) NewConfig

func (c *SessionType) NewConfig(cfg *Session)

func (*SessionType) NewCookieStore

func (c *SessionType) NewCookieStore()

func (*SessionType) NewMysqlStore

func (m *SessionType) NewMysqlStore(cfg conf.Configuration)

func (*SessionType) NewPostgresStore

func (p *SessionType) NewPostgresStore(cfg conf.Configuration)

func (*SessionType) Send

func (c *SessionType) Send()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL