register

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 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 {
	*authapi.Authapi
}

Register module.

func (*Register) Initialize

func (r *Register) Initialize(ab *authapi.Authapi) (err error)

Initialize the module.

func (*Register) Routes

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

Routes creates the routing table.

func (*Register) Storage

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

Storage returns storage requirements.

type RegisterStorer

type RegisterStorer interface {
	authapi.Storer
	// Create is the same as put, except it refers to a non-existent key.  If the key is
	// found simply return Authapi.ErrUserFound
	Create(key string, attr authapi.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