services

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

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

func NewUserService

func NewUserService(repo *repos.UserRepo) *UserService

func (*UserService) GetUserByID

func (s *UserService) GetUserByID(id string) (*models.UserApp, error)

func (*UserService) HasUser added in v0.0.3

func (s *UserService) HasUser() (bool, error)

func (*UserService) Login

func (s *UserService) Login(email, password string) (string, error)

func (*UserService) Register

func (s *UserService) Register(form forms.RegisterForm) (string, error)

type UserServiceInterface

type UserServiceInterface interface {
	Register(form forms.RegisterForm) (string, error)
	Login(email, password string) (string, error)
	GetUserByID(id string) (*models.UserApp, error)
	HasUser() (bool, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳