login

package module
v0.0.0-...-989cff7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

README

go_loginapi

Simple Login api with golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfirmPassword

func ConfirmPassword(hashed, password string) bool

for test only

func GetStoreUserQuery

func GetStoreUserQuery(name, password string) []string

takes string var name and password creates uuid, hashed password returns string[] with uuid, username, hashedpassword

Types

type Request

type Request struct {
	Tag      string // request
	Username string // Username
	Password string // Password
}

format for Request it is irritating to have a public fields here but public fields must be used to create json objects.

func (*Request) ToString

func (srq *Request) ToString() string

type Response

type Response struct {
	UniqueId    string // uuid
	Tag         string // response
	SuccessCode int    // 1 or 0
}

format for responseinfo

func (*Response) ToString

func (srs *Response) ToString() string

type SampleInfo

type SampleInfo interface {
	ToString() string
}

Sampleinfo was made for logging

Jump to

Keyboard shortcuts

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