models

package
v0.0.0-...-e481dcd Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDynamoDBClient

func CreateDynamoDBClient(region string, endpoint string) (*dynamodb.DynamoDB, error)

func CreateUser

func CreateUser(userName string, passWd string) (map[string]interface{}, int)

func DeleteUser

func DeleteUser(userName string)

func GetDynamoDBClient

func GetDynamoDBClient() *dynamodb.DynamoDB

func GetTableName

func GetTableName() string

func Signin

func Signin(userName string, passWd string) (map[string]interface{}, int)

func ValidateUsername

func ValidateUsername(userName string, passWd string, checkExisted bool) (map[string]interface{}, bool)

Types

type RequestUser

type RequestUser struct {
	UserName string `json:"user_nm"`
	Password string `json:"passwd"`
}

func (RequestUser) GetPasswd

func (reqUser RequestUser) GetPasswd() string

func (RequestUser) GetUserName

func (reqUser RequestUser) GetUserName() string

type User

type User struct {
	UserNm    string
	EncPasswd string
	CreDt     int64
}

Jump to

Keyboard shortcuts

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