Help us shape the future of Go! Take the 2026 Go Developer Survey

httphost

package
v0.4.36 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config, deps Deps) (agentkit.Platform, error)

Types

type Config

type Config struct {
	ListenAddr string `json:"listenAddr"`
}

func (*Config) SetDefaults added in v0.3.48

func (c *Config) SetDefaults()

New registers platform/http: HTTP host that serves http.DefaultServeMux. SetDefaults implements pluginkit.Defaulter.

type Deps

type Deps struct{}

type Platform

type Platform struct {
	// contains filtered or unexported fields
}

Platform serves http.DefaultServeMux. Other plugins (e.g. platform/chat-api with registerOnly) mount routes via http.Handle before this platform starts listening.

func (*Platform) PlatformID

func (p *Platform) PlatformID() string

func (*Platform) Receive

func (p *Platform) Receive(ctx context.Context) (agentkit.MessageEvent, error)

func (*Platform) Send

Jump to

Keyboard shortcuts

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