Documentation ¶
Overview ¶
Package rpc is a generated twirp stub package. This code was generated with github.com/twitchtv/twirp/protoc-gen-twirp v8.0.0.
It is generated from these files:
admin.proto blob.proto info.proto message.proto model.proto notification.proto user.proto
Index ¶
- Constants
- Variables
- func WriteError(resp http.ResponseWriter, err error)
- type AdminService
- type BlobService
- type BlobUploadLinkRequest
- func (*BlobUploadLinkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BlobUploadLinkRequest) GetContentType() string
- func (x *BlobUploadLinkRequest) GetFileName() string
- func (*BlobUploadLinkRequest) ProtoMessage()
- func (x *BlobUploadLinkRequest) ProtoReflect() protoreflect.Message
- func (x *BlobUploadLinkRequest) Reset()
- func (x *BlobUploadLinkRequest) String() string
- type BlobUploadLinkResponse
- func (*BlobUploadLinkResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BlobUploadLinkResponse) GetBlobId() string
- func (x *BlobUploadLinkResponse) GetFormData() map[string]string
- func (x *BlobUploadLinkResponse) GetLink() string
- func (*BlobUploadLinkResponse) ProtoMessage()
- func (x *BlobUploadLinkResponse) ProtoReflect() protoreflect.Message
- func (x *BlobUploadLinkResponse) Reset()
- func (x *BlobUploadLinkResponse) String() string
- type Empty
- type HTTPClient
- type InfoPublicKeyResponse
- func (*InfoPublicKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InfoPublicKeyResponse) GetPublicKey() string
- func (*InfoPublicKeyResponse) ProtoMessage()
- func (x *InfoPublicKeyResponse) ProtoReflect() protoreflect.Message
- func (x *InfoPublicKeyResponse) Reset()
- func (x *InfoPublicKeyResponse) String() string
- type InfoService
- type InfoVersionResponse
- func (*InfoVersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InfoVersionResponse) GetDockerUpdated() string
- func (*InfoVersionResponse) ProtoMessage()
- func (x *InfoVersionResponse) ProtoReflect() protoreflect.Message
- func (x *InfoVersionResponse) Reset()
- func (x *InfoVersionResponse) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetAttachment() string
- func (x *Message) GetAttachmentThumbnail() string
- func (x *Message) GetAttachmentType() string
- func (x *Message) GetComments() []*Message
- func (x *Message) GetCreatedAt() string
- func (x *Message) GetId() string
- func (x *Message) GetIsPublic() bool
- func (x *Message) GetIsRead() bool
- func (x *Message) GetLikedBy() []*MessageLike
- func (x *Message) GetLikedByMe() bool
- func (x *Message) GetLikes() int32
- func (x *Message) GetText() string
- func (x *Message) GetUpdatedAt() string
- func (x *Message) GetUserId() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessageBlockReportedUserRequest
- func (*MessageBlockReportedUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageBlockReportedUserRequest) GetReportId() string
- func (*MessageBlockReportedUserRequest) ProtoMessage()
- func (x *MessageBlockReportedUserRequest) ProtoReflect() protoreflect.Message
- func (x *MessageBlockReportedUserRequest) Reset()
- func (x *MessageBlockReportedUserRequest) String() string
- type MessageCommentLikesRequest
- func (*MessageCommentLikesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageCommentLikesRequest) GetCommentId() string
- func (*MessageCommentLikesRequest) ProtoMessage()
- func (x *MessageCommentLikesRequest) ProtoReflect() protoreflect.Message
- func (x *MessageCommentLikesRequest) Reset()
- func (x *MessageCommentLikesRequest) String() string
- type MessageCommentLikesResponse
- func (*MessageCommentLikesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageCommentLikesResponse) GetLikes() []*MessageLike
- func (*MessageCommentLikesResponse) ProtoMessage()
- func (x *MessageCommentLikesResponse) ProtoReflect() protoreflect.Message
- func (x *MessageCommentLikesResponse) Reset()
- func (x *MessageCommentLikesResponse) String() string
- type MessageCounters
- func (*MessageCounters) Descriptor() ([]byte, []int)deprecated
- func (x *MessageCounters) GetLastMessageTime() string
- func (x *MessageCounters) GetTotalCommentCount() int32
- func (x *MessageCounters) GetTotalCount() int32
- func (x *MessageCounters) GetUnreadCommentCount() int32
- func (x *MessageCounters) GetUnreadCount() int32
- func (*MessageCounters) ProtoMessage()
- func (x *MessageCounters) ProtoReflect() protoreflect.Message
- func (x *MessageCounters) Reset()
- func (x *MessageCounters) String() string
- type MessageCountersRequest
- func (*MessageCountersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageCountersRequest) GetToken() string
- func (*MessageCountersRequest) ProtoMessage()
- func (x *MessageCountersRequest) ProtoReflect() protoreflect.Message
- func (x *MessageCountersRequest) Reset()
- func (x *MessageCountersRequest) String() string
- type MessageCountersResponse
- func (*MessageCountersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageCountersResponse) GetDirectCounters() map[string]*MessageCounters
- func (x *MessageCountersResponse) GetGroupCounters() map[string]*MessageCounters
- func (x *MessageCountersResponse) GetTotalCommentCount() int32
- func (x *MessageCountersResponse) GetTotalCount() int32
- func (x *MessageCountersResponse) GetUnreadCommentCount() int32
- func (x *MessageCountersResponse) GetUnreadCount() int32
- func (*MessageCountersResponse) ProtoMessage()
- func (x *MessageCountersResponse) ProtoReflect() protoreflect.Message
- func (x *MessageCountersResponse) Reset()
- func (x *MessageCountersResponse) String() string
- type MessageDeleteCommentRequest
- func (*MessageDeleteCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageDeleteCommentRequest) GetCommentId() string
- func (*MessageDeleteCommentRequest) ProtoMessage()
- func (x *MessageDeleteCommentRequest) ProtoReflect() protoreflect.Message
- func (x *MessageDeleteCommentRequest) Reset()
- func (x *MessageDeleteCommentRequest) String() string
- type MessageDeleteReportedMessageRequest
- func (*MessageDeleteReportedMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageDeleteReportedMessageRequest) GetReportId() string
- func (*MessageDeleteReportedMessageRequest) ProtoMessage()
- func (x *MessageDeleteReportedMessageRequest) ProtoReflect() protoreflect.Message
- func (x *MessageDeleteReportedMessageRequest) Reset()
- func (x *MessageDeleteReportedMessageRequest) String() string
- type MessageDeleteRequest
- func (*MessageDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageDeleteRequest) GetMessageId() string
- func (*MessageDeleteRequest) ProtoMessage()
- func (x *MessageDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *MessageDeleteRequest) Reset()
- func (x *MessageDeleteRequest) String() string
- type MessageEditCommentRequest
- func (*MessageEditCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageEditCommentRequest) GetAttachmentChanged() bool
- func (x *MessageEditCommentRequest) GetAttachmentId() string
- func (x *MessageEditCommentRequest) GetCommentId() string
- func (x *MessageEditCommentRequest) GetText() string
- func (x *MessageEditCommentRequest) GetTextChanged() bool
- func (*MessageEditCommentRequest) ProtoMessage()
- func (x *MessageEditCommentRequest) ProtoReflect() protoreflect.Message
- func (x *MessageEditCommentRequest) Reset()
- func (x *MessageEditCommentRequest) String() string
- type MessageEditCommentResponse
- func (*MessageEditCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageEditCommentResponse) GetComment() *Message
- func (*MessageEditCommentResponse) ProtoMessage()
- func (x *MessageEditCommentResponse) ProtoReflect() protoreflect.Message
- func (x *MessageEditCommentResponse) Reset()
- func (x *MessageEditCommentResponse) String() string
- type MessageEditRequest
- func (*MessageEditRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageEditRequest) GetAttachmentChanged() bool
- func (x *MessageEditRequest) GetAttachmentId() string
- func (x *MessageEditRequest) GetMessageId() string
- func (x *MessageEditRequest) GetText() string
- func (x *MessageEditRequest) GetTextChanged() bool
- func (*MessageEditRequest) ProtoMessage()
- func (x *MessageEditRequest) ProtoReflect() protoreflect.Message
- func (x *MessageEditRequest) Reset()
- func (x *MessageEditRequest) String() string
- type MessageEditResponse
- func (*MessageEditResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageEditResponse) GetMessage() *Message
- func (*MessageEditResponse) ProtoMessage()
- func (x *MessageEditResponse) ProtoReflect() protoreflect.Message
- func (x *MessageEditResponse) Reset()
- func (x *MessageEditResponse) String() string
- type MessageLike
- func (*MessageLike) Descriptor() ([]byte, []int)deprecated
- func (x *MessageLike) GetLikedAt() string
- func (x *MessageLike) GetMessageId() string
- func (x *MessageLike) GetUserId() string
- func (*MessageLike) ProtoMessage()
- func (x *MessageLike) ProtoReflect() protoreflect.Message
- func (x *MessageLike) Reset()
- func (x *MessageLike) String() string
- type MessageLikeCommentRequest
- func (*MessageLikeCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageLikeCommentRequest) GetCommentId() string
- func (x *MessageLikeCommentRequest) GetUnlike() bool
- func (*MessageLikeCommentRequest) ProtoMessage()
- func (x *MessageLikeCommentRequest) ProtoReflect() protoreflect.Message
- func (x *MessageLikeCommentRequest) Reset()
- func (x *MessageLikeCommentRequest) String() string
- type MessageLikeCommentResponse
- func (*MessageLikeCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageLikeCommentResponse) GetLikes() int32
- func (*MessageLikeCommentResponse) ProtoMessage()
- func (x *MessageLikeCommentResponse) ProtoReflect() protoreflect.Message
- func (x *MessageLikeCommentResponse) Reset()
- func (x *MessageLikeCommentResponse) String() string
- type MessageLikeMessageRequest
- func (*MessageLikeMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageLikeMessageRequest) GetMessageId() string
- func (x *MessageLikeMessageRequest) GetUnlike() bool
- func (*MessageLikeMessageRequest) ProtoMessage()
- func (x *MessageLikeMessageRequest) ProtoReflect() protoreflect.Message
- func (x *MessageLikeMessageRequest) Reset()
- func (x *MessageLikeMessageRequest) String() string
- type MessageLikeMessageResponse
- func (*MessageLikeMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageLikeMessageResponse) GetLikes() int32
- func (*MessageLikeMessageResponse) ProtoMessage()
- func (x *MessageLikeMessageResponse) ProtoReflect() protoreflect.Message
- func (x *MessageLikeMessageResponse) Reset()
- func (x *MessageLikeMessageResponse) String() string
- type MessageMarkReadRequest
- func (*MessageMarkReadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageMarkReadRequest) GetMessageIds() []string
- func (*MessageMarkReadRequest) ProtoMessage()
- func (x *MessageMarkReadRequest) ProtoReflect() protoreflect.Message
- func (x *MessageMarkReadRequest) Reset()
- func (x *MessageMarkReadRequest) String() string
- type MessageMessageLikesRequest
- func (*MessageMessageLikesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageMessageLikesRequest) GetMessageId() string
- func (*MessageMessageLikesRequest) ProtoMessage()
- func (x *MessageMessageLikesRequest) ProtoReflect() protoreflect.Message
- func (x *MessageMessageLikesRequest) Reset()
- func (x *MessageMessageLikesRequest) String() string
- type MessageMessageLikesResponse
- func (*MessageMessageLikesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageMessageLikesResponse) GetLikes() []*MessageLike
- func (*MessageMessageLikesResponse) ProtoMessage()
- func (x *MessageMessageLikesResponse) ProtoReflect() protoreflect.Message
- func (x *MessageMessageLikesResponse) Reset()
- func (x *MessageMessageLikesResponse) String() string
- type MessageMessageReportRequest
- func (*MessageMessageReportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageMessageReportRequest) GetReportId() string
- func (*MessageMessageReportRequest) ProtoMessage()
- func (x *MessageMessageReportRequest) ProtoReflect() protoreflect.Message
- func (x *MessageMessageReportRequest) Reset()
- func (x *MessageMessageReportRequest) String() string
- type MessageMessageReportResponse
- func (*MessageMessageReportResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageMessageReportResponse) GetAuthorId() string
- func (x *MessageMessageReportResponse) GetReport() string
- func (x *MessageMessageReportResponse) GetReportedBy() string
- func (*MessageMessageReportResponse) ProtoMessage()
- func (x *MessageMessageReportResponse) ProtoReflect() protoreflect.Message
- func (x *MessageMessageReportResponse) Reset()
- func (x *MessageMessageReportResponse) String() string
- type MessageMessageReportsResponse
- func (*MessageMessageReportsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageMessageReportsResponse) GetReports() []*MessageReport
- func (*MessageMessageReportsResponse) ProtoMessage()
- func (x *MessageMessageReportsResponse) ProtoReflect() protoreflect.Message
- func (x *MessageMessageReportsResponse) Reset()
- func (x *MessageMessageReportsResponse) String() string
- type MessageMessageRequest
- func (*MessageMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageMessageRequest) GetMessageId() string
- func (x *MessageMessageRequest) GetToken() string
- func (*MessageMessageRequest) ProtoMessage()
- func (x *MessageMessageRequest) ProtoReflect() protoreflect.Message
- func (x *MessageMessageRequest) Reset()
- func (x *MessageMessageRequest) String() string
- type MessageMessageResponse
- func (*MessageMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageMessageResponse) GetMessage() *Message
- func (*MessageMessageResponse) ProtoMessage()
- func (x *MessageMessageResponse) ProtoReflect() protoreflect.Message
- func (x *MessageMessageResponse) Reset()
- func (x *MessageMessageResponse) String() string
- type MessageMessagesRequest
- func (*MessageMessagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageMessagesRequest) GetCount() int32
- func (x *MessageMessagesRequest) GetFriendId() string
- func (x *MessageMessagesRequest) GetFrom() string
- func (x *MessageMessagesRequest) GetGroupId() string
- func (x *MessageMessagesRequest) GetToken() string
- func (*MessageMessagesRequest) ProtoMessage()
- func (x *MessageMessagesRequest) ProtoReflect() protoreflect.Message
- func (x *MessageMessagesRequest) Reset()
- func (x *MessageMessagesRequest) String() string
- type MessageMessagesResponse
- func (*MessageMessagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageMessagesResponse) GetMessages() []*Message
- func (*MessageMessagesResponse) ProtoMessage()
- func (x *MessageMessagesResponse) ProtoReflect() protoreflect.Message
- func (x *MessageMessagesResponse) Reset()
- func (x *MessageMessagesResponse) String() string
- type MessagePostCommentRequest
- func (*MessagePostCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePostCommentRequest) GetAttachmentId() string
- func (x *MessagePostCommentRequest) GetMessageId() string
- func (x *MessagePostCommentRequest) GetText() string
- func (x *MessagePostCommentRequest) GetToken() string
- func (*MessagePostCommentRequest) ProtoMessage()
- func (x *MessagePostCommentRequest) ProtoReflect() protoreflect.Message
- func (x *MessagePostCommentRequest) Reset()
- func (x *MessagePostCommentRequest) String() string
- type MessagePostCommentResponse
- func (*MessagePostCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePostCommentResponse) GetComment() *Message
- func (*MessagePostCommentResponse) ProtoMessage()
- func (x *MessagePostCommentResponse) ProtoReflect() protoreflect.Message
- func (x *MessagePostCommentResponse) Reset()
- func (x *MessagePostCommentResponse) String() string
- type MessagePostRequest
- func (*MessagePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePostRequest) GetAttachmentId() string
- func (x *MessagePostRequest) GetIsPublic() bool
- func (x *MessagePostRequest) GetText() string
- func (x *MessagePostRequest) GetToken() string
- func (*MessagePostRequest) ProtoMessage()
- func (x *MessagePostRequest) ProtoReflect() protoreflect.Message
- func (x *MessagePostRequest) Reset()
- func (x *MessagePostRequest) String() string
- type MessagePostResponse
- func (*MessagePostResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePostResponse) GetMessage() *Message
- func (*MessagePostResponse) ProtoMessage()
- func (x *MessagePostResponse) ProtoReflect() protoreflect.Message
- func (x *MessagePostResponse) Reset()
- func (x *MessagePostResponse) String() string
- type MessagePublicMessageRequest
- func (*MessagePublicMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePublicMessageRequest) GetMessageId() string
- func (x *MessagePublicMessageRequest) GetToken() string
- func (*MessagePublicMessageRequest) ProtoMessage()
- func (x *MessagePublicMessageRequest) ProtoReflect() protoreflect.Message
- func (x *MessagePublicMessageRequest) Reset()
- func (x *MessagePublicMessageRequest) String() string
- type MessagePublicMessageResponse
- func (*MessagePublicMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePublicMessageResponse) GetMessage() *Message
- func (*MessagePublicMessageResponse) ProtoMessage()
- func (x *MessagePublicMessageResponse) ProtoReflect() protoreflect.Message
- func (x *MessagePublicMessageResponse) Reset()
- func (x *MessagePublicMessageResponse) String() string
- type MessagePublicMessagesRequest
- func (*MessagePublicMessagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePublicMessagesRequest) GetCount() int32
- func (x *MessagePublicMessagesRequest) GetFrom() string
- func (x *MessagePublicMessagesRequest) GetToken() string
- func (*MessagePublicMessagesRequest) ProtoMessage()
- func (x *MessagePublicMessagesRequest) ProtoReflect() protoreflect.Message
- func (x *MessagePublicMessagesRequest) Reset()
- func (x *MessagePublicMessagesRequest) String() string
- type MessagePublicMessagesResponse
- func (*MessagePublicMessagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePublicMessagesResponse) GetMessages() []*Message
- func (*MessagePublicMessagesResponse) ProtoMessage()
- func (x *MessagePublicMessagesResponse) ProtoReflect() protoreflect.Message
- func (x *MessagePublicMessagesResponse) Reset()
- func (x *MessagePublicMessagesResponse) String() string
- type MessageReport
- func (*MessageReport) Descriptor() ([]byte, []int)deprecated
- func (x *MessageReport) GetAttachment() string
- func (x *MessageReport) GetAttachmentThumbnail() string
- func (x *MessageReport) GetAttachmentType() string
- func (x *MessageReport) GetAuthorId() string
- func (x *MessageReport) GetCreatedAt() string
- func (x *MessageReport) GetId() string
- func (x *MessageReport) GetMessageId() string
- func (x *MessageReport) GetReport() string
- func (x *MessageReport) GetReporterId() string
- func (x *MessageReport) GetResolvedAt() string
- func (x *MessageReport) GetText() string
- func (*MessageReport) ProtoMessage()
- func (x *MessageReport) ProtoReflect() protoreflect.Message
- func (x *MessageReport) Reset()
- func (x *MessageReport) String() string
- type MessageReportMessageRequest
- func (*MessageReportMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageReportMessageRequest) GetMessageId() string
- func (x *MessageReportMessageRequest) GetReport() string
- func (*MessageReportMessageRequest) ProtoMessage()
- func (x *MessageReportMessageRequest) ProtoReflect() protoreflect.Message
- func (x *MessageReportMessageRequest) Reset()
- func (x *MessageReportMessageRequest) String() string
- type MessageReportMessageResponse
- func (*MessageReportMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageReportMessageResponse) GetReportId() string
- func (*MessageReportMessageResponse) ProtoMessage()
- func (x *MessageReportMessageResponse) ProtoReflect() protoreflect.Message
- func (x *MessageReportMessageResponse) Reset()
- func (x *MessageReportMessageResponse) String() string
- type MessageResolveMessageReportRequest
- func (*MessageResolveMessageReportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageResolveMessageReportRequest) GetReportId() string
- func (*MessageResolveMessageReportRequest) ProtoMessage()
- func (x *MessageResolveMessageReportRequest) ProtoReflect() protoreflect.Message
- func (x *MessageResolveMessageReportRequest) Reset()
- func (x *MessageResolveMessageReportRequest) String() string
- type MessageService
- type MessageSetCommentVisibilityRequest
- func (*MessageSetCommentVisibilityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageSetCommentVisibilityRequest) GetCommentId() string
- func (x *MessageSetCommentVisibilityRequest) GetVisibility() bool
- func (*MessageSetCommentVisibilityRequest) ProtoMessage()
- func (x *MessageSetCommentVisibilityRequest) ProtoReflect() protoreflect.Message
- func (x *MessageSetCommentVisibilityRequest) Reset()
- func (x *MessageSetCommentVisibilityRequest) String() string
- type MessageSetMessageVisibilityRequest
- func (*MessageSetMessageVisibilityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageSetMessageVisibilityRequest) GetMessageId() string
- func (x *MessageSetMessageVisibilityRequest) GetVisibility() bool
- func (*MessageSetMessageVisibilityRequest) ProtoMessage()
- func (x *MessageSetMessageVisibilityRequest) ProtoReflect() protoreflect.Message
- func (x *MessageSetMessageVisibilityRequest) Reset()
- func (x *MessageSetMessageVisibilityRequest) String() string
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)deprecated
- func (x *Notification) GetCreatedAt() string
- func (x *Notification) GetData() string
- func (x *Notification) GetId() string
- func (x *Notification) GetReadAt() string
- func (x *Notification) GetText() string
- func (x *Notification) GetType() string
- func (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (x *Notification) String() string
- type NotificationCleanRequest
- func (*NotificationCleanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationCleanRequest) GetLastKnownId() string
- func (*NotificationCleanRequest) ProtoMessage()
- func (x *NotificationCleanRequest) ProtoReflect() protoreflect.Message
- func (x *NotificationCleanRequest) Reset()
- func (x *NotificationCleanRequest) String() string
- type NotificationCountResponse
- func (*NotificationCountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationCountResponse) GetTotal() int32
- func (x *NotificationCountResponse) GetUnread() int32
- func (*NotificationCountResponse) ProtoMessage()
- func (x *NotificationCountResponse) ProtoReflect() protoreflect.Message
- func (x *NotificationCountResponse) Reset()
- func (x *NotificationCountResponse) String() string
- type NotificationMarkReadRequest
- func (*NotificationMarkReadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationMarkReadRequest) GetLastKnownId() string
- func (*NotificationMarkReadRequest) ProtoMessage()
- func (x *NotificationMarkReadRequest) ProtoReflect() protoreflect.Message
- func (x *NotificationMarkReadRequest) Reset()
- func (x *NotificationMarkReadRequest) String() string
- type NotificationNotificationsResponse
- func (*NotificationNotificationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationNotificationsResponse) GetNotifications() []*Notification
- func (*NotificationNotificationsResponse) ProtoMessage()
- func (x *NotificationNotificationsResponse) ProtoReflect() protoreflect.Message
- func (x *NotificationNotificationsResponse) Reset()
- func (x *NotificationNotificationsResponse) String() string
- type NotificationService
- type TwirpServer
- func NewAdminServiceServer(svc AdminService, opts ...interface{}) TwirpServer
- func NewBlobServiceServer(svc BlobService, opts ...interface{}) TwirpServer
- func NewInfoServiceServer(svc InfoService, opts ...interface{}) TwirpServer
- func NewMessageServiceServer(svc MessageService, opts ...interface{}) TwirpServer
- func NewNotificationServiceServer(svc NotificationService, opts ...interface{}) TwirpServer
- func NewUserServiceServer(svc UserService, opts ...interface{}) TwirpServer
- type User
- type UserBlockRequest
- type UserService
Constants ¶
const AdminServicePathPrefix = "/twirp/rpc.AdminService/"
AdminServicePathPrefix is a convenience constant that could used to identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, that add a "/twirp" prefix by default, and use CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html
const BlobServicePathPrefix = "/twirp/rpc.BlobService/"
BlobServicePathPrefix is a convenience constant that could used to identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, that add a "/twirp" prefix by default, and use CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html
const InfoServicePathPrefix = "/twirp/rpc.InfoService/"
InfoServicePathPrefix is a convenience constant that could used to identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, that add a "/twirp" prefix by default, and use CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html
const MessageServicePathPrefix = "/twirp/rpc.MessageService/"
MessageServicePathPrefix is a convenience constant that could used to identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, that add a "/twirp" prefix by default, and use CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html
const NotificationServicePathPrefix = "/twirp/rpc.NotificationService/"
NotificationServicePathPrefix is a convenience constant that could used to identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, that add a "/twirp" prefix by default, and use CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html
const UserServicePathPrefix = "/twirp/rpc.UserService/"
UserServicePathPrefix is a convenience constant that could used to identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, that add a "/twirp" prefix by default, and use CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html
Variables ¶
var File_admin_proto protoreflect.FileDescriptor
var File_blob_proto protoreflect.FileDescriptor
var File_info_proto protoreflect.FileDescriptor
var File_message_proto protoreflect.FileDescriptor
var File_model_proto protoreflect.FileDescriptor
var File_notification_proto protoreflect.FileDescriptor
var File_user_proto protoreflect.FileDescriptor
Functions ¶
func WriteError ¶
func WriteError(resp http.ResponseWriter, err error)
WriteError writes an HTTP response with a valid Twirp error format (code, msg, meta). Useful outside of the Twirp server (e.g. http middleware), but does not trigger hooks. If err is not a twirp.Error, it will get wrapped with twirp.InternalErrorWith(err)
Types ¶
type AdminService ¶
func NewAdminServiceJSONClient ¶
func NewAdminServiceJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) AdminService
NewAdminServiceJSONClient creates a JSON client that implements the AdminService interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewAdminServiceProtobufClient ¶
func NewAdminServiceProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) AdminService
NewAdminServiceProtobufClient creates a Protobuf client that implements the AdminService interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type BlobService ¶
type BlobService interface {
UploadLink(context.Context, *BlobUploadLinkRequest) (*BlobUploadLinkResponse, error)
}
func NewBlobServiceJSONClient ¶
func NewBlobServiceJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) BlobService
NewBlobServiceJSONClient creates a JSON client that implements the BlobService interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewBlobServiceProtobufClient ¶
func NewBlobServiceProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) BlobService
NewBlobServiceProtobufClient creates a Protobuf client that implements the BlobService interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type BlobUploadLinkRequest ¶
type BlobUploadLinkRequest struct { ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // contains filtered or unexported fields }
func (*BlobUploadLinkRequest) Descriptor
deprecated
func (*BlobUploadLinkRequest) Descriptor() ([]byte, []int)
Deprecated: Use BlobUploadLinkRequest.ProtoReflect.Descriptor instead.
func (*BlobUploadLinkRequest) GetContentType ¶
func (x *BlobUploadLinkRequest) GetContentType() string
func (*BlobUploadLinkRequest) GetFileName ¶
func (x *BlobUploadLinkRequest) GetFileName() string
func (*BlobUploadLinkRequest) ProtoMessage ¶
func (*BlobUploadLinkRequest) ProtoMessage()
func (*BlobUploadLinkRequest) ProtoReflect ¶
func (x *BlobUploadLinkRequest) ProtoReflect() protoreflect.Message
func (*BlobUploadLinkRequest) Reset ¶
func (x *BlobUploadLinkRequest) Reset()
func (*BlobUploadLinkRequest) String ¶
func (x *BlobUploadLinkRequest) String() string
type BlobUploadLinkResponse ¶
type BlobUploadLinkResponse struct { BlobId string `protobuf:"bytes,1,opt,name=blob_id,json=blobId,proto3" json:"blob_id,omitempty"` Link string `protobuf:"bytes,2,opt,name=link,proto3" json:"link,omitempty"` FormData map[string]string `` /* 173-byte string literal not displayed */ // contains filtered or unexported fields }
func (*BlobUploadLinkResponse) Descriptor
deprecated
func (*BlobUploadLinkResponse) Descriptor() ([]byte, []int)
Deprecated: Use BlobUploadLinkResponse.ProtoReflect.Descriptor instead.
func (*BlobUploadLinkResponse) GetBlobId ¶
func (x *BlobUploadLinkResponse) GetBlobId() string
func (*BlobUploadLinkResponse) GetFormData ¶
func (x *BlobUploadLinkResponse) GetFormData() map[string]string
func (*BlobUploadLinkResponse) GetLink ¶
func (x *BlobUploadLinkResponse) GetLink() string
func (*BlobUploadLinkResponse) ProtoMessage ¶
func (*BlobUploadLinkResponse) ProtoMessage()
func (*BlobUploadLinkResponse) ProtoReflect ¶
func (x *BlobUploadLinkResponse) ProtoReflect() protoreflect.Message
func (*BlobUploadLinkResponse) Reset ¶
func (x *BlobUploadLinkResponse) Reset()
func (*BlobUploadLinkResponse) String ¶
func (x *BlobUploadLinkResponse) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type HTTPClient ¶
HTTPClient is the interface used by generated clients to send HTTP requests. It is fulfilled by *(net/http).Client, which is sufficient for most users. Users can provide their own implementation for special retry policies.
HTTPClient implementations should not follow redirects. Redirects are automatically disabled if *(net/http).Client is passed to client constructors. See the withoutRedirects function in this file for more details.
type InfoPublicKeyResponse ¶
type InfoPublicKeyResponse struct { PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // contains filtered or unexported fields }
func (*InfoPublicKeyResponse) Descriptor
deprecated
func (*InfoPublicKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use InfoPublicKeyResponse.ProtoReflect.Descriptor instead.
func (*InfoPublicKeyResponse) GetPublicKey ¶
func (x *InfoPublicKeyResponse) GetPublicKey() string
func (*InfoPublicKeyResponse) ProtoMessage ¶
func (*InfoPublicKeyResponse) ProtoMessage()
func (*InfoPublicKeyResponse) ProtoReflect ¶
func (x *InfoPublicKeyResponse) ProtoReflect() protoreflect.Message
func (*InfoPublicKeyResponse) Reset ¶
func (x *InfoPublicKeyResponse) Reset()
func (*InfoPublicKeyResponse) String ¶
func (x *InfoPublicKeyResponse) String() string
type InfoService ¶
type InfoService interface { PublicKey(context.Context, *Empty) (*InfoPublicKeyResponse, error) Version(context.Context, *Empty) (*InfoVersionResponse, error) }
func NewInfoServiceJSONClient ¶
func NewInfoServiceJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) InfoService
NewInfoServiceJSONClient creates a JSON client that implements the InfoService interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewInfoServiceProtobufClient ¶
func NewInfoServiceProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) InfoService
NewInfoServiceProtobufClient creates a Protobuf client that implements the InfoService interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type InfoVersionResponse ¶
type InfoVersionResponse struct { DockerUpdated string `protobuf:"bytes,1,opt,name=docker_updated,json=dockerUpdated,proto3" json:"docker_updated,omitempty"` // contains filtered or unexported fields }
func (*InfoVersionResponse) Descriptor
deprecated
func (*InfoVersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use InfoVersionResponse.ProtoReflect.Descriptor instead.
func (*InfoVersionResponse) GetDockerUpdated ¶
func (x *InfoVersionResponse) GetDockerUpdated() string
func (*InfoVersionResponse) ProtoMessage ¶
func (*InfoVersionResponse) ProtoMessage()
func (*InfoVersionResponse) ProtoReflect ¶
func (x *InfoVersionResponse) ProtoReflect() protoreflect.Message
func (*InfoVersionResponse) Reset ¶
func (x *InfoVersionResponse) Reset()
func (*InfoVersionResponse) String ¶
func (x *InfoVersionResponse) String() string
type Message ¶
type Message struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"` Attachment string `protobuf:"bytes,6,opt,name=attachment,proto3" json:"attachment,omitempty"` AttachmentType string `protobuf:"bytes,7,opt,name=attachment_type,json=attachmentType,proto3" json:"attachment_type,omitempty"` AttachmentThumbnail string `protobuf:"bytes,8,opt,name=attachment_thumbnail,json=attachmentThumbnail,proto3" json:"attachment_thumbnail,omitempty"` CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Likes int32 `protobuf:"varint,11,opt,name=likes,proto3" json:"likes,omitempty"` LikedByMe bool `protobuf:"varint,12,opt,name=liked_by_me,json=likedByMe,proto3" json:"liked_by_me,omitempty"` Comments []*Message `protobuf:"bytes,13,rep,name=comments,proto3" json:"comments,omitempty"` LikedBy []*MessageLike `protobuf:"bytes,14,rep,name=liked_by,json=likedBy,proto3" json:"liked_by,omitempty"` IsRead bool `protobuf:"varint,15,opt,name=is_read,json=isRead,proto3" json:"is_read,omitempty"` IsPublic bool `protobuf:"varint,16,opt,name=is_public,json=isPublic,proto3" json:"is_public,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetAttachment ¶
func (*Message) GetAttachmentThumbnail ¶
func (*Message) GetAttachmentType ¶
func (*Message) GetComments ¶
func (*Message) GetCreatedAt ¶
func (*Message) GetIsPublic ¶
func (*Message) GetLikedBy ¶
func (x *Message) GetLikedBy() []*MessageLike
func (*Message) GetLikedByMe ¶
func (*Message) GetUpdatedAt ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageBlockReportedUserRequest ¶
type MessageBlockReportedUserRequest struct { ReportId string `protobuf:"bytes,1,opt,name=report_id,json=reportId,proto3" json:"report_id,omitempty"` // contains filtered or unexported fields }
func (*MessageBlockReportedUserRequest) Descriptor
deprecated
func (*MessageBlockReportedUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageBlockReportedUserRequest.ProtoReflect.Descriptor instead.
func (*MessageBlockReportedUserRequest) GetReportId ¶
func (x *MessageBlockReportedUserRequest) GetReportId() string
func (*MessageBlockReportedUserRequest) ProtoMessage ¶
func (*MessageBlockReportedUserRequest) ProtoMessage()
func (*MessageBlockReportedUserRequest) ProtoReflect ¶
func (x *MessageBlockReportedUserRequest) ProtoReflect() protoreflect.Message
func (*MessageBlockReportedUserRequest) Reset ¶
func (x *MessageBlockReportedUserRequest) Reset()
func (*MessageBlockReportedUserRequest) String ¶
func (x *MessageBlockReportedUserRequest) String() string
type MessageCommentLikesRequest ¶
type MessageCommentLikesRequest struct { CommentId string `protobuf:"bytes,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // contains filtered or unexported fields }
func (*MessageCommentLikesRequest) Descriptor
deprecated
func (*MessageCommentLikesRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageCommentLikesRequest.ProtoReflect.Descriptor instead.
func (*MessageCommentLikesRequest) GetCommentId ¶
func (x *MessageCommentLikesRequest) GetCommentId() string
func (*MessageCommentLikesRequest) ProtoMessage ¶
func (*MessageCommentLikesRequest) ProtoMessage()
func (*MessageCommentLikesRequest) ProtoReflect ¶
func (x *MessageCommentLikesRequest) ProtoReflect() protoreflect.Message
func (*MessageCommentLikesRequest) Reset ¶
func (x *MessageCommentLikesRequest) Reset()
func (*MessageCommentLikesRequest) String ¶
func (x *MessageCommentLikesRequest) String() string
type MessageCommentLikesResponse ¶
type MessageCommentLikesResponse struct { Likes []*MessageLike `protobuf:"bytes,1,rep,name=likes,proto3" json:"likes,omitempty"` // contains filtered or unexported fields }
func (*MessageCommentLikesResponse) Descriptor
deprecated
func (*MessageCommentLikesResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageCommentLikesResponse.ProtoReflect.Descriptor instead.
func (*MessageCommentLikesResponse) GetLikes ¶
func (x *MessageCommentLikesResponse) GetLikes() []*MessageLike
func (*MessageCommentLikesResponse) ProtoMessage ¶
func (*MessageCommentLikesResponse) ProtoMessage()
func (*MessageCommentLikesResponse) ProtoReflect ¶
func (x *MessageCommentLikesResponse) ProtoReflect() protoreflect.Message
func (*MessageCommentLikesResponse) Reset ¶
func (x *MessageCommentLikesResponse) Reset()
func (*MessageCommentLikesResponse) String ¶
func (x *MessageCommentLikesResponse) String() string
type MessageCounters ¶
type MessageCounters struct { TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` UnreadCount int32 `protobuf:"varint,3,opt,name=unread_count,json=unreadCount,proto3" json:"unread_count,omitempty"` TotalCommentCount int32 `protobuf:"varint,4,opt,name=total_comment_count,json=totalCommentCount,proto3" json:"total_comment_count,omitempty"` UnreadCommentCount int32 `protobuf:"varint,5,opt,name=unread_comment_count,json=unreadCommentCount,proto3" json:"unread_comment_count,omitempty"` LastMessageTime string `protobuf:"bytes,6,opt,name=last_message_time,json=lastMessageTime,proto3" json:"last_message_time,omitempty"` // contains filtered or unexported fields }
func (*MessageCounters) Descriptor
deprecated
func (*MessageCounters) Descriptor() ([]byte, []int)
Deprecated: Use MessageCounters.ProtoReflect.Descriptor instead.
func (*MessageCounters) GetLastMessageTime ¶
func (x *MessageCounters) GetLastMessageTime() string
func (*MessageCounters) GetTotalCommentCount ¶
func (x *MessageCounters) GetTotalCommentCount() int32
func (*MessageCounters) GetTotalCount ¶
func (x *MessageCounters) GetTotalCount() int32
func (*MessageCounters) GetUnreadCommentCount ¶
func (x *MessageCounters) GetUnreadCommentCount() int32
func (*MessageCounters) GetUnreadCount ¶
func (x *MessageCounters) GetUnreadCount() int32
func (*MessageCounters) ProtoMessage ¶
func (*MessageCounters) ProtoMessage()
func (*MessageCounters) ProtoReflect ¶
func (x *MessageCounters) ProtoReflect() protoreflect.Message
func (*MessageCounters) Reset ¶
func (x *MessageCounters) Reset()
func (*MessageCounters) String ¶
func (x *MessageCounters) String() string
type MessageCountersRequest ¶
type MessageCountersRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*MessageCountersRequest) Descriptor
deprecated
func (*MessageCountersRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageCountersRequest.ProtoReflect.Descriptor instead.
func (*MessageCountersRequest) GetToken ¶
func (x *MessageCountersRequest) GetToken() string
func (*MessageCountersRequest) ProtoMessage ¶
func (*MessageCountersRequest) ProtoMessage()
func (*MessageCountersRequest) ProtoReflect ¶
func (x *MessageCountersRequest) ProtoReflect() protoreflect.Message
func (*MessageCountersRequest) Reset ¶
func (x *MessageCountersRequest) Reset()
func (*MessageCountersRequest) String ¶
func (x *MessageCountersRequest) String() string
type MessageCountersResponse ¶
type MessageCountersResponse struct { TotalCount int32 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` UnreadCount int32 `protobuf:"varint,2,opt,name=unread_count,json=unreadCount,proto3" json:"unread_count,omitempty"` TotalCommentCount int32 `protobuf:"varint,3,opt,name=total_comment_count,json=totalCommentCount,proto3" json:"total_comment_count,omitempty"` UnreadCommentCount int32 `protobuf:"varint,4,opt,name=unread_comment_count,json=unreadCommentCount,proto3" json:"unread_comment_count,omitempty"` GroupCounters map[string]*MessageCounters `` /* 188-byte string literal not displayed */ DirectCounters map[string]*MessageCounters `` /* 191-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MessageCountersResponse) Descriptor
deprecated
func (*MessageCountersResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageCountersResponse.ProtoReflect.Descriptor instead.
func (*MessageCountersResponse) GetDirectCounters ¶
func (x *MessageCountersResponse) GetDirectCounters() map[string]*MessageCounters
func (*MessageCountersResponse) GetGroupCounters ¶
func (x *MessageCountersResponse) GetGroupCounters() map[string]*MessageCounters
func (*MessageCountersResponse) GetTotalCommentCount ¶
func (x *MessageCountersResponse) GetTotalCommentCount() int32
func (*MessageCountersResponse) GetTotalCount ¶
func (x *MessageCountersResponse) GetTotalCount() int32
func (*MessageCountersResponse) GetUnreadCommentCount ¶
func (x *MessageCountersResponse) GetUnreadCommentCount() int32
func (*MessageCountersResponse) GetUnreadCount ¶
func (x *MessageCountersResponse) GetUnreadCount() int32
func (*MessageCountersResponse) ProtoMessage ¶
func (*MessageCountersResponse) ProtoMessage()
func (*MessageCountersResponse) ProtoReflect ¶
func (x *MessageCountersResponse) ProtoReflect() protoreflect.Message
func (*MessageCountersResponse) Reset ¶
func (x *MessageCountersResponse) Reset()
func (*MessageCountersResponse) String ¶
func (x *MessageCountersResponse) String() string
type MessageDeleteCommentRequest ¶
type MessageDeleteCommentRequest struct { CommentId string `protobuf:"bytes,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // contains filtered or unexported fields }
func (*MessageDeleteCommentRequest) Descriptor
deprecated
func (*MessageDeleteCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageDeleteCommentRequest.ProtoReflect.Descriptor instead.
func (*MessageDeleteCommentRequest) GetCommentId ¶
func (x *MessageDeleteCommentRequest) GetCommentId() string
func (*MessageDeleteCommentRequest) ProtoMessage ¶
func (*MessageDeleteCommentRequest) ProtoMessage()
func (*MessageDeleteCommentRequest) ProtoReflect ¶
func (x *MessageDeleteCommentRequest) ProtoReflect() protoreflect.Message
func (*MessageDeleteCommentRequest) Reset ¶
func (x *MessageDeleteCommentRequest) Reset()
func (*MessageDeleteCommentRequest) String ¶
func (x *MessageDeleteCommentRequest) String() string
type MessageDeleteReportedMessageRequest ¶
type MessageDeleteReportedMessageRequest struct { ReportId string `protobuf:"bytes,1,opt,name=report_id,json=reportId,proto3" json:"report_id,omitempty"` // contains filtered or unexported fields }
func (*MessageDeleteReportedMessageRequest) Descriptor
deprecated
func (*MessageDeleteReportedMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageDeleteReportedMessageRequest.ProtoReflect.Descriptor instead.
func (*MessageDeleteReportedMessageRequest) GetReportId ¶
func (x *MessageDeleteReportedMessageRequest) GetReportId() string
func (*MessageDeleteReportedMessageRequest) ProtoMessage ¶
func (*MessageDeleteReportedMessageRequest) ProtoMessage()
func (*MessageDeleteReportedMessageRequest) ProtoReflect ¶
func (x *MessageDeleteReportedMessageRequest) ProtoReflect() protoreflect.Message
func (*MessageDeleteReportedMessageRequest) Reset ¶
func (x *MessageDeleteReportedMessageRequest) Reset()
func (*MessageDeleteReportedMessageRequest) String ¶
func (x *MessageDeleteReportedMessageRequest) String() string
type MessageDeleteRequest ¶
type MessageDeleteRequest struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` // contains filtered or unexported fields }
func (*MessageDeleteRequest) Descriptor
deprecated
func (*MessageDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageDeleteRequest.ProtoReflect.Descriptor instead.
func (*MessageDeleteRequest) GetMessageId ¶
func (x *MessageDeleteRequest) GetMessageId() string
func (*MessageDeleteRequest) ProtoMessage ¶
func (*MessageDeleteRequest) ProtoMessage()
func (*MessageDeleteRequest) ProtoReflect ¶
func (x *MessageDeleteRequest) ProtoReflect() protoreflect.Message
func (*MessageDeleteRequest) Reset ¶
func (x *MessageDeleteRequest) Reset()
func (*MessageDeleteRequest) String ¶
func (x *MessageDeleteRequest) String() string
type MessageEditCommentRequest ¶
type MessageEditCommentRequest struct { CommentId string `protobuf:"bytes,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` TextChanged bool `protobuf:"varint,2,opt,name=text_changed,json=textChanged,proto3" json:"text_changed,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` AttachmentChanged bool `protobuf:"varint,4,opt,name=attachment_changed,json=attachmentChanged,proto3" json:"attachment_changed,omitempty"` AttachmentId string `protobuf:"bytes,5,opt,name=attachment_id,json=attachmentId,proto3" json:"attachment_id,omitempty"` // contains filtered or unexported fields }
func (*MessageEditCommentRequest) Descriptor
deprecated
func (*MessageEditCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageEditCommentRequest.ProtoReflect.Descriptor instead.
func (*MessageEditCommentRequest) GetAttachmentChanged ¶
func (x *MessageEditCommentRequest) GetAttachmentChanged() bool
func (*MessageEditCommentRequest) GetAttachmentId ¶
func (x *MessageEditCommentRequest) GetAttachmentId() string
func (*MessageEditCommentRequest) GetCommentId ¶
func (x *MessageEditCommentRequest) GetCommentId() string
func (*MessageEditCommentRequest) GetText ¶
func (x *MessageEditCommentRequest) GetText() string
func (*MessageEditCommentRequest) GetTextChanged ¶
func (x *MessageEditCommentRequest) GetTextChanged() bool
func (*MessageEditCommentRequest) ProtoMessage ¶
func (*MessageEditCommentRequest) ProtoMessage()
func (*MessageEditCommentRequest) ProtoReflect ¶
func (x *MessageEditCommentRequest) ProtoReflect() protoreflect.Message
func (*MessageEditCommentRequest) Reset ¶
func (x *MessageEditCommentRequest) Reset()
func (*MessageEditCommentRequest) String ¶
func (x *MessageEditCommentRequest) String() string
type MessageEditCommentResponse ¶
type MessageEditCommentResponse struct { Comment *Message `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*MessageEditCommentResponse) Descriptor
deprecated
func (*MessageEditCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageEditCommentResponse.ProtoReflect.Descriptor instead.
func (*MessageEditCommentResponse) GetComment ¶
func (x *MessageEditCommentResponse) GetComment() *Message
func (*MessageEditCommentResponse) ProtoMessage ¶
func (*MessageEditCommentResponse) ProtoMessage()
func (*MessageEditCommentResponse) ProtoReflect ¶
func (x *MessageEditCommentResponse) ProtoReflect() protoreflect.Message
func (*MessageEditCommentResponse) Reset ¶
func (x *MessageEditCommentResponse) Reset()
func (*MessageEditCommentResponse) String ¶
func (x *MessageEditCommentResponse) String() string
type MessageEditRequest ¶
type MessageEditRequest struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` TextChanged bool `protobuf:"varint,2,opt,name=text_changed,json=textChanged,proto3" json:"text_changed,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` AttachmentChanged bool `protobuf:"varint,4,opt,name=attachment_changed,json=attachmentChanged,proto3" json:"attachment_changed,omitempty"` AttachmentId string `protobuf:"bytes,5,opt,name=attachment_id,json=attachmentId,proto3" json:"attachment_id,omitempty"` // contains filtered or unexported fields }
func (*MessageEditRequest) Descriptor
deprecated
func (*MessageEditRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageEditRequest.ProtoReflect.Descriptor instead.
func (*MessageEditRequest) GetAttachmentChanged ¶
func (x *MessageEditRequest) GetAttachmentChanged() bool
func (*MessageEditRequest) GetAttachmentId ¶
func (x *MessageEditRequest) GetAttachmentId() string
func (*MessageEditRequest) GetMessageId ¶
func (x *MessageEditRequest) GetMessageId() string
func (*MessageEditRequest) GetText ¶
func (x *MessageEditRequest) GetText() string
func (*MessageEditRequest) GetTextChanged ¶
func (x *MessageEditRequest) GetTextChanged() bool
func (*MessageEditRequest) ProtoMessage ¶
func (*MessageEditRequest) ProtoMessage()
func (*MessageEditRequest) ProtoReflect ¶
func (x *MessageEditRequest) ProtoReflect() protoreflect.Message
func (*MessageEditRequest) Reset ¶
func (x *MessageEditRequest) Reset()
func (*MessageEditRequest) String ¶
func (x *MessageEditRequest) String() string
type MessageEditResponse ¶
type MessageEditResponse struct { Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*MessageEditResponse) Descriptor
deprecated
func (*MessageEditResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageEditResponse.ProtoReflect.Descriptor instead.
func (*MessageEditResponse) GetMessage ¶
func (x *MessageEditResponse) GetMessage() *Message
func (*MessageEditResponse) ProtoMessage ¶
func (*MessageEditResponse) ProtoMessage()
func (*MessageEditResponse) ProtoReflect ¶
func (x *MessageEditResponse) ProtoReflect() protoreflect.Message
func (*MessageEditResponse) Reset ¶
func (x *MessageEditResponse) Reset()
func (*MessageEditResponse) String ¶
func (x *MessageEditResponse) String() string
type MessageLike ¶
type MessageLike struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` LikedAt string `protobuf:"bytes,5,opt,name=liked_at,json=likedAt,proto3" json:"liked_at,omitempty"` // contains filtered or unexported fields }
func (*MessageLike) Descriptor
deprecated
func (*MessageLike) Descriptor() ([]byte, []int)
Deprecated: Use MessageLike.ProtoReflect.Descriptor instead.
func (*MessageLike) GetLikedAt ¶
func (x *MessageLike) GetLikedAt() string
func (*MessageLike) GetMessageId ¶
func (x *MessageLike) GetMessageId() string
func (*MessageLike) GetUserId ¶
func (x *MessageLike) GetUserId() string
func (*MessageLike) ProtoMessage ¶
func (*MessageLike) ProtoMessage()
func (*MessageLike) ProtoReflect ¶
func (x *MessageLike) ProtoReflect() protoreflect.Message
func (*MessageLike) Reset ¶
func (x *MessageLike) Reset()
func (*MessageLike) String ¶
func (x *MessageLike) String() string
type MessageLikeCommentRequest ¶
type MessageLikeCommentRequest struct { CommentId string `protobuf:"bytes,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` Unlike bool `protobuf:"varint,2,opt,name=unlike,proto3" json:"unlike,omitempty"` // contains filtered or unexported fields }
func (*MessageLikeCommentRequest) Descriptor
deprecated
func (*MessageLikeCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageLikeCommentRequest.ProtoReflect.Descriptor instead.
func (*MessageLikeCommentRequest) GetCommentId ¶
func (x *MessageLikeCommentRequest) GetCommentId() string
func (*MessageLikeCommentRequest) GetUnlike ¶
func (x *MessageLikeCommentRequest) GetUnlike() bool
func (*MessageLikeCommentRequest) ProtoMessage ¶
func (*MessageLikeCommentRequest) ProtoMessage()
func (*MessageLikeCommentRequest) ProtoReflect ¶
func (x *MessageLikeCommentRequest) ProtoReflect() protoreflect.Message
func (*MessageLikeCommentRequest) Reset ¶
func (x *MessageLikeCommentRequest) Reset()
func (*MessageLikeCommentRequest) String ¶
func (x *MessageLikeCommentRequest) String() string
type MessageLikeCommentResponse ¶
type MessageLikeCommentResponse struct { Likes int32 `protobuf:"varint,1,opt,name=likes,proto3" json:"likes,omitempty"` // contains filtered or unexported fields }
func (*MessageLikeCommentResponse) Descriptor
deprecated
func (*MessageLikeCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageLikeCommentResponse.ProtoReflect.Descriptor instead.
func (*MessageLikeCommentResponse) GetLikes ¶
func (x *MessageLikeCommentResponse) GetLikes() int32
func (*MessageLikeCommentResponse) ProtoMessage ¶
func (*MessageLikeCommentResponse) ProtoMessage()
func (*MessageLikeCommentResponse) ProtoReflect ¶
func (x *MessageLikeCommentResponse) ProtoReflect() protoreflect.Message
func (*MessageLikeCommentResponse) Reset ¶
func (x *MessageLikeCommentResponse) Reset()
func (*MessageLikeCommentResponse) String ¶
func (x *MessageLikeCommentResponse) String() string
type MessageLikeMessageRequest ¶
type MessageLikeMessageRequest struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` Unlike bool `protobuf:"varint,2,opt,name=unlike,proto3" json:"unlike,omitempty"` // contains filtered or unexported fields }
func (*MessageLikeMessageRequest) Descriptor
deprecated
func (*MessageLikeMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageLikeMessageRequest.ProtoReflect.Descriptor instead.
func (*MessageLikeMessageRequest) GetMessageId ¶
func (x *MessageLikeMessageRequest) GetMessageId() string
func (*MessageLikeMessageRequest) GetUnlike ¶
func (x *MessageLikeMessageRequest) GetUnlike() bool
func (*MessageLikeMessageRequest) ProtoMessage ¶
func (*MessageLikeMessageRequest) ProtoMessage()
func (*MessageLikeMessageRequest) ProtoReflect ¶
func (x *MessageLikeMessageRequest) ProtoReflect() protoreflect.Message
func (*MessageLikeMessageRequest) Reset ¶
func (x *MessageLikeMessageRequest) Reset()
func (*MessageLikeMessageRequest) String ¶
func (x *MessageLikeMessageRequest) String() string
type MessageLikeMessageResponse ¶
type MessageLikeMessageResponse struct { Likes int32 `protobuf:"varint,1,opt,name=likes,proto3" json:"likes,omitempty"` // contains filtered or unexported fields }
func (*MessageLikeMessageResponse) Descriptor
deprecated
func (*MessageLikeMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageLikeMessageResponse.ProtoReflect.Descriptor instead.
func (*MessageLikeMessageResponse) GetLikes ¶
func (x *MessageLikeMessageResponse) GetLikes() int32
func (*MessageLikeMessageResponse) ProtoMessage ¶
func (*MessageLikeMessageResponse) ProtoMessage()
func (*MessageLikeMessageResponse) ProtoReflect ¶
func (x *MessageLikeMessageResponse) ProtoReflect() protoreflect.Message
func (*MessageLikeMessageResponse) Reset ¶
func (x *MessageLikeMessageResponse) Reset()
func (*MessageLikeMessageResponse) String ¶
func (x *MessageLikeMessageResponse) String() string
type MessageMarkReadRequest ¶
type MessageMarkReadRequest struct { MessageIds []string `protobuf:"bytes,1,rep,name=message_ids,json=messageIds,proto3" json:"message_ids,omitempty"` // contains filtered or unexported fields }
func (*MessageMarkReadRequest) Descriptor
deprecated
func (*MessageMarkReadRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageMarkReadRequest.ProtoReflect.Descriptor instead.
func (*MessageMarkReadRequest) GetMessageIds ¶
func (x *MessageMarkReadRequest) GetMessageIds() []string
func (*MessageMarkReadRequest) ProtoMessage ¶
func (*MessageMarkReadRequest) ProtoMessage()
func (*MessageMarkReadRequest) ProtoReflect ¶
func (x *MessageMarkReadRequest) ProtoReflect() protoreflect.Message
func (*MessageMarkReadRequest) Reset ¶
func (x *MessageMarkReadRequest) Reset()
func (*MessageMarkReadRequest) String ¶
func (x *MessageMarkReadRequest) String() string
type MessageMessageLikesRequest ¶
type MessageMessageLikesRequest struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` // contains filtered or unexported fields }
func (*MessageMessageLikesRequest) Descriptor
deprecated
func (*MessageMessageLikesRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageMessageLikesRequest.ProtoReflect.Descriptor instead.
func (*MessageMessageLikesRequest) GetMessageId ¶
func (x *MessageMessageLikesRequest) GetMessageId() string
func (*MessageMessageLikesRequest) ProtoMessage ¶
func (*MessageMessageLikesRequest) ProtoMessage()
func (*MessageMessageLikesRequest) ProtoReflect ¶
func (x *MessageMessageLikesRequest) ProtoReflect() protoreflect.Message
func (*MessageMessageLikesRequest) Reset ¶
func (x *MessageMessageLikesRequest) Reset()
func (*MessageMessageLikesRequest) String ¶
func (x *MessageMessageLikesRequest) String() string
type MessageMessageLikesResponse ¶
type MessageMessageLikesResponse struct { Likes []*MessageLike `protobuf:"bytes,1,rep,name=likes,proto3" json:"likes,omitempty"` // contains filtered or unexported fields }
func (*MessageMessageLikesResponse) Descriptor
deprecated
func (*MessageMessageLikesResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageMessageLikesResponse.ProtoReflect.Descriptor instead.
func (*MessageMessageLikesResponse) GetLikes ¶
func (x *MessageMessageLikesResponse) GetLikes() []*MessageLike
func (*MessageMessageLikesResponse) ProtoMessage ¶
func (*MessageMessageLikesResponse) ProtoMessage()
func (*MessageMessageLikesResponse) ProtoReflect ¶
func (x *MessageMessageLikesResponse) ProtoReflect() protoreflect.Message
func (*MessageMessageLikesResponse) Reset ¶
func (x *MessageMessageLikesResponse) Reset()
func (*MessageMessageLikesResponse) String ¶
func (x *MessageMessageLikesResponse) String() string
type MessageMessageReportRequest ¶
type MessageMessageReportRequest struct { ReportId string `protobuf:"bytes,1,opt,name=report_id,json=reportId,proto3" json:"report_id,omitempty"` // contains filtered or unexported fields }
func (*MessageMessageReportRequest) Descriptor
deprecated
func (*MessageMessageReportRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageMessageReportRequest.ProtoReflect.Descriptor instead.
func (*MessageMessageReportRequest) GetReportId ¶
func (x *MessageMessageReportRequest) GetReportId() string
func (*MessageMessageReportRequest) ProtoMessage ¶
func (*MessageMessageReportRequest) ProtoMessage()
func (*MessageMessageReportRequest) ProtoReflect ¶
func (x *MessageMessageReportRequest) ProtoReflect() protoreflect.Message
func (*MessageMessageReportRequest) Reset ¶
func (x *MessageMessageReportRequest) Reset()
func (*MessageMessageReportRequest) String ¶
func (x *MessageMessageReportRequest) String() string
type MessageMessageReportResponse ¶
type MessageMessageReportResponse struct { ReportedBy string `protobuf:"bytes,1,opt,name=reported_by,json=reportedBy,proto3" json:"reported_by,omitempty"` Report string `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"` AuthorId string `protobuf:"bytes,3,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"` // contains filtered or unexported fields }
func (*MessageMessageReportResponse) Descriptor
deprecated
func (*MessageMessageReportResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageMessageReportResponse.ProtoReflect.Descriptor instead.
func (*MessageMessageReportResponse) GetAuthorId ¶
func (x *MessageMessageReportResponse) GetAuthorId() string
func (*MessageMessageReportResponse) GetReport ¶
func (x *MessageMessageReportResponse) GetReport() string
func (*MessageMessageReportResponse) GetReportedBy ¶
func (x *MessageMessageReportResponse) GetReportedBy() string
func (*MessageMessageReportResponse) ProtoMessage ¶
func (*MessageMessageReportResponse) ProtoMessage()
func (*MessageMessageReportResponse) ProtoReflect ¶
func (x *MessageMessageReportResponse) ProtoReflect() protoreflect.Message
func (*MessageMessageReportResponse) Reset ¶
func (x *MessageMessageReportResponse) Reset()
func (*MessageMessageReportResponse) String ¶
func (x *MessageMessageReportResponse) String() string
type MessageMessageReportsResponse ¶
type MessageMessageReportsResponse struct { Reports []*MessageReport `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"` // contains filtered or unexported fields }
func (*MessageMessageReportsResponse) Descriptor
deprecated
func (*MessageMessageReportsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageMessageReportsResponse.ProtoReflect.Descriptor instead.
func (*MessageMessageReportsResponse) GetReports ¶
func (x *MessageMessageReportsResponse) GetReports() []*MessageReport
func (*MessageMessageReportsResponse) ProtoMessage ¶
func (*MessageMessageReportsResponse) ProtoMessage()
func (*MessageMessageReportsResponse) ProtoReflect ¶
func (x *MessageMessageReportsResponse) ProtoReflect() protoreflect.Message
func (*MessageMessageReportsResponse) Reset ¶
func (x *MessageMessageReportsResponse) Reset()
func (*MessageMessageReportsResponse) String ¶
func (x *MessageMessageReportsResponse) String() string
type MessageMessageRequest ¶
type MessageMessageRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` // contains filtered or unexported fields }
func (*MessageMessageRequest) Descriptor
deprecated
func (*MessageMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageMessageRequest.ProtoReflect.Descriptor instead.
func (*MessageMessageRequest) GetMessageId ¶
func (x *MessageMessageRequest) GetMessageId() string
func (*MessageMessageRequest) GetToken ¶
func (x *MessageMessageRequest) GetToken() string
func (*MessageMessageRequest) ProtoMessage ¶
func (*MessageMessageRequest) ProtoMessage()
func (*MessageMessageRequest) ProtoReflect ¶
func (x *MessageMessageRequest) ProtoReflect() protoreflect.Message
func (*MessageMessageRequest) Reset ¶
func (x *MessageMessageRequest) Reset()
func (*MessageMessageRequest) String ¶
func (x *MessageMessageRequest) String() string
type MessageMessageResponse ¶
type MessageMessageResponse struct { Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*MessageMessageResponse) Descriptor
deprecated
func (*MessageMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageMessageResponse.ProtoReflect.Descriptor instead.
func (*MessageMessageResponse) GetMessage ¶
func (x *MessageMessageResponse) GetMessage() *Message
func (*MessageMessageResponse) ProtoMessage ¶
func (*MessageMessageResponse) ProtoMessage()
func (*MessageMessageResponse) ProtoReflect ¶
func (x *MessageMessageResponse) ProtoReflect() protoreflect.Message
func (*MessageMessageResponse) Reset ¶
func (x *MessageMessageResponse) Reset()
func (*MessageMessageResponse) String ¶
func (x *MessageMessageResponse) String() string
type MessageMessagesRequest ¶
type MessageMessagesRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` GroupId string `protobuf:"bytes,4,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` FriendId string `protobuf:"bytes,5,opt,name=friend_id,json=friendId,proto3" json:"friend_id,omitempty"` // contains filtered or unexported fields }
func (*MessageMessagesRequest) Descriptor
deprecated
func (*MessageMessagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageMessagesRequest.ProtoReflect.Descriptor instead.
func (*MessageMessagesRequest) GetCount ¶
func (x *MessageMessagesRequest) GetCount() int32
func (*MessageMessagesRequest) GetFriendId ¶
func (x *MessageMessagesRequest) GetFriendId() string
func (*MessageMessagesRequest) GetFrom ¶
func (x *MessageMessagesRequest) GetFrom() string
func (*MessageMessagesRequest) GetGroupId ¶
func (x *MessageMessagesRequest) GetGroupId() string
func (*MessageMessagesRequest) GetToken ¶
func (x *MessageMessagesRequest) GetToken() string
func (*MessageMessagesRequest) ProtoMessage ¶
func (*MessageMessagesRequest) ProtoMessage()
func (*MessageMessagesRequest) ProtoReflect ¶
func (x *MessageMessagesRequest) ProtoReflect() protoreflect.Message
func (*MessageMessagesRequest) Reset ¶
func (x *MessageMessagesRequest) Reset()
func (*MessageMessagesRequest) String ¶
func (x *MessageMessagesRequest) String() string
type MessageMessagesResponse ¶
type MessageMessagesResponse struct { Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*MessageMessagesResponse) Descriptor
deprecated
func (*MessageMessagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageMessagesResponse.ProtoReflect.Descriptor instead.
func (*MessageMessagesResponse) GetMessages ¶
func (x *MessageMessagesResponse) GetMessages() []*Message
func (*MessageMessagesResponse) ProtoMessage ¶
func (*MessageMessagesResponse) ProtoMessage()
func (*MessageMessagesResponse) ProtoReflect ¶
func (x *MessageMessagesResponse) ProtoReflect() protoreflect.Message
func (*MessageMessagesResponse) Reset ¶
func (x *MessageMessagesResponse) Reset()
func (*MessageMessagesResponse) String ¶
func (x *MessageMessagesResponse) String() string
type MessagePostCommentRequest ¶
type MessagePostCommentRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` AttachmentId string `protobuf:"bytes,4,opt,name=attachment_id,json=attachmentId,proto3" json:"attachment_id,omitempty"` // contains filtered or unexported fields }
func (*MessagePostCommentRequest) Descriptor
deprecated
func (*MessagePostCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessagePostCommentRequest.ProtoReflect.Descriptor instead.
func (*MessagePostCommentRequest) GetAttachmentId ¶
func (x *MessagePostCommentRequest) GetAttachmentId() string
func (*MessagePostCommentRequest) GetMessageId ¶
func (x *MessagePostCommentRequest) GetMessageId() string
func (*MessagePostCommentRequest) GetText ¶
func (x *MessagePostCommentRequest) GetText() string
func (*MessagePostCommentRequest) GetToken ¶
func (x *MessagePostCommentRequest) GetToken() string
func (*MessagePostCommentRequest) ProtoMessage ¶
func (*MessagePostCommentRequest) ProtoMessage()
func (*MessagePostCommentRequest) ProtoReflect ¶
func (x *MessagePostCommentRequest) ProtoReflect() protoreflect.Message
func (*MessagePostCommentRequest) Reset ¶
func (x *MessagePostCommentRequest) Reset()
func (*MessagePostCommentRequest) String ¶
func (x *MessagePostCommentRequest) String() string
type MessagePostCommentResponse ¶
type MessagePostCommentResponse struct { Comment *Message `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*MessagePostCommentResponse) Descriptor
deprecated
func (*MessagePostCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessagePostCommentResponse.ProtoReflect.Descriptor instead.
func (*MessagePostCommentResponse) GetComment ¶
func (x *MessagePostCommentResponse) GetComment() *Message
func (*MessagePostCommentResponse) ProtoMessage ¶
func (*MessagePostCommentResponse) ProtoMessage()
func (*MessagePostCommentResponse) ProtoReflect ¶
func (x *MessagePostCommentResponse) ProtoReflect() protoreflect.Message
func (*MessagePostCommentResponse) Reset ¶
func (x *MessagePostCommentResponse) Reset()
func (*MessagePostCommentResponse) String ¶
func (x *MessagePostCommentResponse) String() string
type MessagePostRequest ¶
type MessagePostRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` AttachmentId string `protobuf:"bytes,3,opt,name=attachment_id,json=attachmentId,proto3" json:"attachment_id,omitempty"` IsPublic bool `protobuf:"varint,4,opt,name=is_public,json=isPublic,proto3" json:"is_public,omitempty"` // contains filtered or unexported fields }
func (*MessagePostRequest) Descriptor
deprecated
func (*MessagePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessagePostRequest.ProtoReflect.Descriptor instead.
func (*MessagePostRequest) GetAttachmentId ¶
func (x *MessagePostRequest) GetAttachmentId() string
func (*MessagePostRequest) GetIsPublic ¶
func (x *MessagePostRequest) GetIsPublic() bool
func (*MessagePostRequest) GetText ¶
func (x *MessagePostRequest) GetText() string
func (*MessagePostRequest) GetToken ¶
func (x *MessagePostRequest) GetToken() string
func (*MessagePostRequest) ProtoMessage ¶
func (*MessagePostRequest) ProtoMessage()
func (*MessagePostRequest) ProtoReflect ¶
func (x *MessagePostRequest) ProtoReflect() protoreflect.Message
func (*MessagePostRequest) Reset ¶
func (x *MessagePostRequest) Reset()
func (*MessagePostRequest) String ¶
func (x *MessagePostRequest) String() string
type MessagePostResponse ¶
type MessagePostResponse struct { Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*MessagePostResponse) Descriptor
deprecated
func (*MessagePostResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessagePostResponse.ProtoReflect.Descriptor instead.
func (*MessagePostResponse) GetMessage ¶
func (x *MessagePostResponse) GetMessage() *Message
func (*MessagePostResponse) ProtoMessage ¶
func (*MessagePostResponse) ProtoMessage()
func (*MessagePostResponse) ProtoReflect ¶
func (x *MessagePostResponse) ProtoReflect() protoreflect.Message
func (*MessagePostResponse) Reset ¶
func (x *MessagePostResponse) Reset()
func (*MessagePostResponse) String ¶
func (x *MessagePostResponse) String() string
type MessagePublicMessageRequest ¶
type MessagePublicMessageRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` // contains filtered or unexported fields }
func (*MessagePublicMessageRequest) Descriptor
deprecated
func (*MessagePublicMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessagePublicMessageRequest.ProtoReflect.Descriptor instead.
func (*MessagePublicMessageRequest) GetMessageId ¶
func (x *MessagePublicMessageRequest) GetMessageId() string
func (*MessagePublicMessageRequest) GetToken ¶
func (x *MessagePublicMessageRequest) GetToken() string
func (*MessagePublicMessageRequest) ProtoMessage ¶
func (*MessagePublicMessageRequest) ProtoMessage()
func (*MessagePublicMessageRequest) ProtoReflect ¶
func (x *MessagePublicMessageRequest) ProtoReflect() protoreflect.Message
func (*MessagePublicMessageRequest) Reset ¶
func (x *MessagePublicMessageRequest) Reset()
func (*MessagePublicMessageRequest) String ¶
func (x *MessagePublicMessageRequest) String() string
type MessagePublicMessageResponse ¶
type MessagePublicMessageResponse struct { Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*MessagePublicMessageResponse) Descriptor
deprecated
func (*MessagePublicMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessagePublicMessageResponse.ProtoReflect.Descriptor instead.
func (*MessagePublicMessageResponse) GetMessage ¶
func (x *MessagePublicMessageResponse) GetMessage() *Message
func (*MessagePublicMessageResponse) ProtoMessage ¶
func (*MessagePublicMessageResponse) ProtoMessage()
func (*MessagePublicMessageResponse) ProtoReflect ¶
func (x *MessagePublicMessageResponse) ProtoReflect() protoreflect.Message
func (*MessagePublicMessageResponse) Reset ¶
func (x *MessagePublicMessageResponse) Reset()
func (*MessagePublicMessageResponse) String ¶
func (x *MessagePublicMessageResponse) String() string
type MessagePublicMessagesRequest ¶
type MessagePublicMessagesRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*MessagePublicMessagesRequest) Descriptor
deprecated
func (*MessagePublicMessagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessagePublicMessagesRequest.ProtoReflect.Descriptor instead.
func (*MessagePublicMessagesRequest) GetCount ¶
func (x *MessagePublicMessagesRequest) GetCount() int32
func (*MessagePublicMessagesRequest) GetFrom ¶
func (x *MessagePublicMessagesRequest) GetFrom() string
func (*MessagePublicMessagesRequest) GetToken ¶
func (x *MessagePublicMessagesRequest) GetToken() string
func (*MessagePublicMessagesRequest) ProtoMessage ¶
func (*MessagePublicMessagesRequest) ProtoMessage()
func (*MessagePublicMessagesRequest) ProtoReflect ¶
func (x *MessagePublicMessagesRequest) ProtoReflect() protoreflect.Message
func (*MessagePublicMessagesRequest) Reset ¶
func (x *MessagePublicMessagesRequest) Reset()
func (*MessagePublicMessagesRequest) String ¶
func (x *MessagePublicMessagesRequest) String() string
type MessagePublicMessagesResponse ¶
type MessagePublicMessagesResponse struct { Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*MessagePublicMessagesResponse) Descriptor
deprecated
func (*MessagePublicMessagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessagePublicMessagesResponse.ProtoReflect.Descriptor instead.
func (*MessagePublicMessagesResponse) GetMessages ¶
func (x *MessagePublicMessagesResponse) GetMessages() []*Message
func (*MessagePublicMessagesResponse) ProtoMessage ¶
func (*MessagePublicMessagesResponse) ProtoMessage()
func (*MessagePublicMessagesResponse) ProtoReflect ¶
func (x *MessagePublicMessagesResponse) ProtoReflect() protoreflect.Message
func (*MessagePublicMessagesResponse) Reset ¶
func (x *MessagePublicMessagesResponse) Reset()
func (*MessagePublicMessagesResponse) String ¶
func (x *MessagePublicMessagesResponse) String() string
type MessageReport ¶
type MessageReport struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ReporterId string `protobuf:"bytes,2,opt,name=reporter_id,json=reporterId,proto3" json:"reporter_id,omitempty"` Report string `protobuf:"bytes,5,opt,name=report,proto3" json:"report,omitempty"` CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` ResolvedAt string `protobuf:"bytes,7,opt,name=resolved_at,json=resolvedAt,proto3" json:"resolved_at,omitempty"` MessageId string `protobuf:"bytes,8,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` AuthorId string `protobuf:"bytes,9,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"` Text string `protobuf:"bytes,12,opt,name=text,proto3" json:"text,omitempty"` AttachmentType string `protobuf:"bytes,13,opt,name=attachment_type,json=attachmentType,proto3" json:"attachment_type,omitempty"` Attachment string `protobuf:"bytes,14,opt,name=attachment,proto3" json:"attachment,omitempty"` AttachmentThumbnail string `protobuf:"bytes,15,opt,name=attachment_thumbnail,json=attachmentThumbnail,proto3" json:"attachment_thumbnail,omitempty"` // contains filtered or unexported fields }
func (*MessageReport) Descriptor
deprecated
func (*MessageReport) Descriptor() ([]byte, []int)
Deprecated: Use MessageReport.ProtoReflect.Descriptor instead.
func (*MessageReport) GetAttachment ¶
func (x *MessageReport) GetAttachment() string
func (*MessageReport) GetAttachmentThumbnail ¶
func (x *MessageReport) GetAttachmentThumbnail() string
func (*MessageReport) GetAttachmentType ¶
func (x *MessageReport) GetAttachmentType() string
func (*MessageReport) GetAuthorId ¶
func (x *MessageReport) GetAuthorId() string
func (*MessageReport) GetCreatedAt ¶
func (x *MessageReport) GetCreatedAt() string
func (*MessageReport) GetId ¶
func (x *MessageReport) GetId() string
func (*MessageReport) GetMessageId ¶
func (x *MessageReport) GetMessageId() string
func (*MessageReport) GetReport ¶
func (x *MessageReport) GetReport() string
func (*MessageReport) GetReporterId ¶
func (x *MessageReport) GetReporterId() string
func (*MessageReport) GetResolvedAt ¶
func (x *MessageReport) GetResolvedAt() string
func (*MessageReport) GetText ¶
func (x *MessageReport) GetText() string
func (*MessageReport) ProtoMessage ¶
func (*MessageReport) ProtoMessage()
func (*MessageReport) ProtoReflect ¶
func (x *MessageReport) ProtoReflect() protoreflect.Message
func (*MessageReport) Reset ¶
func (x *MessageReport) Reset()
func (*MessageReport) String ¶
func (x *MessageReport) String() string
type MessageReportMessageRequest ¶
type MessageReportMessageRequest struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` Report string `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"` // contains filtered or unexported fields }
func (*MessageReportMessageRequest) Descriptor
deprecated
func (*MessageReportMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageReportMessageRequest.ProtoReflect.Descriptor instead.
func (*MessageReportMessageRequest) GetMessageId ¶
func (x *MessageReportMessageRequest) GetMessageId() string
func (*MessageReportMessageRequest) GetReport ¶
func (x *MessageReportMessageRequest) GetReport() string
func (*MessageReportMessageRequest) ProtoMessage ¶
func (*MessageReportMessageRequest) ProtoMessage()
func (*MessageReportMessageRequest) ProtoReflect ¶
func (x *MessageReportMessageRequest) ProtoReflect() protoreflect.Message
func (*MessageReportMessageRequest) Reset ¶
func (x *MessageReportMessageRequest) Reset()
func (*MessageReportMessageRequest) String ¶
func (x *MessageReportMessageRequest) String() string
type MessageReportMessageResponse ¶
type MessageReportMessageResponse struct { ReportId string `protobuf:"bytes,1,opt,name=report_id,json=reportId,proto3" json:"report_id,omitempty"` // contains filtered or unexported fields }
func (*MessageReportMessageResponse) Descriptor
deprecated
func (*MessageReportMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageReportMessageResponse.ProtoReflect.Descriptor instead.
func (*MessageReportMessageResponse) GetReportId ¶
func (x *MessageReportMessageResponse) GetReportId() string
func (*MessageReportMessageResponse) ProtoMessage ¶
func (*MessageReportMessageResponse) ProtoMessage()
func (*MessageReportMessageResponse) ProtoReflect ¶
func (x *MessageReportMessageResponse) ProtoReflect() protoreflect.Message
func (*MessageReportMessageResponse) Reset ¶
func (x *MessageReportMessageResponse) Reset()
func (*MessageReportMessageResponse) String ¶
func (x *MessageReportMessageResponse) String() string
type MessageResolveMessageReportRequest ¶
type MessageResolveMessageReportRequest struct { ReportId string `protobuf:"bytes,1,opt,name=report_id,json=reportId,proto3" json:"report_id,omitempty"` // contains filtered or unexported fields }
func (*MessageResolveMessageReportRequest) Descriptor
deprecated
func (*MessageResolveMessageReportRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageResolveMessageReportRequest.ProtoReflect.Descriptor instead.
func (*MessageResolveMessageReportRequest) GetReportId ¶
func (x *MessageResolveMessageReportRequest) GetReportId() string
func (*MessageResolveMessageReportRequest) ProtoMessage ¶
func (*MessageResolveMessageReportRequest) ProtoMessage()
func (*MessageResolveMessageReportRequest) ProtoReflect ¶
func (x *MessageResolveMessageReportRequest) ProtoReflect() protoreflect.Message
func (*MessageResolveMessageReportRequest) Reset ¶
func (x *MessageResolveMessageReportRequest) Reset()
func (*MessageResolveMessageReportRequest) String ¶
func (x *MessageResolveMessageReportRequest) String() string
type MessageService ¶
type MessageService interface { Messages(context.Context, *MessageMessagesRequest) (*MessageMessagesResponse, error) Message(context.Context, *MessageMessageRequest) (*MessageMessageResponse, error) PublicMessages(context.Context, *MessagePublicMessagesRequest) (*MessagePublicMessagesResponse, error) PublicMessage(context.Context, *MessagePublicMessageRequest) (*MessagePublicMessageResponse, error) Post(context.Context, *MessagePostRequest) (*MessagePostResponse, error) Edit(context.Context, *MessageEditRequest) (*MessageEditResponse, error) Delete(context.Context, *MessageDeleteRequest) (*Empty, error) PostComment(context.Context, *MessagePostCommentRequest) (*MessagePostCommentResponse, error) EditComment(context.Context, *MessageEditCommentRequest) (*MessageEditCommentResponse, error) DeleteComment(context.Context, *MessageDeleteCommentRequest) (*Empty, error) LikeMessage(context.Context, *MessageLikeMessageRequest) (*MessageLikeMessageResponse, error) LikeComment(context.Context, *MessageLikeCommentRequest) (*MessageLikeCommentResponse, error) MessageLikes(context.Context, *MessageMessageLikesRequest) (*MessageMessageLikesResponse, error) CommentLikes(context.Context, *MessageCommentLikesRequest) (*MessageCommentLikesResponse, error) SetMessageVisibility(context.Context, *MessageSetMessageVisibilityRequest) (*Empty, error) SetCommentVisibility(context.Context, *MessageSetCommentVisibilityRequest) (*Empty, error) ReportMessage(context.Context, *MessageReportMessageRequest) (*MessageReportMessageResponse, error) MessageReport(context.Context, *MessageMessageReportRequest) (*MessageMessageReportResponse, error) MessageReports(context.Context, *Empty) (*MessageMessageReportsResponse, error) DeleteReportedMessage(context.Context, *MessageDeleteReportedMessageRequest) (*Empty, error) BlockReportedUser(context.Context, *MessageBlockReportedUserRequest) (*Empty, error) ResolveMessageReport(context.Context, *MessageResolveMessageReportRequest) (*Empty, error) MarkRead(context.Context, *MessageMarkReadRequest) (*Empty, error) Counters(context.Context, *MessageCountersRequest) (*MessageCountersResponse, error) }
func NewMessageServiceJSONClient ¶
func NewMessageServiceJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) MessageService
NewMessageServiceJSONClient creates a JSON client that implements the MessageService interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewMessageServiceProtobufClient ¶
func NewMessageServiceProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) MessageService
NewMessageServiceProtobufClient creates a Protobuf client that implements the MessageService interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type MessageSetCommentVisibilityRequest ¶
type MessageSetCommentVisibilityRequest struct { CommentId string `protobuf:"bytes,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` Visibility bool `protobuf:"varint,2,opt,name=visibility,proto3" json:"visibility,omitempty"` // contains filtered or unexported fields }
func (*MessageSetCommentVisibilityRequest) Descriptor
deprecated
func (*MessageSetCommentVisibilityRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageSetCommentVisibilityRequest.ProtoReflect.Descriptor instead.
func (*MessageSetCommentVisibilityRequest) GetCommentId ¶
func (x *MessageSetCommentVisibilityRequest) GetCommentId() string
func (*MessageSetCommentVisibilityRequest) GetVisibility ¶
func (x *MessageSetCommentVisibilityRequest) GetVisibility() bool
func (*MessageSetCommentVisibilityRequest) ProtoMessage ¶
func (*MessageSetCommentVisibilityRequest) ProtoMessage()
func (*MessageSetCommentVisibilityRequest) ProtoReflect ¶
func (x *MessageSetCommentVisibilityRequest) ProtoReflect() protoreflect.Message
func (*MessageSetCommentVisibilityRequest) Reset ¶
func (x *MessageSetCommentVisibilityRequest) Reset()
func (*MessageSetCommentVisibilityRequest) String ¶
func (x *MessageSetCommentVisibilityRequest) String() string
type MessageSetMessageVisibilityRequest ¶
type MessageSetMessageVisibilityRequest struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` Visibility bool `protobuf:"varint,2,opt,name=visibility,proto3" json:"visibility,omitempty"` // contains filtered or unexported fields }
func (*MessageSetMessageVisibilityRequest) Descriptor
deprecated
func (*MessageSetMessageVisibilityRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageSetMessageVisibilityRequest.ProtoReflect.Descriptor instead.
func (*MessageSetMessageVisibilityRequest) GetMessageId ¶
func (x *MessageSetMessageVisibilityRequest) GetMessageId() string
func (*MessageSetMessageVisibilityRequest) GetVisibility ¶
func (x *MessageSetMessageVisibilityRequest) GetVisibility() bool
func (*MessageSetMessageVisibilityRequest) ProtoMessage ¶
func (*MessageSetMessageVisibilityRequest) ProtoMessage()
func (*MessageSetMessageVisibilityRequest) ProtoReflect ¶
func (x *MessageSetMessageVisibilityRequest) ProtoReflect() protoreflect.Message
func (*MessageSetMessageVisibilityRequest) Reset ¶
func (x *MessageSetMessageVisibilityRequest) Reset()
func (*MessageSetMessageVisibilityRequest) String ¶
func (x *MessageSetMessageVisibilityRequest) String() string
type Notification ¶
type Notification struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` ReadAt string `protobuf:"bytes,6,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"` // contains filtered or unexported fields }
func (*Notification) Descriptor
deprecated
func (*Notification) Descriptor() ([]byte, []int)
Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) GetCreatedAt ¶
func (x *Notification) GetCreatedAt() string
func (*Notification) GetData ¶
func (x *Notification) GetData() string
func (*Notification) GetId ¶
func (x *Notification) GetId() string
func (*Notification) GetReadAt ¶
func (x *Notification) GetReadAt() string
func (*Notification) GetText ¶
func (x *Notification) GetText() string
func (*Notification) GetType ¶
func (x *Notification) GetType() string
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) ProtoReflect ¶
func (x *Notification) ProtoReflect() protoreflect.Message
func (*Notification) Reset ¶
func (x *Notification) Reset()
func (*Notification) String ¶
func (x *Notification) String() string
type NotificationCleanRequest ¶
type NotificationCleanRequest struct { LastKnownId string `protobuf:"bytes,1,opt,name=last_known_id,json=lastKnownId,proto3" json:"last_known_id,omitempty"` // contains filtered or unexported fields }
func (*NotificationCleanRequest) Descriptor
deprecated
func (*NotificationCleanRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotificationCleanRequest.ProtoReflect.Descriptor instead.
func (*NotificationCleanRequest) GetLastKnownId ¶
func (x *NotificationCleanRequest) GetLastKnownId() string
func (*NotificationCleanRequest) ProtoMessage ¶
func (*NotificationCleanRequest) ProtoMessage()
func (*NotificationCleanRequest) ProtoReflect ¶
func (x *NotificationCleanRequest) ProtoReflect() protoreflect.Message
func (*NotificationCleanRequest) Reset ¶
func (x *NotificationCleanRequest) Reset()
func (*NotificationCleanRequest) String ¶
func (x *NotificationCleanRequest) String() string
type NotificationCountResponse ¶
type NotificationCountResponse struct { Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Unread int32 `protobuf:"varint,2,opt,name=unread,proto3" json:"unread,omitempty"` // contains filtered or unexported fields }
func (*NotificationCountResponse) Descriptor
deprecated
func (*NotificationCountResponse) Descriptor() ([]byte, []int)
Deprecated: Use NotificationCountResponse.ProtoReflect.Descriptor instead.
func (*NotificationCountResponse) GetTotal ¶
func (x *NotificationCountResponse) GetTotal() int32
func (*NotificationCountResponse) GetUnread ¶
func (x *NotificationCountResponse) GetUnread() int32
func (*NotificationCountResponse) ProtoMessage ¶
func (*NotificationCountResponse) ProtoMessage()
func (*NotificationCountResponse) ProtoReflect ¶
func (x *NotificationCountResponse) ProtoReflect() protoreflect.Message
func (*NotificationCountResponse) Reset ¶
func (x *NotificationCountResponse) Reset()
func (*NotificationCountResponse) String ¶
func (x *NotificationCountResponse) String() string
type NotificationMarkReadRequest ¶
type NotificationMarkReadRequest struct { LastKnownId string `protobuf:"bytes,1,opt,name=last_known_id,json=lastKnownId,proto3" json:"last_known_id,omitempty"` // contains filtered or unexported fields }
func (*NotificationMarkReadRequest) Descriptor
deprecated
func (*NotificationMarkReadRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotificationMarkReadRequest.ProtoReflect.Descriptor instead.
func (*NotificationMarkReadRequest) GetLastKnownId ¶
func (x *NotificationMarkReadRequest) GetLastKnownId() string
func (*NotificationMarkReadRequest) ProtoMessage ¶
func (*NotificationMarkReadRequest) ProtoMessage()
func (*NotificationMarkReadRequest) ProtoReflect ¶
func (x *NotificationMarkReadRequest) ProtoReflect() protoreflect.Message
func (*NotificationMarkReadRequest) Reset ¶
func (x *NotificationMarkReadRequest) Reset()
func (*NotificationMarkReadRequest) String ¶
func (x *NotificationMarkReadRequest) String() string
type NotificationNotificationsResponse ¶
type NotificationNotificationsResponse struct { Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` // contains filtered or unexported fields }
func (*NotificationNotificationsResponse) Descriptor
deprecated
func (*NotificationNotificationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use NotificationNotificationsResponse.ProtoReflect.Descriptor instead.
func (*NotificationNotificationsResponse) GetNotifications ¶
func (x *NotificationNotificationsResponse) GetNotifications() []*Notification
func (*NotificationNotificationsResponse) ProtoMessage ¶
func (*NotificationNotificationsResponse) ProtoMessage()
func (*NotificationNotificationsResponse) ProtoReflect ¶
func (x *NotificationNotificationsResponse) ProtoReflect() protoreflect.Message
func (*NotificationNotificationsResponse) Reset ¶
func (x *NotificationNotificationsResponse) Reset()
func (*NotificationNotificationsResponse) String ¶
func (x *NotificationNotificationsResponse) String() string
type NotificationService ¶
type NotificationService interface { Count(context.Context, *Empty) (*NotificationCountResponse, error) Notifications(context.Context, *Empty) (*NotificationNotificationsResponse, error) Clean(context.Context, *NotificationCleanRequest) (*Empty, error) MarkRead(context.Context, *NotificationMarkReadRequest) (*Empty, error) }
func NewNotificationServiceJSONClient ¶
func NewNotificationServiceJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) NotificationService
NewNotificationServiceJSONClient creates a JSON client that implements the NotificationService interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewNotificationServiceProtobufClient ¶
func NewNotificationServiceProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) NotificationService
NewNotificationServiceProtobufClient creates a Protobuf client that implements the NotificationService interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type TwirpServer ¶
type TwirpServer interface { http.Handler // ServiceDescriptor returns gzipped bytes describing the .proto file that // this service was generated from. Once unzipped, the bytes can be // unmarshalled as a // google.golang.org/protobuf/types/descriptorpb.FileDescriptorProto. // // The returned integer is the index of this particular service within that // FileDescriptorProto's 'Service' slice of ServiceDescriptorProtos. This is a // low-level field, expected to be used for reflection. ServiceDescriptor() ([]byte, int) // ProtocGenTwirpVersion is the semantic version string of the version of // twirp used to generate this file. ProtocGenTwirpVersion() string // PathPrefix returns the HTTP URL path prefix for all methods handled by this // service. This can be used with an HTTP mux to route Twirp requests. // The path prefix is in the form: "/<prefix>/<package>.<Service>/" // that is, everything in a Twirp route except for the <Method> at the end. PathPrefix() string }
TwirpServer is the interface generated server structs will support: they're HTTP handlers with additional methods for accessing metadata about the service. Those accessors are a low-level API for building reflection tools. Most people can think of TwirpServers as just http.Handlers.
func NewAdminServiceServer ¶
func NewAdminServiceServer(svc AdminService, opts ...interface{}) TwirpServer
NewAdminServiceServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).
func NewBlobServiceServer ¶
func NewBlobServiceServer(svc BlobService, opts ...interface{}) TwirpServer
NewBlobServiceServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).
func NewInfoServiceServer ¶
func NewInfoServiceServer(svc InfoService, opts ...interface{}) TwirpServer
NewInfoServiceServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).
func NewMessageServiceServer ¶
func NewMessageServiceServer(svc MessageService, opts ...interface{}) TwirpServer
NewMessageServiceServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).
func NewNotificationServiceServer ¶
func NewNotificationServiceServer(svc NotificationService, opts ...interface{}) TwirpServer
NewNotificationServiceServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).
func NewUserServiceServer ¶
func NewUserServiceServer(svc UserService, opts ...interface{}) TwirpServer
NewUserServiceServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserBlockRequest ¶
type UserBlockRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*UserBlockRequest) Descriptor
deprecated
func (*UserBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserBlockRequest.ProtoReflect.Descriptor instead.
func (*UserBlockRequest) GetUserId ¶
func (x *UserBlockRequest) GetUserId() string
func (*UserBlockRequest) ProtoMessage ¶
func (*UserBlockRequest) ProtoMessage()
func (*UserBlockRequest) ProtoReflect ¶
func (x *UserBlockRequest) ProtoReflect() protoreflect.Message
func (*UserBlockRequest) Reset ¶
func (x *UserBlockRequest) Reset()
func (*UserBlockRequest) String ¶
func (x *UserBlockRequest) String() string
type UserService ¶
type UserService interface { BlockUser(context.Context, *UserBlockRequest) (*Empty, error) DeleteMe(context.Context, *Empty) (*Empty, error) }
func NewUserServiceJSONClient ¶
func NewUserServiceJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) UserService
NewUserServiceJSONClient creates a JSON client that implements the UserService interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewUserServiceProtobufClient ¶
func NewUserServiceProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) UserService
NewUserServiceProtobufClient creates a Protobuf client that implements the UserService interface. It communicates using Protobuf and can be configured with a custom HTTPClient.