Documentation ¶
Index ¶
- type AuthServiceServer
- type AuthenticationHandler
- func (ah *AuthenticationHandler) MiddlewareValidateRefreshToken(next http.Handler) http.Handler
- func (ah *AuthenticationHandler) MiddlewareValidateUser(next http.Handler) http.Handler
- func (ah *AuthenticationHandler) UserLogin(rw http.ResponseWriter, r *http.Request)
- func (ah *AuthenticationHandler) UserSignUp(rw http.ResponseWriter, r *http.Request)
- type Resolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServiceServer ¶
type AuthServiceServer struct { protos.UnimplementedAuthServiceServer // contains filtered or unexported fields }
func NewAuthServer ¶
func NewAuthServer(authService *authentication.AuthenticationService, l *log.Logger) *AuthServiceServer
func (*AuthServiceServer) Login ¶
func (ass *AuthServiceServer) Login(ctx context.Context, req *protos.LoginRequest) (*protos.LoginResponse, error)
func (*AuthServiceServer) SignUp ¶
func (ass *AuthServiceServer) SignUp(ctx context.Context, req *protos.SignUpRequest) (*protos.SignUpResponse, error)
type AuthenticationHandler ¶
type AuthenticationHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(authService *authentication.AuthenticationService, l *log.Logger) *AuthenticationHandler
func (*AuthenticationHandler) MiddlewareValidateRefreshToken ¶
func (ah *AuthenticationHandler) MiddlewareValidateRefreshToken(next http.Handler) http.Handler
func (*AuthenticationHandler) MiddlewareValidateUser ¶
func (ah *AuthenticationHandler) MiddlewareValidateUser(next http.Handler) http.Handler
func (*AuthenticationHandler) UserLogin ¶
func (ah *AuthenticationHandler) UserLogin(rw http.ResponseWriter, r *http.Request)
func (*AuthenticationHandler) UserSignUp ¶
func (ah *AuthenticationHandler) UserSignUp(rw http.ResponseWriter, r *http.Request)
type Resolver ¶
type Resolver struct { AuthService *authentication.AuthenticationService Logger *log.Logger }
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() generated.MutationResolver
Mutation returns generated.MutationResolver implementation.
Click to show internal directories.
Click to hide internal directories.