store

package
v0.0.0-...-62de7c0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrationLogger

type MigrationLogger struct {
	*logrus.Logger
}

MigrationLogger implements the migrate.Logger interface

func WrapMigrationLogger

func WrapMigrationLogger(l *logrus.Logger) *MigrationLogger

WrapMigrationLogger returns a logger that can be used during migrations

func (*MigrationLogger) Verbose

func (l *MigrationLogger) Verbose() bool

Verbose checks if verbose logging should be used

type Store

type Store interface {
	Migrate() error

	GetAll() ([]types.User, error)
	GetByID(id string) (*types.User, error)
	GetByEmail(email string) (*types.User, error)
	Create(*types.User) error
	Update(*types.User) error
	Delete(*types.User) error
}

Store is an interface for interacting with a backend user store

Directories

Path Synopsis
migrations
Code generated for package migrations by go-bindata DO NOT EDIT.
Code generated for package migrations by go-bindata DO NOT EDIT.

Jump to

Keyboard shortcuts

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