gapi

package
v0.0.0-...-be07d69 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrpcLogger

func GrpcLogger(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)

Types

type Metadata

type Metadata struct {
	UserAgent string
	ClientIP  string
}

type Server

type Server struct {
	pb.UnimplementedSimpleBankServer
	// contains filtered or unexported fields
}

Server gRPC request for our banking service.

func NewServer

func NewServer(config util.Config, store db.Store, taskDistributor worker.TaskDistributor) (*Server, error)

func (*Server) CreateUser

func (s *Server) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserResponse, error)

func (*Server) LoginUser

func (s *Server) LoginUser(ctx context.Context, req *pb.LoginUserRequest) (*pb.LoginUserResponse, error)

func (*Server) UpdateUser

func (s *Server) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserResponse, error)

func (*Server) VerifyEmail

func (s *Server) VerifyEmail(ctx context.Context, req *pb.VerifyEmailRequest) (*pb.VerifyEmailResponse, error)

Jump to

Keyboard shortcuts

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