Versions in this module Expand all Collapse all v1 v1.0.0 Jun 29, 2026 Changes in this version + func Langs() []string + func Register(e Engine) + type Engine interface + Aliases func() []string + Lang func() string + Load func(ctx context.Context, src []byte, opt LoadOptions) (Module, error) + func EngineFor(lang string) (Engine, bool) + type HandlerFunc func(ctx context.Context, payload []byte) ([]byte, error) + type LoadOptions struct + Env map[string]string + Name string + type Manifest struct + Env map[string]string + Lang string + Name string + Pool int + Prefix string + Routes []Route + Source string + func LoadManifest(path string) (*Manifest, error) + func ParseManifest(b []byte, desc string) (*Manifest, error) + func (m *Manifest) Build(ctx context.Context, fsys fs.FS) (*Service, error) + type Module interface + Close func() error + Funcs func() []string + Invoke func(ctx context.Context, fn string, payload []byte) ([]byte, error) + func Load(ctx context.Context, lang string, src []byte, opt LoadOptions) (Module, error) + type NativeModule struct + func NewNativeModule(funcs map[string]HandlerFunc) *NativeModule + func (m *NativeModule) Close() error + func (m *NativeModule) Funcs() []string + func (m *NativeModule) Invoke(ctx context.Context, fn string, payload []byte) ([]byte, error) + type Pool struct + func LoadPool(ctx context.Context, lang string, src []byte, size int, opt LoadOptions) (*Pool, error) + func NewPool(size int, factory func() (Module, error)) (*Pool, error) + func (p *Pool) Close() error + func (p *Pool) Invoke(ctx context.Context, fn string, payload []byte) ([]byte, error) + type Route struct + Func string + Method string + Path string + type Service struct + Name string + Pool *Pool + Prefix string + Routes []Route + func LoadDir(ctx context.Context, dir string) ([]*Service, error) + func LoadFS(ctx context.Context, fsys fs.FS) ([]*Service, error) + func (s *Service) Handler() http.Handler + func (s *Service) Mount(mux *http.ServeMux)