provider

package
v0.0.0-...-f9511c6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenAI

type OpenAI struct {
	// contains filtered or unexported fields
}

func (*OpenAI) Analyze

func (p *OpenAI) Analyze(msg imap.Message) (int, error)

func (*OpenAI) Init

func (p *OpenAI) Init(credentials map[string]string) error

func (*OpenAI) Name

func (p *OpenAI) Name() string

type Provider

type Provider interface {
	Name() string
	Init(credentials map[string]string) error
	Analyze(message imap.Message) (int, error)
}

func New

func New(t string) (Provider, error)

Jump to

Keyboard shortcuts

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