Documentation
¶
Index ¶
- func MapMessagesToProto(mapper (func(*Message) *api.Message), msgs []*Message) []*api.Message
- func MessageToProto(msg *Message) *api.Message
- type DeleteMessageParams
- type DeleteMessageResult
- type DeleteMessageServerResponse
- type Message
- type MessagesList
- type MessagesListServerResponse
- type NewMessageServerResponse
- type ReadBatchFilesParams
- type ReadBatchFilesResult
- type ReadUserMessagesParams
- type ReadUserMessagesResult
- type SaveFileParams
- type SaveFileResult
- type SaveMessageParams
- type SaveMessageResult
- type UpdateMessageParams
- type UpdateMessageResult
- type UpdateMessageServerResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapMessagesToProto ¶
func MessageToProto ¶
Types ¶
type DeleteMessageParams ¶
type DeleteMessageResult ¶
type DeleteMessageResult struct { }
type DeleteMessageServerResponse ¶
type DeleteMessageServerResponse struct { model.ServerResponse ID int32 `json:"id"` }
type Message ¶
type Message struct { ID int32 `json:"id"` CreateUTCNano int64 `json:"create_utc_nano,omitempty"` UpdateUTCNano int64 `json:"update_utc_nano,omitempty"` UserID int32 `json:"user_id,omitempty"` File *filesmodel.File `json:"file,omitempty"` Text string `json:"text,omitempty"` }
func MapMessagesFromProto ¶
func MessageFromProto ¶
type MessagesList ¶
type MessagesListServerResponse ¶
type MessagesListServerResponse struct { model.ServerResponse Messages []*Message `json:"messages"` IsLastPage bool `json:"is_last_page"` }
type NewMessageServerResponse ¶
type NewMessageServerResponse struct { model.ServerResponse Message Message `json:"message"` }
type ReadBatchFilesParams ¶
type ReadBatchFilesResult ¶
type ReadBatchFilesResult struct {
Files map[int32](*filesmodel.File)
}
type ReadUserMessagesParams ¶
type ReadUserMessagesResult ¶
type SaveFileParams ¶
type SaveFileResult ¶
type SaveMessageParams ¶
type SaveMessageParams struct {
Message *Message
}
type SaveMessageResult ¶
type UpdateMessageParams ¶
type UpdateMessageResult ¶
type UpdateMessageServerResponse ¶
type UpdateMessageServerResponse struct { model.ServerResponse ID int32 `json:"id"` UpdateUTCNano int64 `json:"update_utc_nano"` }
Click to show internal directories.
Click to hide internal directories.