Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatGptRequest ¶
type ChatGptResponse ¶
type Connection ¶
type ConnectionPool ¶
type ConnectionPool struct { Connections map[string]*Connection Mu sync.RWMutex }
func NewConnectionPool ¶
func NewConnectionPool() *ConnectionPool
func (*ConnectionPool) Delete ¶
func (p *ConnectionPool) Delete(id string) error
func (*ConnectionPool) Get ¶
func (p *ConnectionPool) Get(id string) (*Connection, bool)
func (*ConnectionPool) Set ¶
func (p *ConnectionPool) Set(conn *Connection)
type Conversation ¶
type ConversationPool ¶
type ConversationPool struct { Conversations map[string]*Conversation Mu sync.RWMutex }
func NewConversationPool ¶
func NewConversationPool() *ConversationPool
func (*ConversationPool) Delete ¶
func (p *ConversationPool) Delete(id string)
func (*ConversationPool) Get ¶
func (p *ConversationPool) Get(id string) (*Conversation, bool)
func (*ConversationPool) Set ¶
func (p *ConversationPool) Set(conversation *Conversation)
Click to show internal directories.
Click to hide internal directories.