Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WritePacket ¶
Types ¶
type PacketType ¶
type PacketType byte
const ( DISCONNECT PacketType = iota PRODUCER_MESSAGE CONSUMER_MESSAGE SERVER_ERROR SERVER_MESSAGE )
func ReadPacket ¶
type Task ¶
type Task struct {
TaskId string `json:"task_id"`
RequestId string `json:"request_id"`
Namespace string `json:"namespace"`
Status TaskStatus `json:"task_status"`
Prompt []byte `json:"prompt"`
Response interface{} `json:"response"`
CreatedTimestamp int64 `json:"created_timestamp"`
CompletedTimestamp int64 `json:"completed_timestamp"`
}
type TaskStatus ¶
type TaskStatus byte
const ( CREATED TaskStatus = iota CONSUMED COMPLETED CONSTRAINT_VIOLATION ERROR )
Click to show internal directories.
Click to hide internal directories.