Documentation ¶
Overview ¶
Deployers provides useful utilities for implementing Service Weaver deployers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUnixSocketPath ¶
NewUnixSocketPath returns the path to use for a new Unix domain socket. The path exists in dir, which should be a directory entirely owned by this process, with a short full path-name, typically created by runtime.NewTempDir().
func ServeComponents ¶
func ServeComponents(ctx context.Context, listener net.Listener, logger *slog.Logger, components map[string]any) error
ServeComponents handles method calls made to the specified listener for the specified components.
Each components map entry has the full component name as the key, and the component implementation as the value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.