bolt

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

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

Go to latest
Published: Oct 17, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func (*Driver) Close

func (d *Driver) Close() error

Close closes the underlying database.

func (*Driver) Open

func (d *Driver) Open(path string) error

Open opens the connection to the bolt database defined by path.

type UserRepository

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

func NewUserRepository

func NewUserRepository(driver *Driver) *UserRepository

func (*UserRepository) GetByGoogleID

func (r *UserRepository) GetByGoogleID(googleID string) (google.User, error)

func (*UserRepository) GetByID

func (r *UserRepository) GetByID(id int) (google.User, error)

func (*UserRepository) Upsert

func (r *UserRepository) Upsert(user google.User) error

Jump to

Keyboard shortcuts

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