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 ¶
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.
Click to show internal directories.
Click to hide internal directories.