helpers

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithNopLogger

func ContextWithNopLogger() context.Context

ContextWithNopLogger - возвращает контекст с логерром-заглушкой.

Types

type HttpRequest

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

HttpRequest - помощник для работы с http запросом.

func NewHttpRequest

func NewHttpRequest(method, target string, structRequest any) *HttpRequest

NewHttpRequest - создаёт объект HttpRequest.

func (*HttpRequest) Exec

func (r *HttpRequest) Exec(handler http.Handler, structResponse any) (statusCode int, err error)

Exec - запускает указанный обработчик и возвращает результат.

func (*HttpRequest) Request

func (r *HttpRequest) Request() *http.Request

Request - возвращает http.Request.

Jump to

Keyboard shortcuts

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