provider

package
v0.0.0-...-73ce370 Latest Latest
Warning

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

Go to latest
Published: May 14, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	gp.TablesManagement

	Login(u *user.User) (err error)
	Create(userToAdd *user.User) (u *user.User, err error)
	Delete(u *user.User) (err error)

	FindByPublicKey(publicKey interface{}) (u *user.User, err error)
	FindByPublicKeyDER(publicKeyDER []byte) (u *user.User, err error)
	FindByPublicKeyDERBase64(publicKeyDERBase64 string) (u *user.User, err error)
	FindByID(ID int) (u *user.User, err error)

	Update(u *user.User, fields map[string]interface{}) (err error)
}

Provider contains all the methods needed to manage users

var P Provider

P is the selected provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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