adapter

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Adapters = map[string]Adapter{}

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	ShouldRecord(buffer []byte) bool
	HandleResponse(responseBuffer chan []byte, disconnect chan bool, sniffing *bool, queue *utils.Queue[*model.ProxyResponse])
}

type ChatGPTAdapter added in v1.1.0

type ChatGPTAdapter struct {
}

func (*ChatGPTAdapter) HandleResponse added in v1.1.0

func (g *ChatGPTAdapter) HandleResponse(responseBuffer chan []byte, disconnect chan bool, sniffing *bool, queue *utils.Queue[*model.ProxyResponse])

func (*ChatGPTAdapter) ShouldRecord added in v1.1.0

func (g *ChatGPTAdapter) ShouldRecord(buffer []byte) bool

type GeminiAIStudioAdapter

type GeminiAIStudioAdapter struct {
}

func (*GeminiAIStudioAdapter) HandleResponse

func (g *GeminiAIStudioAdapter) HandleResponse(responseBuffer chan []byte, disconnect chan bool, sniffing *bool, queue *utils.Queue[*model.ProxyResponse])

func (*GeminiAIStudioAdapter) ShouldRecord added in v1.1.0

func (g *GeminiAIStudioAdapter) ShouldRecord(buffer []byte) bool

Jump to

Keyboard shortcuts

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