package
0.24.6
Repository: https://github.com/serviceweaver/weaver.git
Documentation: pkg.go.dev

# Functions

CallGraph returns the component call graph (as a list of CallEdge values).
CatchPanics recovers from panic() calls that occur during encoding, decoding, and RPC execution.
ComponentConfigValidator checks that cfg is a valid configuration for the component type whose fully qualified name is given by path.
ExtractEdges returns the edges corresponding to MakeEdgeString() results that occur in data.
ExtractListeners returns the components and their listeners encoded using MakeListenersString() in data.
Find returns the registration of the named component.
MakeEdgeString returns a string that should be emitted into generated code to represent an edge from src to dst.
MakeListenersString returns a string that should be emitted into generated code to represent the set of listeners associated with a given component.
MethodMetricsFor returns metrics for the specified method.
NewDecoder instantiates a new Decoder for a given byte slice.
No description provided by the author
Register registers a Service Weaver component.
Registered returns the components registered with Register.
RegisterSerializable records type T as serializable.

# Constants

Infinity is the greatest element of the set of all OrderedCodes.

# Structs

CallEdge records that fact that the Caller component uses the Callee component.
ComponentListeners represents a set of listeners for a given component.
Decoder deserializes data from a byte slice data in the expected results.
Encoder serializes data in a byte slice data.
Hasher computes a non-cryptographic hash of the sequence of values added to it.
MethodCallHandle holds information needed to finalize metric updates for a method call.
No description provided by the author
MethodMetrics contains metrics for a single Service Weaver component method.
OrderedEncoder serializes values in an order preserving fashion.
Registration is the configuration needed to register a Service Weaver component.

# Interfaces

AutoMarshal is the interface implemented by structs with weaver.AutoMarshal declarations.
A Server allows a Service Weaver component in one process to receive and execute methods via RPC from a Service Weaver component in a different process.
A Stub allows a Service Weaver component in one process to invoke methods via RPC on a Service Weaver component in a different process.

# Type aliases

OrderedCode is an order preserving encoded value.
No description provided by the author