Categorygithub.com/Falokut/image_processing_service
module
0.0.0-20240419142812-0c62099c8639
Repository: https://github.com/falokut/image_processing_service.git
Documentation: pkg.go.dev

# README

Image Processing Service

Go Report Card go.dev reference GitHub go.mod Go version Go License

The Image Processing Service is a simple image processing service with gRPC and RestAPI endpoints.

Content

How to Run

  • clone git repo
    git clone https://github.com/Falokut/image_processing_service.git
  • create config file config.yml in dir ./config
  • provide config by docker compose volume
  • run by command
    docker compose up --build

Configuration params info

if supported values is empty, then any type values are supported

yml nameyml sectionenv nameparam typedescriptionsupported values
log_levelLOG_LEVELstringlogging levelpanic, fatal, error, warning, warn, info, debug, trace
healthcheck_portHEALTHCHECK_PORTstringport for healthcheckany valid port that is not occupied by other services. The string should not contain delimiters, only the port number
hostlistenHOSTstringip address or host to listen
portlistenPORTstringport to listenThe string should not contain delimiters, only the port number
max_request_sizelistenMAX_REQUEST_SIZEint32max request size in mb, by default 4 mbonly > 0
max_response_sizelistenMAX_RESPONSE_SIZEint32max response size in mb, by default 4 mbonly > 0
server_modelistenSERVER_MODEstringServer listen mode, Rest API, gRPC or bothGRPC, REST, BOTH
enable_metricsENABLE_METRICSboolenable metrics report or not, if true, prometheus and jaeger metrics configs will be ignored
service_nameprometheusPROMETHEUS_SERVICE_NAMEstringservice name, thats will show in prometheus
server_configprometheusnested yml configuration metrics server config
jaegernested yml configuration jaeger configconfiguration for jaeger connection

Jaeger config

yml nameenv nameparam typedescriptionsupported values
addressJAEGER_ADDRESSstringip address(or host) with port of jaeger serviceall valid addresses formatted like host:port or ip-address:port
service_nameJAEGER_SERVICE_NAMEstringservice name, thats will show in jaeger in traces
log_spansJAEGER_LOG_SPANSboolwhether to enable log scans in jaeger for this service or not

Prometheus config

yml nameenv nameparam typedescriptionsupported values
hostMETRIC_HOSTstringip address or host to listen for prometheus service
portMETRIC_PORTstringport to listen for of prometheus serviceany valid port that is not occupied by other services. The string should not contain delimiters, only the port number

Docs

Used modules

Author

  • @Falokut - Primary author of the project

License

This project is licensed under the terms of the MIT License.


# Packages

No description provided by the author
No description provided by the author