search

package
v0.1.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Enable  bool   `yaml:"enable"`
	Name    string `yaml:"name"`
	URL     string `yaml:"url"`
	Method  string `yaml:"method"`
	Headers []KV   `yaml:"headers"`
	Body    string `yaml:"body"`
	Answer  string `yaml:"answer"`
}

API 自定义的一些API

func (API) SearchAnswer

func (in API) SearchAnswer(req model.SearchRequest) (answer [][]string, err error)

SearchAnswer -

type AidianClient

type AidianClient struct {
	Enable bool
	YToken string
}

AidianClient 爱点题库

func (*AidianClient) SearchAnswer

func (in *AidianClient) SearchAnswer(req model.SearchRequest) (answer [][]string, err error)

SearchAnswer 搜索答案

type BuguakeClient

type BuguakeClient struct {
	Enable bool
}

BuguakeClient 不挂科网页版题库

func (*BuguakeClient) SearchAnswer

func (in *BuguakeClient) SearchAnswer(req model.SearchRequest) (answer [][]string, err error)

SearchAnswer 搜索答案

type ChatGptClient

type ChatGptClient struct {
	Disable bool   // 是否禁用
	Token   string // token
	Host    string // openAi host
}

ChatGptClient chatgpt搜题客户

func (*ChatGptClient) SearchAnswer

func (in *ChatGptClient) SearchAnswer(req model.SearchRequest) (answer [][]string, err error)

SearchAnswer 暂时未实现

type EnncyClient

type EnncyClient struct {
	Enable bool   // 是否禁用
	Token  string // token
}

EnncyClient enncy题库

func (*EnncyClient) SearchAnswer

func (in *EnncyClient) SearchAnswer(req model.SearchRequest) (answer [][]string, err error)

SearchAnswer 搜索答案

type IcodefClient

type IcodefClient struct {
	Enable bool
	Token  string
}

IcodefClient icodef题库

func (*IcodefClient) SearchAnswer

func (in *IcodefClient) SearchAnswer(req model.SearchRequest) (answer [][]string, err error)

SearchAnswer 搜索答案

type KV

type KV struct {
	Key   string `yaml:"key"`
	Value string `yaml:"value"`
}

KV -

type LemonClient

type LemonClient struct {
	Enable bool
	Token  string
}

LemonClient 柠檬题库

func (*LemonClient) SearchAnswer

func (in *LemonClient) SearchAnswer(req model.SearchRequest) (answer [][]string, err error)

SearchAnswer 搜索答案

type Search interface {
	SearchAnswer(req model.SearchRequest) (answer [][]string, err error)
	// contains filtered or unexported methods
}

Search 搜题接口

func GetDBSearch

func GetDBSearch() Search

GetDBSearch 获取DB搜索实例

type WannengClient

type WannengClient struct {
	Enable bool
	Token  string
}

WannengClient icodef题库

func (*WannengClient) SearchAnswer

func (in *WannengClient) SearchAnswer(req model.SearchRequest) (answer [][]string, err error)

SearchAnswer 搜索答案

Jump to

Keyboard shortcuts

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