Documentation
¶
Index ¶
- type AuthHandler
- func (h *AuthHandler) GetUserDevices(ctx context.Context, _ *pb.GetUserDevicesRequest) (_ *pb.GetUserDevicesResponse, err error)
- func (h *AuthHandler) Logout(ctx context.Context, req *pb.LogoutRequest) (_ *pb.LogoutResponse, err error)
- func (h *AuthHandler) RenewAccessToken(ctx context.Context, req *pb.RenewAccessTokenRequest) (_ *pb.RenewAccessTokenResponse, err error)
- func (h *AuthHandler) Signin(ctx context.Context, req *pb.SigninRequest) (_ *pb.SigninResponse, err error)
- func (h *AuthHandler) Signup(ctx context.Context, req *pb.SignupRequest) (_ *pb.SignupResponse, err error)
- type AuthInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler struct { pb.UnimplementedAuthServiceServer // contains filtered or unexported fields }
func NewAuthHandler ¶
func NewAuthHandler(uc *application.UseCases) *AuthHandler
func (*AuthHandler) GetUserDevices ¶
func (h *AuthHandler) GetUserDevices(ctx context.Context, _ *pb.GetUserDevicesRequest) (_ *pb.GetUserDevicesResponse, err error)
func (*AuthHandler) Logout ¶
func (h *AuthHandler) Logout(ctx context.Context, req *pb.LogoutRequest) (_ *pb.LogoutResponse, err error)
func (*AuthHandler) RenewAccessToken ¶
func (h *AuthHandler) RenewAccessToken(ctx context.Context, req *pb.RenewAccessTokenRequest) (_ *pb.RenewAccessTokenResponse, err error)
func (*AuthHandler) Signin ¶
func (h *AuthHandler) Signin(ctx context.Context, req *pb.SigninRequest) (_ *pb.SigninResponse, err error)
func (*AuthHandler) Signup ¶
func (h *AuthHandler) Signup(ctx context.Context, req *pb.SignupRequest) (_ *pb.SignupResponse, err error)
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
func NewAuthInterceptor ¶
func NewAuthInterceptor(url string, creds credentials.TransportCredentials) (*AuthInterceptor, error)
NewAuthInterceptor returns a new AuthInterceptor
func (*AuthInterceptor) Unary ¶
func (ai *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
Unary returns a UnaryServerInterceptor that validates the access token and set the user id in the context
Click to show internal directories.
Click to hide internal directories.