Documentation ¶
Index ¶
- Variables
- func HTTPLogger(handler http.Handler) http.Handler
- type Metadata
- type ResponseRecorder
- type Server
- func (server *Server) CreateUser(ctx context.Context, req *vulcanv1.CreateUserRequest) (*vulcanv1.CreateUserResponse, error)
- func (server *Server) LoginUser(ctx context.Context, req *vulcanv1.LoginUserRequest) (*vulcanv1.LoginUserResponse, error)
- func (server *Server) UpdateUser(ctx context.Context, req *vulcanv1.UpdateUserRequest) (*vulcanv1.UpdateUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type ResponseRecorder ¶
type ResponseRecorder struct { http.ResponseWriter StatusCode int Body []byte }
func (*ResponseRecorder) WriteHeader ¶
func (rec *ResponseRecorder) WriteHeader(statusCode int)
type Server ¶
type Server struct { vulcanv1.UnimplementedSimpleBankServer // contains filtered or unexported fields }
func (*Server) CreateUser ¶
func (server *Server) CreateUser(ctx context.Context, req *vulcanv1.CreateUserRequest) (*vulcanv1.CreateUserResponse, error)
func (*Server) LoginUser ¶
func (server *Server) LoginUser( ctx context.Context, req *vulcanv1.LoginUserRequest, ) (*vulcanv1.LoginUserResponse, error)
func (*Server) UpdateUser ¶
func (server *Server) UpdateUser( ctx context.Context, req *vulcanv1.UpdateUserRequest, ) (*vulcanv1.UpdateUserResponse, error)
Click to show internal directories.
Click to hide internal directories.