service

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusUP = "UP"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizedUser

type AuthorizedUser struct {
	User    sqlc.User
	Session sqlc.Session
	Token   string
	Payload *tokens.Payload
}

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 (*CoreService) Delete

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 (*CoreService) Login

func (*CoreService) Logout

func (*CoreService) Recovery

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 (*CoreService) Register

func (*CoreService) Update

func (*CoreService) User

func (*CoreService) Verify

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

type MetaData

type MetaData struct {
	UserAgent string
	ClientIp  string
}

Jump to

Keyboard shortcuts

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