user

package
v0.0.0-...-5863de9 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithEmailNotifications

func WithEmailNotifications() wrapper.QuerySpecification

func WithSMSNotifications

func WithSMSNotifications() wrapper.QuerySpecification

func WithUserName

func WithUserName(username string) wrapper.QuerySpecification

Types

type Repository

type Repository interface {
	FindUser(ctx context.Context, username string) (*domain.User, error)
	SaveUser(ctx context.Context, user *domain.User) error
	SearchUser(ctx context.Context, specification wrapper.QuerySpecification) ([]*domain.User, error)
}

func NewRepository

func NewRepository(api wrapper.DynamoDBAPI, userTable string) Repository

type Service

type Service interface {
	SaveUser(ctx context.Context, user *domain.User) error
	SearchUser(ctx context.Context, specification wrapper.QuerySpecification) ([]*domain.User, error)
}

func NewService

func NewService(repository Repository) Service

Directories

Path Synopsis
Package mock_user is a generated GoMock package.
Package mock_user is a generated GoMock package.

Jump to

Keyboard shortcuts

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