Documentation ¶
Index ¶
- func ServerMiddleware(dbClientProvider DBClientProvider, option ...db.Option) func(next http.Handler) http.Handler
- func StreamServerInterceptor(dbClientProvider DBClientProvider, option ...db.Option) grpc.StreamServerInterceptor
- func UnaryServerInterceptor(dbClientProvider DBClientProvider, option ...db.Option) grpc.UnaryServerInterceptor
- type DBClientProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServerMiddleware ¶
func ServerMiddleware(dbClientProvider DBClientProvider, option ...db.Option) func(next http.Handler) http.Handler
ServerMiddleware wrap endpoint with middleware mixing in db connection
func StreamServerInterceptor ¶
func StreamServerInterceptor(dbClientProvider DBClientProvider, option ...db.Option) grpc.StreamServerInterceptor
UnaryServerInterceptor wrap endpoint with middleware mixing in db connection
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(dbClientProvider DBClientProvider, option ...db.Option) grpc.UnaryServerInterceptor
UnaryServerInterceptor wrap endpoint with middleware mixing in db connection
Types ¶
Click to show internal directories.
Click to hide internal directories.