runtime

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

func Loader

func Loader(loader ...loader.Loader) Option

Loader with service loader.

type Options

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

Options configure runtime

type Runtime

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

func NewRuntime

func NewRuntime(opts ...Option) *Runtime

NewRuntime creates new local runtime and returns it

func (*Runtime) Init

func (r *Runtime) Init(opts ...Option) error

Init initializes runtime

func (*Runtime) Start

func (r *Runtime) Start(ctx context.Context) error

Start runtime start

func (*Runtime) Stop

func (r *Runtime) Stop(ctx context.Context) (err error)

Stop stops runtime

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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