boltpw

package
v0.0.0-...-a579f18 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Driver for BoltDB

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDB

type BoltDB struct {
	DB     *bolt.DB
	Bucket []byte
}

func New

func New(db *bolt.DB, bucket string) (*BoltDB, error)

New will return a new Database interface that read/writes items to a single bucket.

func (BoltDB) Add

func (b BoltDB) Add(s string) error

Has satisfies the password.DbWriter interface. It writes a single password to the database

func (BoltDB) AddMultiple

func (b BoltDB) AddMultiple(s []string) error

AddMultiple satisfies the password.BulkWriter interface. It writes a number of passwords to the database

func (BoltDB) Has

func (b BoltDB) Has(s string) (bool, error)

Has satisfies the password.DB interface

Jump to

Keyboard shortcuts

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