Documentation ¶
Overview ¶
Package v1 PremKit V1
The PremKit V1 service provides the load balancing service to dynamically route requests to registered PremKit services. //
Schemes: https Host: localhost BasePath: /v1 Version: 0.0.1 Contact: "Replicated, Inc." <code@premkit.com> https://www.premkit.com Consumes: - application/json Produces: - application/json
swagger:meta
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwardService ¶
func ForwardService(response http.ResponseWriter, request *http.Request)
ForwardService is the handler for anything that should be possibly fowarded to an upstream.
func RegisterService ¶
func RegisterService(response http.ResponseWriter, request *http.Request)
RegisterService is the handler called when a POST is made to register a new service.
Types ¶
type RegisterServiceParams ¶
type RegisterServiceParams struct { // Service registration parameters. // In: body Service *models.Service `json:"service"` ReplaceExisting bool `json:"replace_existing"` }
RegisterServiceParams contains parameters to the register service route. swagger:parameters registerService
type RegisterServiceResponse ¶
type RegisterServiceResponse struct { // Service // In: body Body *models.Service `json:"service"` }
RegisterServiceResponse represents the response to a registerService call. This response includes a pointer to the registered service. swagger:response registerServiceResponse
Click to show internal directories.
Click to hide internal directories.