register

package
v0.0.0-...-5ddf3d3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package register allows for user registration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Register

type Register struct {
	*authboss.Authboss
	// contains filtered or unexported fields
}

Register module.

func (*Register) Initialize

func (r *Register) Initialize(ab *authboss.Authboss) (err error)

Initialize the module.

func (*Register) Routes

func (r *Register) Routes() authboss.RouteTable

Routes creates the routing table.

func (*Register) Storage

func (r *Register) Storage() authboss.StorageOptions

Storage returns storage requirements.

type RegisterStorer

type RegisterStorer interface {
	authboss.Storer
	// Create is the same as put, except it refers to a non-existent key.  If the key is
	// found simply return authboss.ErrUserFound
	Create(key string, attr authboss.Attributes) error
}

RegisterStorer must be implemented in order to satisfy the register module's storage requirments.

Jump to

Keyboard shortcuts

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