repo

package
v0.0.0-...-40c8b04 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type MockRepo

type MockRepo struct {
	mock.Mock
}

func NewMockRepo

func NewMockRepo() *MockRepo

func (*MockRepo) AuthKey

func (m *MockRepo) AuthKey(ctx context.Context, userID, keyID string) (models.AuthKey, error)

func (*MockRepo) DeleteAuthKey

func (m *MockRepo) DeleteAuthKey(ctx context.Context, userID, keyID string) error

func (*MockRepo) SetAuthKey

func (m *MockRepo) SetAuthKey(ctx context.Context, authKey models.AuthKey) error

type Repo

type Repo interface {
	// contains filtered or unexported methods
}

func NewRepo

func NewRepo(conn *sqlx.DB, pool *memdb.Pool, secretKey string) Repo

NewRepo returns db implements Repo interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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