Documentation ¶
Index ¶
- Constants
- type AuthorizedUser
- type CoreService
- func (s *CoreService) AllowIP(ctx context.Context, req *rpc.AllowIPRequest) (*rpc.AllowIPResponse, error)
- func (s *CoreService) Delete(ctx context.Context, req *rpc.DeleteRequest) (*rpc.DeleteResponse, error)
- func (s *CoreService) Health(ctx context.Context, req *rpc.HealthRequest) (*rpc.HealthResponse, error)
- func (s *CoreService) Login(ctx context.Context, req *rpc.LoginRequest) (*rpc.LoginResponse, error)
- func (s *CoreService) Logout(ctx context.Context, req *rpc.LogoutRequest) (*rpc.LogoutResponse, error)
- func (s *CoreService) Recovery(ctx context.Context, req *rpc.RecoveryRequest) (*rpc.RecoveryResponse, error)
- func (s *CoreService) Refresh(ctx context.Context, req *rpc.RefreshRequest) (*rpc.RefreshResponse, error)
- func (s *CoreService) Register(ctx context.Context, req *rpc.RegisterRequest) (*rpc.RegisterResponse, error)
- func (s *CoreService) Update(ctx context.Context, req *rpc.UpdateRequest) (*rpc.UpdateResponse, error)
- func (s *CoreService) User(ctx context.Context, req *rpc.UserRequest) (*rpc.UserResponse, error)
- func (s *CoreService) Verify(ctx context.Context, req *rpc.VerifyRequest) (*rpc.VerifyResponse, error)
- func (s *CoreService) Welcome(ctx context.Context, req *rpc.WelcomeRequest) (*rpc.WelcomeResponse, error)
- type MetaData
Constants ¶
View Source
const (
StatusUP = "UP"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizedUser ¶
type CoreService ¶
type CoreService struct { rpc.UnimplementedTrueAuthServer Logr zerolog.Logger Config config.Config // contains filtered or unexported fields }
func NewTrueAuthService ¶
func NewTrueAuthService(Logr zerolog.Logger, config config.Config, store sqlc.Store, mailer mail.MailSender, taskDistributor worker.TaskDistributor) (*CoreService, error)
func (*CoreService) AllowIP ¶
func (s *CoreService) AllowIP(ctx context.Context, req *rpc.AllowIPRequest) (*rpc.AllowIPResponse, error)
func (*CoreService) Delete ¶
func (s *CoreService) Delete(ctx context.Context, req *rpc.DeleteRequest) (*rpc.DeleteResponse, error)
Request email verification and verify email
1. if CODE is provided then verify code 2. If NO CODE then send email verification code
func (*CoreService) Health ¶
func (s *CoreService) Health(ctx context.Context, req *rpc.HealthRequest) (*rpc.HealthResponse, error)
func (*CoreService) Login ¶
func (s *CoreService) Login(ctx context.Context, req *rpc.LoginRequest) (*rpc.LoginResponse, error)
func (*CoreService) Logout ¶
func (s *CoreService) Logout(ctx context.Context, req *rpc.LogoutRequest) (*rpc.LogoutResponse, error)
func (*CoreService) Recovery ¶
func (s *CoreService) Recovery(ctx context.Context, req *rpc.RecoveryRequest) (*rpc.RecoveryResponse, error)
Request email verification and verify email
1. if CODE is provided then verify code 2. If NO CODE then send email verification code
func (*CoreService) Refresh ¶
func (s *CoreService) Refresh(ctx context.Context, req *rpc.RefreshRequest) (*rpc.RefreshResponse, error)
func (*CoreService) Register ¶
func (s *CoreService) Register(ctx context.Context, req *rpc.RegisterRequest) (*rpc.RegisterResponse, error)
func (*CoreService) Update ¶
func (s *CoreService) Update(ctx context.Context, req *rpc.UpdateRequest) (*rpc.UpdateResponse, error)
func (*CoreService) User ¶
func (s *CoreService) User(ctx context.Context, req *rpc.UserRequest) (*rpc.UserResponse, error)
func (*CoreService) Verify ¶
func (s *CoreService) Verify(ctx context.Context, req *rpc.VerifyRequest) (*rpc.VerifyResponse, error)
Request email verification and verify email
1. if CODE is provided then verify code 2. If NO CODE then send email verification code
func (*CoreService) Welcome ¶
func (s *CoreService) Welcome(ctx context.Context, req *rpc.WelcomeRequest) (*rpc.WelcomeResponse, error)
Click to show internal directories.
Click to hide internal directories.