Documentation ¶
Overview ¶
Package handlers provides http handlers
Index ¶
- Variables
- func BuildCommandDispatchHandler(cb commandbus.CommandBus) http.Handler
- func BuildGetUserHandler(repository persistence.UserRepository) http.Handler
- func BuildListUserHandler(repository persistence.UserRepository) http.Handler
- func BuildLivenessHandler() http.Handler
- func BuildMeHandler(repository persistence.UserRepository) http.Handler
- func BuildReadinessHandler(db *sql.DB, connMap map[string]*grpc.ClientConn) http.Handler
- func BuildSocialAuthHandler(apiURL string, cb commandbus.CommandBus, commandName string, ...) http.Handler
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyRequestBody = fmt.Errorf("empty request body")
ErrEmptyRequestBody is when an request has empty body.
View Source
var ErrInvalidURLParams = fmt.Errorf("invalid request URL parameters")
ErrInvalidURLParams is when an request has invalid or missing parameters.
Functions ¶
func BuildCommandDispatchHandler ¶
func BuildCommandDispatchHandler(cb commandbus.CommandBus) http.Handler
BuildCommandDispatchHandler wraps user gRPC client with http.Handler
func BuildGetUserHandler ¶
func BuildGetUserHandler(repository persistence.UserRepository) http.Handler
BuildGetUserHandler wraps user gRPC client with http.Handler
func BuildListUserHandler ¶
func BuildListUserHandler(repository persistence.UserRepository) http.Handler
BuildListUserHandler wraps user gRPC client with http.Handler
func BuildLivenessHandler ¶
BuildLivenessHandler provides liveness handler
func BuildMeHandler ¶
func BuildMeHandler(repository persistence.UserRepository) http.Handler
BuildMeHandler wraps user gRPC client with http.Handler
func BuildReadinessHandler ¶
BuildReadinessHandler provides readiness handler
func BuildSocialAuthHandler ¶
func BuildSocialAuthHandler(apiURL string, cb commandbus.CommandBus, commandName string, tokenProvider oauth2.TokenProvider) http.Handler
BuildSocialAuthHandler wraps user gRPC client with http.Handler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.