cmd

package
v0.0.0-...-aca9518 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 4

Documentation

Overview

Main process entrypoint.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockStartup

func MockStartup(ctx context.Context, requests []func(*component.DepRequests)) component.ApiMap

Used for component integration tests.

Performs the same chores as `Run`, but does not accept configuring flags, does not expose a health check server and does not block until shutdown. Returns as soon as startup completes to allow the caller to orchestrate integration tests.

func Run

func Run(dependencies ...func(*component.DepRequests))

Main entrypoint of an executable.

`dependencies` are required components that the executable needs to load. Transitive dependencies are resolved automatically.

See the `component` package for more information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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