waitinglist

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Insert

func Insert(logger *zap.Logger, analyticsClient analytics.Client, repo WaitingListRepo) func(c *gin.Context)

func Module

func Module(c *di.Container)

Types

type WaitingListEntry

type WaitingListEntry struct {
	ID    int    `db:"id"`
	Email string `db:"email"`
}

type WaitingListRepo

type WaitingListRepo interface {
	Insert(email string) error
	ToSendInvitesTo() ([]WaitingListEntry, error)
	MarkEmailAsInvited(email string) error
}

func NewWaitingListRepo

func NewWaitingListRepo(db *sqlx.DB) WaitingListRepo

type WaitingListRequest

type WaitingListRequest struct {
	Email string `json:"email" binding:"required"`
}

Directories

Path Synopsis
Package acl is used for marketing to capture people interested in our access control offering for enterprise.
Package acl is used for marketing to capture people interested in our access control offering for enterprise.
Package instantintegration is used for marketing to capture people interested in instant integration
Package instantintegration is used for marketing to capture people interested in instant integration

Jump to

Keyboard shortcuts

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