web

package
v0.0.0-...-1d0ba09 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2016 License: Apache-2.0 Imports: 23 Imported by: 0

README

Micro Web

Micro web provides a visual point of entry for the micro environment and should replicate the features of the CLI.

It also includes a reverse proxy to route requests to micro web apps. /[name] will proxy to the service [namespace].[name]. The default namespace is go.micro.web.

Getting Started

Install
go get github.com/micro/micro
Run Web UI/Proxy
micro web

Browse to localhost:8082

Serve Secure TLS

The Web proxy supports serving securely with TLS certificates

micro --enable_tls --tls_cert_file=/path/to/cert --tls_key_file=/path/to/key web
Set Namespace

The Web defaults to serving the namespace go.micro.web. The combination of namespace and request path are used to resolve a service to reverse proxy for.

micro --web_namespace=com.example.web

Stats

You can enable a stats dashboard via the --enable_stats flag. It will be exposed on /stats.

micro --enable_stats web

Screenshots

- -

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Default address to bind to
	Address = ":8082"
	// The namespace to serve
	// Example:
	// Namespace + /[Service]/foo/bar
	// Host: Namespace.Service Endpoint: /foo/bar
	Namespace = "go.micro.web"
	// Base path sent to web service.
	// This is stripped from the request path
	// Allows the web service to define absolute paths
	BasePathHeader = "X-Micro-Web-Base-Path"

	CORS = map[string]bool{"*": true}
)

Functions

func Commands

func Commands() []cli.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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