sqlitesession

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSqliteSessionStore

func NewSqliteSessionStore(connectionString string, useWAL bool) (session.Store, error)

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func New

func New() *Config

func (*Config) Apply

func (config *Config) Apply(_ *govalin.App)

func (*Config) ConnectionString

func (config *Config) ConnectionString(connectionString string) *Config

ConnectionString sets the connection string for the SQLite database. Default is ":memory:".

func (*Config) Name

func (config *Config) Name() string

func (*Config) OnInit

func (config *Config) OnInit(conf *govalin.Config)

func (*Config) UseWAL

func (config *Config) UseWAL(useWAL bool) *Config

UseWAL sets whether to use WAL mode for the SQLite database. Default is true.

Jump to

Keyboard shortcuts

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