lxHelper

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHashAndPassword

func CompareHashAndPassword(hashedPwd, plainPwd string) error

CompareHashAndPassword, compare encrypt password with plain password

func GenerateFromPassword

func GenerateFromPassword(plainPwd string) (string, error)

GenerateFromPassword, create a new encrypted password from plain password

Types

type DuplicateKeyError

type DuplicateKeyError struct {
	Err       string
	FieldName string
	Value     interface{}
}

DuplicateKeyError

func (*DuplicateKeyError) Error

func (e *DuplicateKeyError) Error() string

type M

type M map[string]interface{}

type ReqByQuery

type ReqByQuery struct {
	Options    lxDb.Options           `json:"opts,omitempty"`
	IsFiltered bool                   `json:"isFiltered"`
	Query      map[string]interface{} `json:"query"`
}

func NewReqByQuery

func NewReqByQuery(opts string) (*ReqByQuery, error)

Jump to

Keyboard shortcuts

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