lxHelper

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 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)

/////////////////////////////////////////////// deprecated, Will be removed in a later version /////////////////////////////////////////////// GenerateFromPassword, create a new encrypted password from plain password

Types

type M

type M map[string]interface{}

/////////////////////////////////////////////// deprecated, Will be removed in a later version ///////////////////////////////////////////////

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)

/////////////////////////////////////////////// deprecated, Will be removed in a later version ///////////////////////////////////////////////

type RequestByQuery added in v0.8.0

type RequestByQuery struct {
	FindOptions lxDb.FindOptions       `json:"opts,omitempty"`
	Query       map[string]interface{} `json:"query"`
	Count       bool                   `json:"count"`
}

RequestByQuery

func NewRequestByQuery added in v0.8.0

func NewRequestByQuery(queryStr string) (data *RequestByQuery, err error)

NewRequestByQuery

Jump to

Keyboard shortcuts

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