database

package
v0.0.0-...-b1b0a22 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2016 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Main = Storage{}

Main represents the main storage.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	DB     *bolt.DB
	Opened bool
}

Storage is a type that contains a bolt.DB and a boolean that indicates if the connection is already open or not.

func (*Storage) Close

func (s *Storage) Close() error

Close closes the connection (or at least attempts to)

func (*Storage) Open

func (s *Storage) Open() error

Open opens the database connection and create the file if necessary

Jump to

Keyboard shortcuts

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