httphandler

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

Config represent HTTP Service configurations

type Service

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

Service represent HTTP service

func New

func New(ctx context.Context, cfg *Config,
	wpService *_wpservice.Service,
	apiService *apiservice.Service,
	httpService *_http.Service) (*Service, error)

New create new HTTP service

func (*Service) ApiConvertHandler added in v0.3.1

func (s *Service) ApiConvertHandler(w http.ResponseWriter, r *http.Request)

ApiConvertHandler Сервис отвечает за конвертацию данных и дополнительное обогащение

func (*Service) ApiCreateEntityMetaHandler added in v0.3.1

func (s *Service) ApiCreateEntityMetaHandler(w http.ResponseWriter, r *http.Request)

ApiCreateEntityMetaHandler Сервис отвечает за создание метаданные entity

func (*Service) ApiCreateHandler added in v0.3.1

func (s *Service) ApiCreateHandler(w http.ResponseWriter, r *http.Request)

ApiCreateHandler Сервис отвечает за создание строки в БД

func (*Service) ApiGetEntityMetaHandler added in v0.3.1

func (s *Service) ApiGetEntityMetaHandler(w http.ResponseWriter, r *http.Request)

ApiGetEntityMetaHandler Сервис отвечает за извлечение мата данные entity

func (*Service) ApiGetHandler added in v0.3.1

func (s *Service) ApiGetHandler(w http.ResponseWriter, r *http.Request)

ApiGetHandler Сервис отвечает за извлечение из БД - одна строка

func (*Service) ApiSelectHandler added in v0.3.1

func (s *Service) ApiSelectHandler(w http.ResponseWriter, r *http.Request)

ApiSelectHandler Сервис отвечает за извлечение из БД - несколько строк

func (*Service) ApiUpdateEntityMetaHandler added in v0.3.1

func (s *Service) ApiUpdateEntityMetaHandler(w http.ResponseWriter, r *http.Request)

ApiUpdateEntityMetaHandler Сервис отвечает за обновление метаданные entity

func (*Service) ApiXlsHandler added in v0.3.1

func (s *Service) ApiXlsHandler(w http.ResponseWriter, r *http.Request)

ApiXlsHandler Сервис отвечает за извлечение из БД и формирование xls

func (*Service) HealthHandler

func (s *Service) HealthHandler(w http.ResponseWriter, r *http.Request)

HealthHandler handle to livenessProbe

func (*Service) ReadyHandler

func (s *Service) ReadyHandler(w http.ResponseWriter, r *http.Request)

ReadyHandler handle to readinessProbe

func (*Service) WpHandlerFactorial

func (s *Service) WpHandlerFactorial(w http.ResponseWriter, r *http.Request)

WpHandlerFactorial handle worker pool

type WpFactorialReqResp

type WpFactorialReqResp struct {
	NumArray     *[]uint64 `json:"num_array,omitempty"`
	SumFactorial uint64    `json:"sum_factorial,omitempty"`
	Duration     string    `json:"duration,omitempty"`
}

Jump to

Keyboard shortcuts

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