authbossmysql

package module
v0.0.0-...-d315f99 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2017 License: MIT Imports: 5 Imported by: 0

README

authboss-mysql

This is a mysql implementation of the authboss authentication framework for Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB(dataSourceName string) (*sql.DB, error)

Types

type RegisterStorer

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

func GetRegisterStorer

func GetRegisterStorer(db *sql.DB) RegisterStorer

func (RegisterStorer) Close

func (registerStorer RegisterStorer) Close()

func (RegisterStorer) Create

func (registerStorer RegisterStorer) Create(key string, attr authboss.Attributes) error

func (RegisterStorer) Get

func (registerStorer RegisterStorer) Get(key string) (interface{}, error)

func (RegisterStorer) Put

func (registerStorer RegisterStorer) Put(key string, attr authboss.Attributes) error

type User

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

type UserStorer

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

func GetUserStorer

func GetUserStorer(db *sql.DB) UserStorer

func (UserStorer) Close

func (storer UserStorer) Close()

func (UserStorer) Get

func (storer UserStorer) Get(key string) (interface{}, error)

func (UserStorer) Put

func (storer UserStorer) Put(key string, attr authboss.Attributes) error

Jump to

Keyboard shortcuts

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