authprotomapper

package
v1.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProtoMapper

type AuthProtoMapper interface {
	// ToProtoResponseVerifyCode converts a verification code response to a protobuf message.
	ToProtoResponseVerifyCode(status string, message string) *pb.ApiResponseVerifyCode

	// ToProtoResponseForgotPassword converts a forgot password response to a protobuf message.
	ToProtoResponseForgotPassword(status string, message string) *pb.ApiResponseForgotPassword

	// ToProtoResponseResetPassword converts a reset password response to a protobuf message.
	ToProtoResponseResetPassword(status string, message string) *pb.ApiResponseResetPassword

	// ToProtoResponseLogin converts a login response with token details to a protobuf message.
	ToProtoResponseLogin(status string, message string, response *response.TokenResponse) *pb.ApiResponseLogin

	// ToProtoResponseRegister converts a user registration response to a protobuf message.
	ToProtoResponseRegister(status string, message string, response *response.UserResponse) *pb.ApiResponseRegister

	// ToProtoResponseRefreshToken converts a token refresh response to a protobuf message.
	ToProtoResponseRefreshToken(status string, message string, response *response.TokenResponse) *pb.ApiResponseRefreshToken

	// ToProtoResponseGetMe converts a user profile fetch ("get me") response to a protobuf message.
	ToProtoResponseGetMe(status string, message string, response *response.UserResponse) *pb.ApiResponseGetMe
}

func NewAuthProtoMapper

func NewAuthProtoMapper() AuthProtoMapper

NewAuthProtoMapper returns a new instance of authProtoMapper.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL