Categorygithub.com/go-rat/gormstore
modulepackage
1.0.6
Repository: https://github.com/go-rat/gormstore.git
Documentation: pkg.go.dev

# README

GORM backend for go-rat session

Use:

import "github.com/go-rat/gormstore"

Documentation

https://pkg.go.dev/github.com/go-rat/gormstore?tab=doc

Example

// initialize and setup cleanup
store := gormstore.New(gorm.Open(...))

For more details see gormstore documentation.

Testing

Just sqlite3 tests:

go test

All databases using docker:

./test

If docker is not local (docker-machine etc):

DOCKER_IP=$(docker-machine ip dev) ./test

License

gormstore is licensed under the MIT license. See LICENSE for the full license text.

# Functions

New creates a new gormstore session.
NewOptions creates a new gormstore session with options.

# Structs

Options for gormstore.
Store represent a gormstore.