compose

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package compose is the cmd-owned wire composition root for FactoryService. Regenerate wire_gen.go with: go generate ./cmd/factory/compose/...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectFactoryService

func InjectFactoryService(ctx context.Context, cfg *service.FactoryServiceConfig) (*service.FactoryService, error)

InjectFactoryService is the wireinject entry for the factory composition root.

func ServeAPIServer

func ServeAPIServer(
	ctx context.Context,
	runtime apisurface.APISurface,
	port int,
	logger *zap.Logger,
	listener net.Listener,
) error

ServeAPIServer starts the factory HTTP API on listener using api.NewServer with the wired FactoryService (or any apisurface.APISurface implementation).

Types

This section is empty.

Jump to

Keyboard shortcuts

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