Documentation ¶
Index ¶
- func GrpcLogger(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
- func HttpLogger(handler http.Handler) http.Handler
- type Metadata
- type RepsonseRecorder
- type Server
- func (server *Server) CreateAccount(ctx context.Context, req *pb.CreateAccountRequest) (*pb.CreateAccountResponse, error)
- func (server *Server) CreateTransfer(ctx context.Context, req *pb.CreateTransferRequest) (*pb.CreateTransferResponse, error)
- func (server *Server) CreateUser(ctx context.Context, req *pb.CreatUserRequest) (*pb.CreatUserResponse, error)
- func (server *Server) ListAccounts(ctx context.Context, req *pb.ListAccountsRequest) (*pb.ListAccountsResponse, error)
- func (server *Server) LoginUser(ctx context.Context, req *pb.LoginRequest) (*pb.LoginResponse, error)
- func (server *Server) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserResponse, error)
- func (server *Server) VerifyEmails(ctx context.Context, req *pb.VerifyEmailsRequest) (*pb.VerifyEmailsResponse, error)
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 RepsonseRecorder ¶
type RepsonseRecorder struct { http.ResponseWriter StatusCode int Body []byte }
func (*RepsonseRecorder) WriteHeader ¶
func (rec *RepsonseRecorder) WriteHeader(statusCode int)
type Server ¶
type Server struct { pb.UnimplementedSimpleBankServer // contains filtered or unexported fields }
func (*Server) CreateAccount ¶
func (server *Server) CreateAccount(ctx context.Context, req *pb.CreateAccountRequest) (*pb.CreateAccountResponse, error)
func (*Server) CreateTransfer ¶
func (server *Server) CreateTransfer(ctx context.Context, req *pb.CreateTransferRequest) (*pb.CreateTransferResponse, error)
func (*Server) CreateUser ¶
func (server *Server) CreateUser(ctx context.Context, req *pb.CreatUserRequest) (*pb.CreatUserResponse, error)
func (*Server) ListAccounts ¶
func (server *Server) ListAccounts(ctx context.Context, req *pb.ListAccountsRequest) (*pb.ListAccountsResponse, error)
func (*Server) LoginUser ¶
func (server *Server) LoginUser(ctx context.Context, req *pb.LoginRequest) (*pb.LoginResponse, error)
func (*Server) UpdateUser ¶
func (server *Server) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserResponse, error)
func (*Server) VerifyEmails ¶
func (server *Server) VerifyEmails(ctx context.Context, req *pb.VerifyEmailsRequest) (*pb.VerifyEmailsResponse, error)
Click to show internal directories.
Click to hide internal directories.