user

package
v0.0.0-...-946fd12 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 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 Deactivated

type Deactivated struct {
	Receiver string
}

type EmailService

type EmailService interface {
	UserDeactivated(receiver string) error
	UserSignUp(receiver string, activationToken string) error
}

type SignUp

type SignUp struct {
	Receiver        string
	ActivationToken string
}

type Subscriber

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

func NewSubscriber

func NewSubscriber(conn *nats.Conn, service EmailService, logger *zap.SugaredLogger) (Subscriber, error)

func (Subscriber) Deactivated

func (s Subscriber) Deactivated(data []byte)

func (Subscriber) Shutdown

func (s Subscriber) Shutdown()

func (Subscriber) Signup

func (s Subscriber) Signup(data []byte)

Jump to

Keyboard shortcuts

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