Documentation ¶
Overview ¶
Package handlers provides http handlers
Index ¶
- func BuildAuthorizeHandler(srv *server.Server) http.Handler
- func BuildClientCommandDispatchHandler(cb commandbus.CommandBus) http.Handler
- func BuildGetClientHandler(repository persistence.ClientRepository) http.Handler
- func BuildListClientsHandler(repository persistence.ClientRepository) http.Handler
- func BuildListTokensHandler(repository persistence.TokenRepository, ...) http.Handler
- func BuildListUserAuthTokensHandler(repository persistence.TokenRepository) http.Handler
- func BuildLivenessHandler() http.Handler
- func BuildReadinessHandler(sqlConn *sql.DB, mongoConn *mongo.Client, connMap map[string]*grpc.ClientConn) http.Handler
- func BuildTokenCommandDispatchHandler(cb commandbus.CommandBus) http.Handler
- func BuildTokenHandler(srv *server.Server) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAuthorizeHandler ¶
BuildAuthorizeHandler provides authorize handler
func BuildClientCommandDispatchHandler ¶
func BuildClientCommandDispatchHandler(cb commandbus.CommandBus) http.Handler
BuildClientCommandDispatchHandler dispatches domain command
func BuildGetClientHandler ¶
func BuildGetClientHandler(repository persistence.ClientRepository) http.Handler
func BuildListClientsHandler ¶
func BuildListClientsHandler(repository persistence.ClientRepository) http.Handler
BuildListClientsHandler lists client credentials by user ID
func BuildListTokensHandler ¶
func BuildListTokensHandler(repository persistence.TokenRepository, clientRepository persistence.ClientRepository) http.Handler
BuildListTokensHandler lists auth tokens by client and user IDs
func BuildListUserAuthTokensHandler ¶
func BuildListUserAuthTokensHandler(repository persistence.TokenRepository) http.Handler
BuildListUserAuthTokensHandler lists auth tokens by client and user IDs
func BuildLivenessHandler ¶
BuildLivenessHandler provides liveness handler
func BuildReadinessHandler ¶
func BuildReadinessHandler(sqlConn *sql.DB, mongoConn *mongo.Client, connMap map[string]*grpc.ClientConn) http.Handler
BuildReadinessHandler provides readiness handler
func BuildTokenCommandDispatchHandler ¶
func BuildTokenCommandDispatchHandler(cb commandbus.CommandBus) http.Handler
BuildTokenCommandDispatchHandler dispatches domain command
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.