api

package
v0.0.0-...-6ce7508 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerModeUDS = "uds"
	ServerModeTCP = "tcp"
)

Server mode constants

Variables

This section is empty.

Functions

func DefaultServerSocketPath

func DefaultServerSocketPath() string

DefaultServerSocketPath returns the default path for the server Unix socket.

func DefaultWorkerSocketPath

func DefaultWorkerSocketPath() string

DefaultWorkerSocketPath returns the default path for the worker-js Unix socket.

func DialWorker

func DialWorker(ctx context.Context, socketPath string) (net.Conn, error)

func ListenServices

func ListenServices(services []Service, port string) error

ListenServices starts the server listening on either a Unix socket or TCP port.

Environment variables:

  • SERVER_MODE: "uds" (default) or "tcp"
  • SERVER_SOCKET_PATH: custom socket path (uds mode, defaults to /tmp/the-dev-tools/server.socket)
  • PORT: port number (tcp mode, defaults to 8080)

Types

type ClientStreamAdHoc

type ClientStreamAdHoc[Req any] interface {
	Receive() (*Req, error)
}

type FullStreamAdHoc

type FullStreamAdHoc[Req, Res any] interface {
	Send(*Res) error
	Receive() (*Req, error)
}

type ServerStreamAdHoc

type ServerStreamAdHoc[Res any] interface {
	Send(*Res) error
}

type Service

type Service struct {
	Handler http.Handler
	Path    string
}

Directories

Path Synopsis
middleware
mwcodec
Package mwcodec provides custom codecs for Connect RPC.
Package mwcodec provides custom codecs for Connect RPC.
Package rauthadapter implements the AuthAdapterService ConnectRPC handler, bridging BetterAuth JSON adapter calls to the authadapter package.
Package rauthadapter implements the AuthAdapterService ConnectRPC handler, bridging BetterAuth JSON adapter calls to the authadapter package.
Package rimportv2 provides a modern unified import service with TypeSpec compliance.
Package rimportv2 provides a modern unified import service with TypeSpec compliance.

Jump to

Keyboard shortcuts

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