setup

package
v0.0.0-...-2f34b8b Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: AGPL-3.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotRegistered = errors.New("not registered")
View Source
var FileConverter = NewRegistry[port.FileConverter]()
View Source
var TaskRunner = NewRegistry[port.TaskRunner]()

Functions

func NewDesktopServer

func NewDesktopServer(ctx context.Context) (*http.Server, error)

func NewHTTPServerFromConfig

func NewHTTPServerFromConfig(ctx context.Context, conf *config.Config) (*http.Server, error)

func NewSQLiteVecIndexFromConfig

func NewSQLiteVecIndexFromConfig(ctx context.Context, conf *config.Config) (port.Index, error)

Types

type Factory

type Factory[T any] func(u *url.URL) (T, error)

type Registry

type Registry[T any] struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry[T any]() *Registry[T]

func (*Registry[T]) From

func (r *Registry[T]) From(rawURL string) (T, error)

func (*Registry[T]) Register

func (r *Registry[T]) Register(scheme string, factory Factory[T])

Jump to

Keyboard shortcuts

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