vulnbot

package
v0.0.0-...-7354109 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VulnerabilityIDOption    = "vulnerability-id"
	QuestionOption           = "question"
	PackageNameOption        = "package"
	PackageManagerNameOption = "package-manager"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	fx.In

	Lifecycle fx.Lifecycle
	ML        ml.Service
	Session   *discordgo.Session
	DB        *sql.DB
	LangChain gen.LangChainClient
}

type Result

type Result struct {
	fx.Out

	Commands []*discordfx.ApplicationCommandWithHandler `group:"command,flatten"`
	Handlers []*discordfx.MessageHandler                `group:"handler,flatten"`
	VulnBot
}

func NewVulnBot

func NewVulnBot(p Params) Result

type VulnBot

type VulnBot interface {
	Start() error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL