handler

package
v0.0.0-...-94edc7f Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToUser

func ToUser(user *model.User) *userv1.User

Types

type User

type User struct {
	userv1.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

func NewUser

func NewUser(svc UserService) *User

func (*User) Create

func (*User) GetByID

type UserService

type UserService interface {
	GetByID(ctx context.Context, id int64) (*model.User, error)
	Create(ctx context.Context, user *model.User) (*model.User, error)
}

Jump to

Keyboard shortcuts

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