proxy

package
v0.0.0-...-5237b18 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package proxy is a cli proxy

Index

Constants

This section is empty.

Variables

View Source
var (
	// Name of the proxy
	Name = "go.micro.proxy"
	// Address The address of the proxy
	Address = ":8081"
	// Protocol the proxy protocol
	Protocol = "http"
	// Endpoint The endpoint host to route to
	Endpoint = "http://127.0.0.1:6060"
)

Functions

func Plugins

func Plugins() []plugin.Plugin

Plugins lists the sidecar plugins

func Register

func Register(pl plugin.Plugin) error

Register registers an sidecar plugin

func Run

func Run(sOpts *ServerOptions, srvOpts ...micro.Option)

Run proxy server

Types

type ServerOptions

type ServerOptions struct {
	Name     string
	Address  string
	Protocol string
	Endpoint string
}

ServerOptions server options

Jump to

Keyboard shortcuts

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