phone_number_validation

package
v0.0.0-...-d7ee072 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPhoneNumberEventHandler

func NewPhoneNumberEventHandler(services *service.Services, log logger.Logger, cfg *config.Config, grpcClients *grpc_client.Clients) *phoneNumberEventHandler

Types

type PhoneNumberValidateRequest

type PhoneNumberValidateRequest struct {
	PhoneNumber   string `json:"phoneNumber" validate:"required"`
	CountryCodeA2 string `json:"country"`
}

type PhoneNumberValidationResponseV1

type PhoneNumberValidationResponseV1 struct {
	E164      string `json:"e164"`
	Error     string `json:"error"`
	Valid     bool   `json:"valid"`
	CountryA2 string `json:"countryA2"`
}

type PhoneNumberValidationSubscriber

type PhoneNumberValidationSubscriber struct {
	// contains filtered or unexported fields
}

func NewPhoneNumberValidationSubscriber

func NewPhoneNumberValidationSubscriber(log logger.Logger, db *esdb.Client, cfg *config.Config, services *service.Services, grpcClients *grpc_client.Clients) *PhoneNumberValidationSubscriber

func (*PhoneNumberValidationSubscriber) Connect

func (*PhoneNumberValidationSubscriber) ProcessEvents

func (s *PhoneNumberValidationSubscriber) ProcessEvents(ctx context.Context, sub *esdb.PersistentSubscription, workerID int) error

func (*PhoneNumberValidationSubscriber) When

Jump to

Keyboard shortcuts

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