grpc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(config config.Config, logger log.Logger, handler *Handler)

Serve serves grpc server on given port

Types

type Handler

type Handler struct {
	rpc.UnimplementedUsersServiceServer
	// contains filtered or unexported fields
}

func New

func New(userService app.UseCase, logger log.Logger) *Handler

func (*Handler) GetUser

func (h *Handler) GetUser(ctx context.Context, request *rpc.GetUserRequest) (*rpc.GetUserResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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