Documentation
¶
Index ¶
- func DiscordConfigMeta() []config.Field
- func EmailConfigMeta() []config.Field
- func GithubIssueConfigMeta() []config.Field
- func GithubPRConfigMeta() []config.Field
- func IRCConfigMeta() []config.Field
- func MatrixConfigMeta() []config.Field
- func SlackConfigMeta() []config.Field
- func TelegramConfigMeta() []config.Field
- func TwitterConfigMeta() []config.Field
- type Discord
- type Email
- type GithubIssues
- type GithubPRs
- type IRC
- type ImageData
- type Matrix
- type Slack
- type Telegram
- type Twitter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscordConfigMeta ¶
func EmailConfigMeta ¶
func GithubIssueConfigMeta ¶
GithubIssueConfigMeta returns the metadata for GitHub Issues connector configuration fields
func GithubPRConfigMeta ¶
GithubPRConfigMeta returns the metadata for GitHub PR connector configuration fields
func IRCConfigMeta ¶
IRCConfigMeta returns the metadata for IRC connector configuration fields
func MatrixConfigMeta ¶
MatrixConfigMeta returns the metadata for Matrix connector configuration fields
func SlackConfigMeta ¶
SlackConfigMeta returns the metadata for Slack connector configuration fields
func TelegramConfigMeta ¶
TelegramConfigMeta returns the metadata for Telegram connector configuration fields
func TwitterConfigMeta ¶
TwitterConfigMeta returns the metadata for Twitter connector configuration fields
Types ¶
type Discord ¶
type Discord struct {
// contains filtered or unexported fields
}
func NewDiscord ¶
NewDiscord creates a new Discord connector with the given configuration - token: Discord token - defaultChannel: Discord channel to always answer even if not mentioned
func (*Discord) AgentReasoningCallback ¶
func (d *Discord) AgentReasoningCallback() func(state types.ActionCurrentState) bool
func (*Discord) AgentResultCallback ¶
func (d *Discord) AgentResultCallback() func(state types.ActionState)
type Email ¶
type Email struct {
// contains filtered or unexported fields
}
func (*Email) AgentReasoningCallback ¶
func (e *Email) AgentReasoningCallback() func(state types.ActionCurrentState) bool
func (*Email) AgentResultCallback ¶
func (e *Email) AgentResultCallback() func(state types.ActionState)
type GithubIssues ¶
type GithubIssues struct {
// contains filtered or unexported fields
}
func NewGithubIssueWatcher ¶
func NewGithubIssueWatcher(config map[string]string) *GithubIssues
NewGithubIssueWatcher creates a new GithubIssues connector with the given configuration - token: Github token - repository: Github repository name - owner: Github repository owner - replyIfNoReplies: If true, the bot will reply to issues with no comments
func (*GithubIssues) AgentReasoningCallback ¶
func (g *GithubIssues) AgentReasoningCallback() func(state types.ActionCurrentState) bool
func (*GithubIssues) AgentResultCallback ¶
func (g *GithubIssues) AgentResultCallback() func(state types.ActionState)
func (*GithubIssues) Start ¶
func (g *GithubIssues) Start(a *agent.Agent)
type GithubPRs ¶
type GithubPRs struct {
// contains filtered or unexported fields
}
func NewGithubPRWatcher ¶
NewGithubIssueWatcher creates a new GithubPRs connector with the given configuration - token: Github token - repository: Github repository name - owner: Github repository owner - replyIfNoReplies: If true, the bot will reply to issues with no comments
func (*GithubPRs) AgentReasoningCallback ¶
func (g *GithubPRs) AgentReasoningCallback() func(state types.ActionCurrentState) bool
func (*GithubPRs) AgentResultCallback ¶
func (g *GithubPRs) AgentResultCallback() func(state types.ActionState)
type IRC ¶
type IRC struct {
// contains filtered or unexported fields
}
func (*IRC) AgentReasoningCallback ¶
func (i *IRC) AgentReasoningCallback() func(state types.ActionCurrentState) bool
func (*IRC) AgentResultCallback ¶
func (i *IRC) AgentResultCallback() func(state types.ActionState)
type Matrix ¶
type Matrix struct {
// contains filtered or unexported fields
}
func (*Matrix) AgentReasoningCallback ¶
func (m *Matrix) AgentReasoningCallback() func(state types.ActionCurrentState) bool
func (*Matrix) AgentResultCallback ¶
func (m *Matrix) AgentResultCallback() func(state types.ActionState)
type Slack ¶
type Slack struct {
// contains filtered or unexported fields
}
func (*Slack) AgentReasoningCallback ¶
func (t *Slack) AgentReasoningCallback() func(state types.ActionCurrentState) bool
func (*Slack) AgentResultCallback ¶
func (t *Slack) AgentResultCallback() func(state types.ActionState)
type Telegram ¶
type Telegram struct {
Token string
// contains filtered or unexported fields
}
func (*Telegram) AgentReasoningCallback ¶
func (t *Telegram) AgentReasoningCallback() func(state types.ActionCurrentState) bool
func (*Telegram) AgentResultCallback ¶
func (t *Telegram) AgentResultCallback() func(state types.ActionState)
type Twitter ¶
type Twitter struct {
// contains filtered or unexported fields
}
func (*Twitter) AgentReasoningCallback ¶
func (t *Twitter) AgentReasoningCallback() func(state types.ActionCurrentState) bool
func (*Twitter) AgentResultCallback ¶
func (t *Twitter) AgentResultCallback() func(state types.ActionState)