requestCore

package module
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: GPL-3.0 Imports: 19 Imported by: 0

README

requestCore

Library for handling restful requests

Documentation

Index

Constants

View Source
const RegexPaddedIp string = `^((25[0-5]|2[0-4]\d|1\d\d|0\d\d)\.?\b){4}$` //^((25[0-5]|2[0-4]\d|1\d\d|0\d\d)\.?\b){4}$

Variables

Functions

func Init

func Init() (ut.Translator, *validator.Validate, error)

func InitReqLog added in v0.3.18

func InitReqLog(w webFramework.WebFramework, reqLog libRequest.RequestPtr, core RequestCoreInterface, method, path string) error

func PaddedIpValidator

func PaddedIpValidator(fl validator.FieldLevel) bool

Types

type RequestCoreInterface

type RequestCoreInterface interface {
	GetDB() libQuery.QueryRunnerInterface
	RequestTools() libRequest.RequestInterface
	Consumer() libCallApi.CallApiInterface
	Responder() response.ResponseHandler
	Dictionary() libDictionary.DictionaryInterface
	Params() libParams.ParamsInterface
	Sm() libCrypto.Sm
}

type RequestCoreModel

type RequestCoreModel struct {
	RequestInterface   libRequest.RequestInterface
	QueryInterface     libQuery.QueryRunnerInterface
	RemoteApiInterface libCallApi.CallApiInterface
	RespHandler        response.ResponseHandler
	Dict               libDictionary.DictionaryInterface
	ParamMap           libParams.ParamsInterface
	CryptoSm           libCrypto.Sm
}

func (RequestCoreModel) Consumer

func (RequestCoreModel) Dictionary

func (RequestCoreModel) GetDB

func (RequestCoreModel) Params added in v0.4.15

func (RequestCoreModel) RequestTools

func (m RequestCoreModel) RequestTools() libRequest.RequestInterface

func (RequestCoreModel) Responder

func (RequestCoreModel) Sm added in v0.4.28

func (m RequestCoreModel) Sm() libCrypto.Sm

Directories

Path Synopsis
notify command
nolint:,staticcheck,ineffassign
nolint:,staticcheck,ineffassign

Jump to

Keyboard shortcuts

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