Documentation
¶
Index ¶
- Constants
- func BridgeEndpointAvailable(path string) bool
- func BridgeHealthProbe(path string, timeout time.Duration) error
- func CallLocalBridge(ctx context.Context, request BridgeRequest, resolved *appconfig.Resolved) (map[string]any, error)
- func IsWebSocketMode(resolved *appconfig.Resolved) bool
- func ListenBridge(path string) (net.Listener, error)
- type BridgeCallError
- type BridgeError
- type BridgeRequest
- type BridgeResponse
- type HermesConfig
- type HostNotifyConfig
- type ListenerConfig
- type OpenClawConfig
- type Resolved
Constants ¶
View Source
const ( ModeHTTP = "http" ModeWebSocket = "websocket" )
Variables ¶
This section is empty.
Functions ¶
func BridgeEndpointAvailable ¶
func CallLocalBridge ¶
func IsWebSocketMode ¶
Types ¶
type BridgeCallError ¶
func (*BridgeCallError) Error ¶
func (e *BridgeCallError) Error() string
func (*BridgeCallError) Unwrap ¶
func (e *BridgeCallError) Unwrap() error
type BridgeError ¶
type BridgeRequest ¶
type BridgeResponse ¶
type BridgeResponse struct {
OK bool `json:"ok"`
Result map[string]any `json:"result,omitempty"`
Error *BridgeError `json:"error,omitempty"`
}
type HermesConfig ¶
type HostNotifyConfig ¶
type HostNotifyConfig struct {
Enabled bool `json:"enabled"`
Sink string `json:"sink"`
FilePath string `json:"file_path,omitempty"`
OpenClaw OpenClawConfig `json:"openclaw,omitempty"`
Hermes HermesConfig `json:"hermes,omitempty"`
}
type ListenerConfig ¶
type OpenClawConfig ¶
Click to show internal directories.
Click to hide internal directories.