grpc

package
v0.0.0-...-d64eb31 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(business Business) *grpcService

Types

type Business

type Business interface {
	CreateNewUser(ctx context.Context, data *usermodel.UserCreate) error
	GetUserRole(ctx context.Context, userId int) (string, error)
	FindUserById(ctx context.Context, id int) (*usermodel.User, error)
	FindUserByIds(ctx context.Context, ids []int) ([]usermodel.User, error)
}

Jump to

Keyboard shortcuts

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