core

package
v0.0.0-...-a39f72a Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePassword

func GeneratePassword(password string) ([]byte, error)

GeneratePassword

func ValidatePassword

func ValidatePassword(password, hashed string) error

ValidatePassword

func WriteResponse

func WriteResponse(c *gin.Context, err error, code int, msg string, data map[string]interface{})

Types

type Response

type Response struct {
	// sync.RWMutex
	Code    int                    `json:"code"`
	Message string                 `json:"message"`
	Data    map[string]interface{} `json:"data"`
	Err     error                  `json:"err"`
}

Jump to

Keyboard shortcuts

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