utils

package
v0.0.0-...-3904f54 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const VariableTypeForm = "form"
View Source
const VariableTypeHeader = "header"
View Source
const VariableTypeJson = "json"
View Source
const VariableTypeQuery = "query"

Variables

This section is empty.

Functions

func EncodePassword

func EncodePassword(pass, salt string) string

func GetVariables

func GetVariables(receive types.ReceiveRequest, c *gin.Context) (map[string]types.VariableItem, []byte, error)

func ReplaceVariables

func ReplaceVariables(send *types.RestySendRequest, variables map[string]types.VariableItem)

func Sha256

func Sha256(str string) string

func UUID

func UUID() string

func ValidateVariables

func ValidateVariables(variables map[string]types.VariableItem) error

Types

type Random

type Random struct {
	// contains filtered or unexported fields
}

func NewRandom

func NewRandom() *Random

func (*Random) String

func (r *Random) String(n int) string

func (*Random) StringWithLetters

func (r *Random) StringWithLetters(n int) string

func (*Random) StringWithLowerLetters

func (r *Random) StringWithLowerLetters(n int) string

func (*Random) StringWithLowerNumberLetters

func (r *Random) StringWithLowerNumberLetters(n int) string

func (*Random) StringWithNumberLetters

func (r *Random) StringWithNumberLetters(n int) string

func (*Random) StringWithUpperLetters

func (r *Random) StringWithUpperLetters(n int) string

func (*Random) StringWithUpperNumberLetters

func (r *Random) StringWithUpperNumberLetters(n int) string

Jump to

Keyboard shortcuts

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