package
0.1.0
Repository: https://github.com/staple-org/staple.git
Documentation: pkg.go.dev

# Functions

NewBufferNotifier creates a new notifier.
NewEmailNotifier creates a new email notifier.
NewStapler creates a new Postgres based Stapler which will have a connection to a DB.
NewUserHandler creates a new user handler.

# Variables

GenerateConfirmCode is an event before password reset which sends a confirm code to the user's email address.
PasswordReset is an event that happens when the user's password is reset.
Welcome template for new sign-ups.

# Structs

BufferNotifier uses a byte buffer for notifications.
EmailNotifier is an email based notification entity.
Stapler defines a stapler which stores the staples in Postgres DB.
UserHandler defines a storage using user handler.

# Interfaces

Notifier notifies the user of some event.
Staplerer describes a stapler service which takes care of managing the user's staples.
UserHandlerer defines a service which can manage users.

# Type aliases

Event represents an event that can happen which needs the user's attention via prefered notification medium.
Payload is data which the notifier carries.