package
1.16.1
Repository: https://github.com/arun-spire/go-micro.git
Documentation: pkg.go.dev

# README

Runtime

A runtime for self governing services.

Overview

In recent years we've started to develop complex architectures for the pipeline between writing code and running it. This philosophy of build, run, manage or however many variations, has created a number of layers of abstraction that make it all the more difficult to run code.

Runtime manages the lifecycle of a service from source to running process. If the source is the source of truth then everything in between running is wasted breath. Applications should be self governing and self sustaining. To enable that we need libraries which make it possible.

Runtime will fetch source code, build a binary and execute it. Any Go program that uses this library should be able to run dependencies or itself with ease, with the ability to update itself as the source is updated.

Features

  • Source - Fetches source whether it be git, go, docker, etc
  • Package - Compiles the source into a binary which can be executed
  • Process - Executes a binary and creates a running process

Usage

TODO

# Packages

Package kubernetes implements kubernetes micro runtime.
Package packager creates a binary image.
Package process executes a binary.
No description provided by the author
No description provided by the author
Package source retrieves source code.

# Functions

NewRuntime creates new local runtime and returns it.
WithCommand specifies the command to execute.
WithEnv sets the created service environment.
AutoUpdate enables micro auto-updates.
WithOutput sets the arg output.

# Constants

Create is emitted when a new build has been craeted.
Delete is emitted when a build has been deleted.
Update is emitted when a new update become available.

# Variables

DefaultRuntime is default micro runtime.

# Structs

CreateOptions configure runtime services.
Event is notification event.
Options configure runtime.
Service is runtime service.

# Interfaces

Notifier is an update notifier.
Runtime is a service runtime manager.

# Type aliases

No description provided by the author
EventType defines notification event.
No description provided by the author