params

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Answer

type Answer struct {
	MsgId      string // message id: chatgptuno id,
	ParentId   string
	Chunk      string
	Text       string
	Done       bool
	ChunkIndex int
}

func NewAnswer

func NewAnswer(msgId, parentId, chunk, text string, done bool, chunkIndex int) *Answer

create params for ask callback

callback(NewCallParams(msgId, parentId, chunk, text, false), err)

type Msg

type Msg interface {
	ID() string
}

type MsgQueue

type MsgQueue struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewMsgQueue

func NewMsgQueue() *MsgQueue

func (*MsgQueue) Dequeue

func (mq *MsgQueue) Dequeue() (Msg, error)

func (*MsgQueue) Enqueue

func (mq *MsgQueue) Enqueue(msg Msg)

func (*MsgQueue) Len

func (mq *MsgQueue) Len() int

Jump to

Keyboard shortcuts

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