userservice

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

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Params

type Params struct {
	fx.In

	Repository userservice.Repository
	Log        *log.Log
}

type Usecase

type Usecase interface {
	CreateUser(ctx context.Context, username, password string) (user *User, err error)
	LoginUser(ctx context.Context, username, password string) (user *User, err error)
	DeleteUser(ctx context.Context, username, password string) (err error)
	GetUser(ctx context.Context, username string) (user *User, err error)
}

func NewUsecase

func NewUsecase(params Params) Usecase

type User

type User struct {
	Username string
}

Jump to

Keyboard shortcuts

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