goyaw

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

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

Go to latest
Published: Jul 18, 2015 License: LGPL-3.0 Imports: 10 Imported by: 0

README

goyaw

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoyawInstance

type GoyawInstance struct {
	//Mux      *http.ServeMux
	//Addr     string
	//CertFile string
	//KeyFile  string
	UserDB *UserMgmt
}

func NewGoyawInstance

func NewGoyawInstance(userDBconfig *UserDBconfig) *GoyawInstance

func (*GoyawInstance) Serve

func (self *GoyawInstance) Serve()

type User

type User struct {
	Id             int64  `db:"pk"`     // column:"tbl_id"
	UserName       string `db:"unique"` // size:"255"
	HashedPassword string
	Active         bool
	CreatedAt      *time.Time
}

type UserDBconfig

type UserDBconfig struct {
	Type   string
	Config string
}

type UserMgmt

type UserMgmt struct {
	UserDB *genmai.DB
}

func NewUserDB

func NewUserDB(userDBconfig *UserDBconfig) *UserMgmt

func (*UserMgmt) Auth

func (self *UserMgmt) Auth(username string, password string) error

func (*UserMgmt) CreateUser

func (self *UserMgmt) CreateUser(username string, password string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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