users

package
v0.0.0-...-065b004 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Implementation

type Implementation struct {
	desc.UnimplementedUserV1Server
	// contains filtered or unexported fields
}

func New

func New(u Usecase) *Implementation

func (*Implementation) Create

func (*Implementation) Delete

func (*Implementation) Get

func (*Implementation) Update

type Usecase

type Usecase interface {
	Get(ctx context.Context, filter model.UserFilter) (*model.User, error)
	Create(ctx context.Context, user model.User) (int, error)
	Update(ctx context.Context, user model.User) error
	Delete(ctx context.Context, id int) error
}

Directories

Path Synopsis
Package mock_users is a generated GoMock package.
Package mock_users is a generated GoMock package.

Jump to

Keyboard shortcuts

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