Documentation
¶
Index ¶
- type Config
- type Server
- func (s *Server) Handler() http.Handler
- func (s *Server) Serve(ln net.Listener) error
- func (s *Server) ServeAuth(ln net.Listener, resolver *auth.Resolver) error
- func (s *Server) ServeTLS(ln net.Listener, certFile, keyFile string) error
- func (s *Server) SetTLSConfig(tlsCfg *tls.Config)
- func (s *Server) Shutdown(ctx context.Context) error
- type WSAttachmentMsg
- type WSExitMsg
- type WSInputMsg
- type WSMessage
- type WSOutputMsg
- type WSResizeMsg
- type WSScrollbackMsg
- type WSYoloDebugMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ServeAuth ¶ added in v0.17.0
ServeAuth serves the agent-facing auth-required listener using the supplied resolver. The handler chain is AuthMiddleware (sets Principal from Authorization header) → EnforceMiddleware (denies non-Owner principals on routes outside the allowlist) → mux.
Intended use: bind to 127.0.0.1 only, expose to local PTY processes via $KOJO_API_BASE. The public listener (Serve) bypasses auth and keeps the user UX intact.
func (*Server) SetTLSConfig ¶
type WSAttachmentMsg ¶ added in v0.5.0
type WSAttachmentMsg struct {
Type string `json:"type"`
Attachments []*session.Attachment `json:"attachments"`
}
type WSInputMsg ¶
type WSMessage ¶
type WSMessage struct {
Type string `json:"type"`
Data json.RawMessage `json:"data,omitempty"`
}
WebSocket message types
type WSOutputMsg ¶
type WSResizeMsg ¶
type WSScrollbackMsg ¶
type WSYoloDebugMsg ¶
Click to show internal directories.
Click to hide internal directories.