Documentation
¶
Index ¶
Constants ¶
View Source
const ( VersionV1 = "moltnet.client.v1" LegacyVersion = "spawnfile.moltnet-http-skill.v1" DefaultPath = ".moltnet/config.json" LegacyPath = ".spawnfile/moltnet.json" )
Variables ¶
View Source
var DefaultDiscoveryOrder = []string{ DefaultPath, LegacyPath, }
Functions ¶
func DefaultPathForWorkspace ¶
Types ¶
type AgentConfig ¶
type AttachmentConfig ¶
type AttachmentConfig struct {
AgentName string `json:"agent_name,omitempty"`
Auth AuthConfig `json:"auth"`
BaseURL string `json:"base_url"`
DMs *bridgeconfig.DMConfig `json:"dms,omitempty"`
MemberID string `json:"member_id"`
NetworkID string `json:"network_id"`
Rooms []bridgeconfig.RoomBinding `json:"rooms,omitempty"`
Runtime string `json:"runtime,omitempty"`
}
func (AttachmentConfig) ResolveToken ¶
func (a AttachmentConfig) ResolveToken() (string, error)
func (AttachmentConfig) Validate ¶
func (a AttachmentConfig) Validate() error
type AuthConfig ¶
type Config ¶
type Config struct {
Version string `json:"version"`
Agent AgentConfig `json:"agent"`
Attachments []AttachmentConfig `json:"attachments"`
}
func (Config) ResolveAttachment ¶
func (c Config) ResolveAttachment(networkID string) (AttachmentConfig, error)
Click to show internal directories.
Click to hide internal directories.