user

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

func New

func New(log *slog.Logger, p Repo) *Provider

func (*Provider) Create

func (p *Provider) Create(
	ctx context.Context, req dto.UserCreateReq,
) (string, error)

func (*Provider) Delete

func (p *Provider) Delete(
	ctx context.Context, req dto.UserDeleteReq,
) error

func (*Provider) Get

func (p *Provider) Get(
	ctx context.Context, req dto.UserGetReq,
) (*model.User, error)

func (*Provider) Update

func (p *Provider) Update(
	ctx context.Context, req dto.UserUpdateReq,
) error

type Repo added in v1.2.0

Jump to

Keyboard shortcuts

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