Documentation ¶
Index ¶
- type Provider
- func (p *Provider) Create(userToAdd *user.User) (u *user.User, err error)
- func (p *Provider) CreateIndexes() (err error)
- func (p *Provider) CreateTables() (err error)
- func (p *Provider) Delete(u *user.User) (err error)
- func (p *Provider) DropTables() (err error)
- func (p *Provider) FindByID(id int) (u *user.User, err error)
- func (p *Provider) FindByPublicKey(publicKey interface{}) (u *user.User, err error)
- func (p *Provider) FindByPublicKeyDER(publicKeyDER []byte) (u *user.User, err error)
- func (p *Provider) FindByPublicKeyDERBase64(publicKeyDERBase64 string) (u *user.User, err error)
- func (p *Provider) Login(u *user.User) (err error)
- func (p *Provider) Update(u *user.User, fields map[string]interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { *gp.RootProvider provider.Provider }
Provider implements the methods needed to manage users for every SQL based database
func (*Provider) CreateIndexes ¶
CreateIndexes create constrains and indexes on users tables
func (*Provider) CreateTables ¶
CreateTables create all the required tables for users
func (*Provider) DropTables ¶
DropTables delete all the users tables
func (*Provider) FindByPublicKey ¶
FindByPublicKey is used to find a user from his public key
func (*Provider) FindByPublicKeyDER ¶
FindByPublicKeyDER is used to find a user from his public key der formatted
func (*Provider) FindByPublicKeyDERBase64 ¶
FindByPublicKeyDERBase64 is used to find a user from his public key der base64 formatted
Click to show internal directories.
Click to hide internal directories.