private

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package private is an internal holder of state that different Service Weaver packages share without exposing it externally. E.g., if module X wants to expose a function to module Y without making it public, X can store the function in a variable in private and Y can read it from there.

Index

Constants

This section is empty.

Variables

View Source
var Get func(root any, t reflect.Type) (any, error)

Get fetches the component with type t with root recorded as the requester.

View Source
var Run func(ctx context.Context, rootType reflect.Type, app func(context.Context, any) error) error

Run runs a Service Weaver application rooted at a component with interface type rootType and app as the body of the application.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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