v1

package
v0.0.0-...-59b4e17 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

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

Jump to

Keyboard shortcuts

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