Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Auth(ctx context.Context, req *connect.Request[userv1.AuthRequest]) (*connect.Response[userv1.AuthResponse], error)
- func (h *Handler) LoggingInterceptor() connect.UnaryInterceptorFunc
- func (h *Handler) NewRouter() http.Handler
- func (h *Handler) SignIn(ctx context.Context, req *connect.Request[userv1.SignInRequest]) (*connect.Response[userv1.SignInResponse], error)
- func (h *Handler) SignOut(ctx context.Context, req *connect.Request[userv1.SignOutRequest]) (*connect.Response[userv1.SignOutResponse], error)
- func (h *Handler) SignUp(ctx context.Context, req *connect.Request[userv1.SignUpRequest]) (*connect.Response[userv1.SignUpResponse], error)
- func (h *Handler) ValidateInterceptor() connect.UnaryInterceptorFunc
- type Option
- type Serv
- type SessionService
- type UserService
- type Validate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler( srv *service.UserService, logger *zap.Logger, ) *Handler
func NewHandlerTest ¶
func NewHandlerTest( srv UserService, logger *zap.Logger, ) *Handler
func (*Handler) Auth ¶
func (h *Handler) Auth(ctx context.Context, req *connect.Request[userv1.AuthRequest], ) (*connect.Response[userv1.AuthResponse], error)
func (*Handler) LoggingInterceptor ¶
func (h *Handler) LoggingInterceptor() connect.UnaryInterceptorFunc
func (*Handler) SignIn ¶
func (h *Handler) SignIn(ctx context.Context, req *connect.Request[userv1.SignInRequest], ) (*connect.Response[userv1.SignInResponse], error)
func (*Handler) SignOut ¶
func (h *Handler) SignOut(ctx context.Context, req *connect.Request[userv1.SignOutRequest], ) (*connect.Response[userv1.SignOutResponse], error)
func (*Handler) SignUp ¶
func (h *Handler) SignUp(ctx context.Context, req *connect.Request[userv1.SignUpRequest], ) (*connect.Response[userv1.SignUpResponse], error)
func (*Handler) ValidateInterceptor ¶
func (h *Handler) ValidateInterceptor() connect.UnaryInterceptorFunc
type SessionService ¶
type UserService ¶
Click to show internal directories.
Click to hide internal directories.