admin

package
v0.0.0-...-b26f8fd Latest Latest
Warning

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

Go to latest
Published: May 24, 2016 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

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

Admin provide some method to manage database

func NewAdmin

func NewAdmin(info *meta.Info) *Admin

NewAdmin get a new Admin instance

func (*Admin) AddUser

func (a *Admin) AddUser(user, password string) error

AddUser add a database user

func (*Admin) GetUser

func (a *Admin) GetUser(user string) (string, error)

GetUser will get user's info.

func (*Admin) Login

func (a *Admin) Login(user, password string) bool

Login check the user.

Jump to

Keyboard shortcuts

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