runtime

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package runtime is the micro runtime

Package runtime is the micro runtime

Index

Constants

View Source
const (
	// RunUsage message for the run command
	RunUsage = "Required usage: micro run [service] [version] [--source github.com/micro/services]"
	// KillUsage message for the kill command
	KillUsage = "Require usage: micro kill [service] [version]"
	// UpdateUsage message for the update command
	UpdateUsage = "Require usage: micro update [service] [version]"
	// GetUsage message for micro get command
	GetUsage = "Require usage: micro ps [service] [version]"
	// ServicesUsage message for micro services command
	ServicesUsage = "Require usage: micro services"
	// CannotWatch message for the run command
	CannotWatch = "Cannot watch filesystem on this runtime"
)

Variables

View Source
var (
	// Name of the runtime
	Name = "go.micro.runtime"
	// Address of the runtime
	Address = ":8088"
)
View Source
var (
	// DefaultRetries which should be attempted when starting a service
	DefaultRetries = 3
	// Image to specify if none is specified
	Image = "docker.pkg.github.com/micro/services"
	// Source where we get services from
	Source = "github.com/micro/services"
)

Functions

func Commands

func Commands(options ...micro.Option) []*cli.Command

func Flags

func Flags() []cli.Flag

Flags is shared flags so we don't have to continually re-add

func Plugins

func Plugins() []plugin.Plugin

Plugins lists the runtime plugins

func Register

func Register(pl plugin.Plugin) error

Register registers an runtime plugin

func Run

func Run(ctx *cli.Context, srvOpts ...micro.Option)

Run the runtime service

Types

This section is empty.

Directories

Path Synopsis
Package profile is for specific profiles
Package profile is for specific profiles
Package scheduler is a file server notifer
Package scheduler is a file server notifer

Jump to

Keyboard shortcuts

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