search

package
v0.1.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AidianClient

type AidianClient struct {
	Disable bool
	YToken  string
}

AidianClient 爱点题库

func (*AidianClient) SearchAnswer

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

SearchAnswer 搜索答案

type BuguakeClient

type BuguakeClient struct {
	Disable 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 Client

type Client struct {
	Wanneng *WannengClient
	Enncy   *EnncyClient
	Icodef  *IcodefClient
	Buguake *BuguakeClient
	AiDian  *AidianClient
}

Client -

type EnncyClient

type EnncyClient struct {
	Disable 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 {
	Disable bool
	Token   string
}

IcodefClient icodef题库

func (*IcodefClient) SearchAnswer

func (in *IcodefClient) 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 {
	Disable 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