bolt

package
v2.15.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultCheckInterval = time.Minute * 30
)

Functions

func New

func New(opts *BoltOptions) sessions.Store

func NewBoltStore

func NewBoltStore(opts *BoltOptions) (sessions.Store, error)

NewBoltStore ./sessions.db

func Reg

func Reg(store sessions.Store, args ...string)

func RegWithOptions

func RegWithOptions(opts *BoltOptions, args ...string) sessions.Store

Types

type BoltOptions

type BoltOptions struct {
	File          string        `json:"file"`
	KeyPairs      [][]byte      `json:"keyPairs"`
	BucketName    string        `json:"bucketName"`
	CheckInterval time.Duration `json:"checkInterval"`
}

type Storex

type Storex struct {
	*store.Store
	// contains filtered or unexported fields
}

func (*Storex) Get

func (s *Storex) Get(ctx echo.Context, name string) (*sessions.Session, error)

func (*Storex) New

func (s *Storex) New(ctx echo.Context, name string) (*sessions.Session, error)

func (*Storex) Reload added in v1.6.0

func (s *Storex) Reload(ctx echo.Context, session *sessions.Session) error

func (*Storex) Save

func (s *Storex) Save(ctx echo.Context, session *sessions.Session) error

Jump to

Keyboard shortcuts

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