gridFs

package
v0.0.0-...-1eacf42 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

gridFs uses the mgo mongo driver to store sessions on mongo gridfs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db, prefix string) session.Store

New returns a new store

Types

type Store

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

func (*Store) GC

func (sessionStore *Store) GC(c *container.IoC, before time.Time)

func (*Store) Reader

func (sessionStore *Store) Reader(c *container.IoC, name string, t time.Time) (reader io.ReadCloser, err error)

func (*Store) Remove

func (sessionStore *Store) Remove(c *container.IoC, name string) (err error)

func (*Store) Writer

func (sessionStore *Store) Writer(c *container.IoC, name string) (writer io.WriteCloser, err error)

Jump to

Keyboard shortcuts

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