Versions in this module Expand all Collapse all v1 v1.0.3 Mar 20, 2024 v1.0.2 Mar 20, 2024 v1.0.1 Mar 20, 2024 Changes in this version + type Builder struct + Data *string + MetaData map[string]string + func NewBuilder(data *string, metaData map[string]string) *Builder + func (d *Builder) Build() (string, error) + type EmailCode struct + Code string + CreatedAt time.Time + Entity string + Purpose string + type OTP struct + CM Store + CodeLength int + ExpireIn time.Duration + func NewOTP(cm Store, expireIn time.Duration, codeLength int) *OTP + func (o *OTP) ProcessEmailsCode(interval time.Duration) func() + func (o *OTP) Send(email emailutils.Email, provider emailutils.Provider, purpose, entity string) error + func (o *OTP) Verify(code, purpose string) bool + type Store interface + Get func(code, purpose string) (*EmailCode, error) + List func() ([]EmailCode, error) + Register func(code, purpose, entity string) (*EmailCode, error) + Remove func(code, purpose string) error