registration

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitModels

func InitModels()

InitModels intializes the mongo models

Types

type InProgressRegistration

type InProgressRegistration struct {
	SessionKey         string
	CreatedAt          time.Time
	Firstname          string
	Lastname           string
	Phonenumber        string
	PhoneValidationKey string
	Email              string
	EmailValidationKey string
}

InProgressRegistration represents a (partial) registration object

func New

func New(sessionKey string) *InProgressRegistration

New returns a new in progress registration object

type Manager

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

Manager is used to store organizations

func NewManager

func NewManager(r *http.Request) *Manager

NewManager creates and initializes a new Manager

func (*Manager) DeleteRegisteringUser

func (m *Manager) DeleteRegisteringUser(sessionKey string) error

DeleteRegisteringUser deletes a registering user

func (*Manager) GetRegisteringUserBySessionKey

func (m *Manager) GetRegisteringUserBySessionKey(sessionKey string) (*InProgressRegistration, error)

GetRegisteringUserBySessionKey returns a user object of an in progress registration

func (*Manager) UpsertRegisteringUser

func (m *Manager) UpsertRegisteringUser(ipr *InProgressRegistration) error

UpsertRegisteringUser creates a new or updates an existing entry in the db for a user currenly registering

Jump to

Keyboard shortcuts

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