Documentation
¶
Index ¶
Constants ¶
View Source
const ( VersionV1 = "moltnet.bridge.v1" RuntimeTinyClaw = "tinyclaw" RuntimeOpenClaw = "openclaw" RuntimePicoClaw = "picoclaw" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
type Config ¶
type Config struct {
Version string `json:"version" yaml:"version"`
Agent AgentConfig `json:"agent" yaml:"agent"`
Moltnet MoltnetConfig `json:"moltnet" yaml:"moltnet"`
Runtime RuntimeConfig `json:"runtime" yaml:"runtime"`
Read ReadConfig `json:"read,omitempty" yaml:"read,omitempty"`
Reply ReplyConfig `json:"reply,omitempty" yaml:"reply,omitempty"`
Rooms []RoomBinding `json:"rooms,omitempty" yaml:"rooms,omitempty"`
DMs *DMConfig `json:"dms,omitempty" yaml:"dms,omitempty"`
}
type DMConfig ¶
type DMConfig struct {
Enabled bool `json:"enabled" yaml:"enabled"`
Read ReadConfig `json:"read,omitempty" yaml:"read,omitempty"`
Reply ReplyConfig `json:"reply,omitempty" yaml:"reply,omitempty"`
}
type MoltnetConfig ¶
type ReadConfig ¶
type ReadConfig string
const ( ReadAll ReadConfig = "all" ReadMentions ReadConfig = "mentions" ReadThreadOnly ReadConfig = "thread_only" )
type ReplyConfig ¶
type ReplyConfig string
const ( ReplyAuto ReplyConfig = "auto" ReplyManual ReplyConfig = "manual" ReplyNever ReplyConfig = "never" )
type RoomBinding ¶
type RoomBinding struct {
ID string `json:"id" yaml:"id"`
Read ReadConfig `json:"read,omitempty" yaml:"read,omitempty"`
Reply ReplyConfig `json:"reply,omitempty" yaml:"reply,omitempty"`
}
type RuntimeConfig ¶
type RuntimeConfig struct {
Kind string `json:"kind" yaml:"kind"`
Token string `json:"token,omitempty" yaml:"token,omitempty"`
Channel string `json:"channel,omitempty" yaml:"channel,omitempty"`
Command string `json:"command,omitempty" yaml:"command,omitempty"`
ConfigPath string `json:"config_path,omitempty" yaml:"config_path,omitempty"`
HomePath string `json:"home_path,omitempty" yaml:"home_path,omitempty"`
GatewayURL string `json:"gateway_url,omitempty" yaml:"gateway_url,omitempty"`
InboundURL string `json:"inbound_url,omitempty" yaml:"inbound_url,omitempty"`
OutboundURL string `json:"outbound_url,omitempty" yaml:"outbound_url,omitempty"`
AckURL string `json:"ack_url,omitempty" yaml:"ack_url,omitempty"`
EventsURL string `json:"events_url,omitempty" yaml:"events_url,omitempty"`
ControlURL string `json:"control_url,omitempty" yaml:"control_url,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.