query

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryMemberStatsRequest

type QueryMemberStatsRequest struct {
	ChatID      int64   `json:"chatId"`
	Period      *string `json:"period,omitempty"`
	Limit       int     `json:"limit,omitempty"`
	MinMessages int     `json:"minMessages,omitempty"`
}

QueryMemberStatsRequest는 /query/member-stats 요청입니다.

type QueryRecentMessagesRequest

type QueryRecentMessagesRequest struct {
	ChatID         int64   `json:"chatId"`
	Limit          int     `json:"limit,omitempty"`
	AfterID        *int64  `json:"afterId,omitempty"`
	BeforeID       *int64  `json:"beforeId,omitempty"`
	SinceCreatedAt *int64  `json:"sinceCreatedAt,omitempty"`
	UntilCreatedAt *int64  `json:"untilCreatedAt,omitempty"`
	ThreadID       *string `json:"threadId,omitempty"`
}

QueryRecentMessagesRequest는 /query/recent-messages 요청입니다.

type QueryRecentThreadsRequest

type QueryRecentThreadsRequest struct {
	ChatID int64 `json:"chatId"`
}

QueryRecentThreadsRequest는 /query/recent-threads 요청입니다.

type QueryRoomSummaryRequest

type QueryRoomSummaryRequest struct {
	ChatID int64 `json:"chatId"`
}

QueryRoomSummaryRequest는 /query/room-summary 요청입니다.

type RecentMessage

type RecentMessage struct {
	SequenceID int64   `json:"sequenceId"`
	ChatLogID  string  `json:"chatLogId,omitempty"`
	ChatID     int64   `json:"chatId"`
	UserID     int64   `json:"userId"`
	Message    string  `json:"message"`
	Type       int     `json:"type"`
	CreatedAt  int64   `json:"createdAt"`
	ThreadID   *string `json:"threadId,omitempty"`
}

RecentMessage는 개별 메시지입니다.

func (*RecentMessage) UnmarshalJSON

func (m *RecentMessage) UnmarshalJSON(data []byte) error

type RecentMessagesResponse

type RecentMessagesResponse struct {
	ChatID   int64           `json:"chatId"`
	Messages []RecentMessage `json:"messages"`
}

RecentMessagesResponse는 최근 메시지 목록 응답입니다.

type RoomEventRecord

type RoomEventRecord struct {
	ID          int64  `json:"id"`
	ChatID      int64  `json:"chatId"`
	EventType   string `json:"eventType"`
	UserID      int64  `json:"userId"`
	Payload     string `json:"payload"`
	CreatedAtMs int64  `json:"createdAtMs"`
}

RoomEventRecord는 채팅방 이벤트 기록입니다.

type ThreadListResponse

type ThreadListResponse struct {
	ChatID  int64           `json:"chatId"`
	Threads []ThreadSummary `json:"threads"`
}

ThreadListResponse는 스레드 목록 응답입니다.

type ThreadSummary

type ThreadSummary struct {
	ThreadID      string  `json:"threadId"`
	OriginMessage *string `json:"originMessage,omitempty"`
	MessageCount  int     `json:"messageCount"`
	LastActiveAt  *int64  `json:"lastActiveAt,omitempty"`
}

ThreadSummary는 개별 스레드 요약입니다.

Jump to

Keyboard shortcuts

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