repositories

package
v0.0.0-...-8c3e621 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseRunner

type DatabaseRunner interface {
	Update(func(tx *bolt.Tx) error) error
	View(func(tx *bolt.Tx) error) error
}

type Repository

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

func NewRepository

func NewRepository(db DatabaseRunner) *Repository

func (*Repository) Update

func (r *Repository) Update(t func(tx *bolt.Tx) error) error

func (*Repository) View

func (r *Repository) View(t func(tx *bolt.Tx) error) error

Jump to

Keyboard shortcuts

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