bolt

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2017 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reg

func Reg(store BoltStore, args ...string)

func RegWithOptions

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

Types

type BoltOptions

type BoltOptions struct {
	File           string               `json:"file"`
	KeyPairs       [][]byte             `json:"keyPairs"`
	BucketName     string               `json:"bucketName"`
	SessionOptions *echo.SessionOptions `json:"session"`
}

type BoltStore

type BoltStore interface {
	ss.Store
}

func New

func New(opts *BoltOptions) BoltStore

func NewBoltStore

func NewBoltStore(opts *BoltOptions) (BoltStore, error)

NewBoltStore ./sessions.db

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(r engine.Request, name string) (*sessions.Session, error)

func (*Storex) Save

func (s *Storex) Save(r engine.Request, w engine.Response, session *sessions.Session) error

Jump to

Keyboard shortcuts

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