Documentation ¶
Index ¶
- Variables
- func DisplayInVim(content string, filetype string) error
- func DoesConfigFileExists() bool
- func GetConfigFilePath() string
- func GetLlmKey(llmName string) (string, error)
- func IsLighthouseInstalled() bool
- func IsNodeInstalled() bool
- func IsPa11yInstalled() bool
- func ParseGeminiOutput(input string) string
- func QueryGemini(apiKey string, prompt string) (string, error)
- func QueryHuggingFace(apiKey, modelName, prompt string) (string, error)
- func WriteToConfigFile(config ConfigFile) error
- type Candidate
- type ConfigFile
- type Content
- type GeminiReqPayload
- type GeminiResp
- type LighthouseAudit
- type LighthouseReport
- type Llm
- type LlmConfig
- type Pa11yOutputErr
- type Part
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DisplayInVim ¶
func DoesConfigFileExists ¶
func DoesConfigFileExists() bool
func GetConfigFilePath ¶
func GetConfigFilePath() string
func IsLighthouseInstalled ¶
func IsLighthouseInstalled() bool
func IsNodeInstalled ¶
func IsNodeInstalled() bool
func IsPa11yInstalled ¶
func IsPa11yInstalled() bool
func ParseGeminiOutput ¶
func QueryHuggingFace ¶
func WriteToConfigFile ¶
func WriteToConfigFile(config ConfigFile) error
Types ¶
type ConfigFile ¶
type ConfigFile struct { Default Llm `json:"default" mapstructure:"default"` Llms []LlmConfig `json:"llms" mapstructure:"llms"` }
func ReadConfigFile ¶
func ReadConfigFile() (ConfigFile, error)
type GeminiReqPayload ¶
type GeminiReqPayload struct {
Contents []Content `json:"contents"`
}
type GeminiResp ¶
type GeminiResp struct {
Candidates []Candidate `json:"candidates"`
}
type LighthouseAudit ¶
type LighthouseReport ¶
type LighthouseReport struct {
Audits map[string]LighthouseAudit `json:"audits"`
}
func GenerateLighthouseReport ¶
func GenerateLighthouseReport(website string) (LighthouseReport, error)
type Pa11yOutputErr ¶
type Pa11yOutputErr struct { Code string `json:"code"` Message string `json:"message"` Context string `json:"context"` }
func GeneratePa11yReport ¶
func GeneratePa11yReport(website string) ([]Pa11yOutputErr, error)
Click to show internal directories.
Click to hide internal directories.