search

package
v0.1.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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
}

Client -

type DB

type DB struct{}

DB mysql 或者sqlite3

func (*DB) SearchAnswer

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

SearchAnswer 搜索答案

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 搜题接口

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