rest

package
v0.0.0-...-a8bb040 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProxy

func CreateProxy(w http.ResponseWriter, r *http.Request)

CreateProxy by delegating the call to the ToxiProxy service and try to open the k8s ports before

func Healthcheck

func Healthcheck(w http.ResponseWriter, r *http.Request)

Healthcheck the microservice

func NewRouter

func NewRouter() *mux.Router

NewRouter returns a given router

func ProxyRequest

func ProxyRequest(w http.ResponseWriter, r *http.Request)

ProxyRequest to toxiproxy service

Types

type Proxy

type Proxy struct {
	Name     string `json:"name"`
	Listen   string `json:"listen"`
	Upstream string `json:"upstream"`
	Enabled  bool   `json:"enabled"`
	Toxics   string `json:"-"`
}

Jump to

Keyboard shortcuts

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