func (h *GetRuntimeServerHandlerImpl) Handle(params server.GetRuntimeServerParams, principal interface{}) middleware.Responder {
	rs, err := h.Client.Runtime.GetServerState(params.Backend, params.Name)
	if err != nil {
		e := misc.HandleError(err)
		return server.NewGetRuntimeServerDefault(int(*e.Code)).WithPayload(e)
	}
	if rs == nil {
		code := int64(404)
		msg := fmt.Sprintf("Runtime server %s not found in backend %s", params.Name, params.Backend)
		return server.NewGetRuntimeServerNotFound().WithPayload(&models.Error{Code: &code, Message: &msg})
	}
	return server.NewGetRuntimeServerOK().WithPayload(rs)
}
Handle executing the request and returning a response
package handlers
import (
	"fmt"
	"github.com/go-openapi/runtime/middleware"
	client_native "github.com/haproxytech/client-native/v2"
	"github.com/haproxytech/client-native/v2/models"
	"github.com/haproxytech/dataplaneapi/misc"
	"github.com/haproxytech/dataplaneapi/operations/server"
)
type GetRuntimeServerHandlerImpl struct {
	Client *client_native.HAProxyClient
}
type GetRuntimeServersHandlerImpl struct {
	Client *client_native.HAProxyClient
}
type ReplaceRuntimeServerHandlerImpl struct {
	Client *client_native.HAProxyClient
}