All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.golang.serviceGrpc.insert.template Maven / Gradle / Ivy

The newest version!
response, err := executor.RequestExecutor.Execute@title@(ctx, request)
	if err != nil {
		logger.Error("Execute@title@ request failed", zap.Error(err))
		metrics.Metrics.PushToErrorCounterMetrics()(metrics.@title@_Error_Metrics,err,ctx)
		response = &fs.@service_response@{
             Status: @response_status_failure@
        }

		onErrorResponse := hook.@[email protected](ctx, request, nil, err)
		if onErrorResponse != nil {
            response = onErrorResponse
         }
	    return response
	}

	//On Respponse logic can be added here




© 2015 - 2025 Weber Informatics LLC | Privacy Policy