repository

package
v0.0.0-...-5ff450b Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyEncryptionKeyRepository

type KeyEncryptionKeyRepository interface {
	Find(context.Context, int) (models.KeyEncryptionKey, error)
	FindActive(context.Context) (models.KeyEncryptionKey, error)
}

KeyEncryptionKeyRepository interface for KeyEncryptionKey (KEK) data access layer

func NewKeyEncryptionKeyRepository

func NewKeyEncryptionKeyRepository(keys []models.KeyEncryptionKey, db *sql.DB) KeyEncryptionKeyRepository

NewKeyEncryptionKeyRepository creates an KeyEncryptionKeyRepository using the default implementation.

type UserRepository

type UserRepository interface {
	Save(ctx context.Context, user models.User) error
	FindByUsername(ctx context.Context, username string) (models.User, bool, error)
}

func NewUserRepository

func NewUserRepository(db *sql.DB) UserRepository

Jump to

Keyboard shortcuts

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