runtime

package
v0.0.0-...-e38db06 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunConfig

type RunConfig struct {
	Entry resolver.ResolverEntry
}

RunConfig provides configuration options for running the application in various modes WARNING: only one option should be enabled per build/process

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

Runtime provides an abstraction over the Resolver for running the application in various modes and handling graceful shutdown via goroutines

func NewRuntime

func NewRuntime(c *resolver.Config) *Runtime

NewRuntime provides a new Runtime instance

func (*Runtime) Run

func (rt *Runtime) Run(conf *RunConfig) *resolver.Resolver

Run creates a new Resolver with associated context group, then runs goroutines for initializing the application and handling graceful shutdown

Jump to

Keyboard shortcuts

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