package
0.0.0-20230910172312-a0ff8ac49027
Repository: https://github.com/marselester/ddd-err.git
Documentation: pkg.go.dev
# Functions
NewGRPCUserServer makes user service available as a gRPC UserServer.
NewHTTPHandler attaches service API endpoints to HTTP routes in REST-style fashion.
NewLoggingMiddleware makes a logging middleware for UserService that logs user creation attempts, and which errors occurred (invalid username format, storage connection errors).
NewService configures new UserService that manages user accounts.
WithLogger configures a logger to debug the service.
# Structs
CreateUserReq collects the request parameters for the CreateUser method.
CreateUserResp collects the response values for the CreateUser method.
FindUserByIDReq collects the request parameters for the FindUserByID method.
FindUserByIDResp collects the response values for the FindUserByID method.
# Type aliases
ConfigOption configures the UserService.