go-api-boilerplate: github.com/vardius/go-api-boilerplate/cmd/user/internal/interfaces/http/handlers Index | Files

package handlers

import "github.com/vardius/go-api-boilerplate/cmd/user/internal/interfaces/http/handlers"

Package handlers provides http handlers

Index

Package Files

auth.go doc.go errors.go health.go user.go

Variables

var ErrEmptyRequestBody = fmt.Errorf("empty request body")

ErrEmptyRequestBody is when an request has empty body.

var ErrInvalidURLParams = fmt.Errorf("invalid request URL parameters")

ErrInvalidURLParams is when an request has invalid or missing parameters.

func BuildCommandDispatchHandler Uses

func BuildCommandDispatchHandler(cb commandbus.CommandBus) http.Handler

BuildCommandDispatchHandler wraps user gRPC client with http.Handler

func BuildGetUserHandler Uses

func BuildGetUserHandler(repository persistence.UserRepository) http.Handler

BuildGetUserHandler wraps user gRPC client with http.Handler

func BuildListUserHandler Uses

func BuildListUserHandler(repository persistence.UserRepository) http.Handler

BuildListUserHandler wraps user gRPC client with http.Handler

func BuildLivenessHandler Uses

func BuildLivenessHandler() http.Handler

BuildLivenessHandler provides liveness handler

func BuildMeHandler Uses

func BuildMeHandler(repository persistence.UserRepository) http.Handler

BuildMeHandler wraps user gRPC client with http.Handler

func BuildReadinessHandler Uses

func BuildReadinessHandler(db *sql.DB, connMap map[string]*grpc.ClientConn) http.Handler

BuildReadinessHandler provides readiness handler

func BuildSocialAuthHandler Uses

func BuildSocialAuthHandler(apiURL string, cb commandbus.CommandBus, commandName string, tokenProvider oauth2.TokenProvider) http.Handler

BuildSocialAuthHandler wraps user gRPC client with http.Handler

Package handlers imports 19 packages (graph) and is imported by 1 packages. Updated 2020-08-04. Refresh now. Tools for package owners.