local

package
v3.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// The directory for logs to be output
	LogDir = filepath.Join(os.TempDir(), "micro", "logs")
	// The source directory where code lives
	SourceDir = filepath.Join(os.TempDir(), "micro", "uploads")
)

Functions

func Entrypoint

func Entrypoint(dir string) (string, error)

Entrypoint determines the entrypoint for the service, since main.go doesn't always exist at the top level. Entrypoint will firstly look for a directory containing a .mu file (e.g. users.mu), if this isn't present it'll look for main.go in the top level of the directory and then in the cmd package (idiomatic service structure).

func NewRuntime

func NewRuntime(opts ...runtime.Option) runtime.Runtime

NewRuntime creates new local runtime and returns it

Types

This section is empty.

Directories

Path Synopsis
Package process executes a binary
Package process executes a binary
os
Package os runs processes locally
Package os runs processes locally
test
bar
Package main is used to test the local runtime, specifically the entrypoint function
Package main is used to test the local runtime, specifically the entrypoint function
foo/cmd/bar
Package main is used to test the local runtime, specifically the entrypoint function
Package main is used to test the local runtime, specifically the entrypoint function
foo/cmd/baz
Package main is used to test the local runtime, specifically the entrypoint function
Package main is used to test the local runtime, specifically the entrypoint function
qux/cmd/test
Package main is used to test the local runtime, specifically the entrypoint function
Package main is used to test the local runtime, specifically the entrypoint function

Jump to

Keyboard shortcuts

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