requestCore

package module
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: GPL-3.0 Imports: 16 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
	Responder() response.ResponseHandler
	Params() libParams.ParamInterface
}

type RequestCoreModel

type RequestCoreModel struct {
	RequestInterface libRequest.RequestInterface
	QueryInterface   libQuery.QueryRunnerInterface
	RespHandler      response.ResponseHandler
	ParamMap         libParams.ParamInterface
}

func (RequestCoreModel) GetDB

func (RequestCoreModel) Params added in v0.4.15

func (RequestCoreModel) RequestTools

func (m RequestCoreModel) RequestTools() libRequest.RequestInterface

func (RequestCoreModel) Responder

Directories

Path Synopsis
hsm/utimaco/cmd command
ssm
utility command
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