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.