serverhost

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package serverhost builds an AI instance for a service on package server. It is separate from ai/instance so a host that does not run on package server (a host agent, a CLI) can use ai/instance without linking the HTTP server, Let's Encrypt, and their dependencies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New builds an instance for a service on package server, filling what the server already knows: Publisher defaults to srv.MessengerClient when the server has one, Handler to srv.Srv.Handler, Name and Service to srv.ServerOptions.Component, and Logger to srv.Logger. Mount it on srv.Router behind the service's auth wrappers before srv.Start.

Types

This section is empty.

Jump to

Keyboard shortcuts

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