userservice

package
v0.0.0-...-b3f0c1d Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Foo string
	Bar string
}

type Event

type Event interface {
	Created(ctx context.Context, u entity.User) error
	Updated(ctx context.Context, id uint) error
	Deleted(ctx context.Context, u entity.User) error
}

type Repository

type Repository interface {
	Create(u entity.User) (entity.User, error)
	IsMobileUnique(mobile string) (bool, error)
	GetByMobile(mobile string) (entity.User, error)
	GetByID(id uint) (entity.User, error)
}

type UserInteractor

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

func New

func New(
	config *configs.Config,
	redisClient redis.DB,
	authInteractor AuthGenerator,
	taskInteractor TaskGenerator,
	event Event,
	repository Repository,
) *UserInteractor

func (*UserInteractor) CreateTask

func (*UserInteractor) Login

func (*UserInteractor) Profile

func (*UserInteractor) RefreshToken

func (*UserInteractor) Register

func (*UserInteractor) Tasks

Jump to

Keyboard shortcuts

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