service

package
v0.0.0-...-b805d9c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvideUserComponents

func ProvideUserComponents(c *dig.Container)

provide components for injection

Types

type CreateUserService

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

User use cases (port injection)

func NewCreateUserService

func NewCreateUserService(repository user.UserRepository) *CreateUserService

Create a new user service use case instance

func (*CreateUserService) CreateUser

func (service *CreateUserService) CreateUser(u *user.User) (int64, error)

Create a new user and store the user into the database

type UserService

type UserService struct {
	CreateUserServiceProvider *CreateUserService
}

user service instance

func NewUserService

func NewUserService() *UserService

func (*UserService) InitUserComponents

func (us *UserService) InitUserComponents(c *dig.Container) error

init service container

Jump to

Keyboard shortcuts

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