run

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2018 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

micro run

The micro run command manages the lifecycle of a microservice. It fetches the source, builds a binary and executes it. It's a simple tool which can be used for local development. If no arguments are specified micro run operates as a service which can manage other services.

Note: The default runtime (Go) requires the Go binary in PATH and GOPATH to be set.

Overview

Run

micro run github.com/service/foo

Status

micro run -s github.com/service/foo

Kill

micro run -k github.com/service/foo

Run service manager

micro run

Defer run to service manager

micro run -x github.com/service/foo

Run and restart on death

micro run -r github.com/service/foo

Run and update source on fetch

micro run -u github.com/service/foo

Usage

NAME:
   micro run - Run the micro runtime

USAGE:
   micro run [command options] [arguments...]

OPTIONS:
   -k	Kill service
   -r	Restart if dies. Default: false
   -u	Update the source. Default: false
   -x	Defer run to service. Default: false
   -s	Get service status
   

TODO

  • Accept args and env vars to service
  • Add Service interface to go-run
  • Support configurable runtimes beyond Go
  • Rebuild with plugins
  • Daemonization?
  • Watch memory consumption and kill?
  • Chroot the process?

Documentation

Overview

Package run is a micro service runtime

Index

Constants

This section is empty.

Variables

View Source
var (
	Name = "go.micro.run"
)

Functions

func Commands

func Commands() []cli.Command

func Plugins

func Plugins() []plugin.Plugin

Plugins lists the api plugins

func Register

func Register(pl plugin.Plugin) error

Register registers an api plugin

Types

This section is empty.

Directories

Path Synopsis
Package go_micro_run is a generated protocol buffer package.
Package go_micro_run is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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