handlers

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package handlers provides http handlers

Index

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

func BuildLivenessHandler() http.Handler

BuildLivenessHandler provides liveness handler

func BuildMeHandler

func BuildMeHandler(repository persistence.UserRepository) http.Handler

BuildMeHandler wraps user gRPC client with http.Handler

func BuildReadinessHandler

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL