deployers

package
v0.5.48 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

func NewUnixSocketPath(dir string) string

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.

Jump to

Keyboard shortcuts

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