Documentation ¶
Index ¶
- Variables
- type RecentReply
- func (*RecentReply) Descriptor() ([]byte, []int)deprecated
- func (x *RecentReply) GetAuthor() *shared.UserBase
- func (x *RecentReply) GetId() string
- func (x *RecentReply) GetLastReplyAt() *timestamp.Timestamp
- func (x *RecentReply) GetTitle() string
- func (*RecentReply) ProtoMessage()
- func (x *RecentReply) ProtoReflect() protoreflect.Message
- func (x *RecentReply) Reset()
- func (x *RecentReply) String() string
- func (m *RecentReply) Validate() error
- type RecentReplyValidationError
- func (e RecentReplyValidationError) Cause() error
- func (e RecentReplyValidationError) Error() string
- func (e RecentReplyValidationError) ErrorName() string
- func (e RecentReplyValidationError) Field() string
- func (e RecentReplyValidationError) Key() bool
- func (e RecentReplyValidationError) Reason() string
- type Reply
- func (*Reply) Descriptor() ([]byte, []int)deprecated
- func (x *Reply) GetAuthor() *shared.UserBase
- func (x *Reply) GetContent() string
- func (x *Reply) GetCreateAt() *timestamp.Timestamp
- func (x *Reply) GetId() string
- func (x *Reply) GetIsUped() bool
- func (x *Reply) GetReplyId() string
- func (x *Reply) GetUps() []string
- func (*Reply) ProtoMessage()
- func (x *Reply) ProtoReflect() protoreflect.Message
- func (x *Reply) Reset()
- func (x *Reply) String() string
- func (m *Reply) Validate() error
- type ReplyValidationError
Constants ¶
This section is empty.
Variables ¶
var File_internal_protobufs_reply_domain_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type RecentReply ¶
type RecentReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` LastReplyAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_reply_at,json=lastReplyAt,proto3" json:"last_reply_at,omitempty"` Author *shared.UserBase `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"` // contains filtered or unexported fields }
func (*RecentReply) Descriptor
deprecated
func (*RecentReply) Descriptor() ([]byte, []int)
Deprecated: Use RecentReply.ProtoReflect.Descriptor instead.
func (*RecentReply) GetAuthor ¶
func (x *RecentReply) GetAuthor() *shared.UserBase
func (*RecentReply) GetId ¶
func (x *RecentReply) GetId() string
func (*RecentReply) GetLastReplyAt ¶
func (x *RecentReply) GetLastReplyAt() *timestamp.Timestamp
func (*RecentReply) GetTitle ¶
func (x *RecentReply) GetTitle() string
func (*RecentReply) ProtoMessage ¶
func (*RecentReply) ProtoMessage()
func (*RecentReply) ProtoReflect ¶
func (x *RecentReply) ProtoReflect() protoreflect.Message
func (*RecentReply) Reset ¶
func (x *RecentReply) Reset()
func (*RecentReply) String ¶
func (x *RecentReply) String() string
func (*RecentReply) Validate ¶
func (m *RecentReply) Validate() error
Validate checks the field values on RecentReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RecentReplyValidationError ¶
type RecentReplyValidationError struct {
// contains filtered or unexported fields
}
RecentReplyValidationError is the validation error returned by RecentReply.Validate if the designated constraints aren't met.
func (RecentReplyValidationError) Cause ¶
func (e RecentReplyValidationError) Cause() error
Cause function returns cause value.
func (RecentReplyValidationError) Error ¶
func (e RecentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RecentReplyValidationError) ErrorName ¶
func (e RecentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RecentReplyValidationError) Field ¶
func (e RecentReplyValidationError) Field() string
Field function returns field value.
func (RecentReplyValidationError) Key ¶
func (e RecentReplyValidationError) Key() bool
Key function returns key value.
func (RecentReplyValidationError) Reason ¶
func (e RecentReplyValidationError) Reason() string
Reason function returns reason value.
type Reply ¶
type Reply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` CreateAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"` ReplyId string `protobuf:"bytes,4,opt,name=reply_id,json=replyId,proto3" json:"reply_id,omitempty"` Author *shared.UserBase `protobuf:"bytes,5,opt,name=author,proto3" json:"author,omitempty"` IsUped bool `protobuf:"varint,6,opt,name=is_uped,json=isUped,proto3" json:"is_uped,omitempty"` Ups []string `protobuf:"bytes,7,rep,name=ups,proto3" json:"ups,omitempty"` // contains filtered or unexported fields }
func (*Reply) Descriptor
deprecated
func (*Reply) GetContent ¶
func (*Reply) GetCreateAt ¶
func (*Reply) GetReplyId ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
type ReplyValidationError ¶
type ReplyValidationError struct {
// contains filtered or unexported fields
}
ReplyValidationError is the validation error returned by Reply.Validate if the designated constraints aren't met.
func (ReplyValidationError) Cause ¶
func (e ReplyValidationError) Cause() error
Cause function returns cause value.
func (ReplyValidationError) Error ¶
func (e ReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ReplyValidationError) ErrorName ¶
func (e ReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ReplyValidationError) Field ¶
func (e ReplyValidationError) Field() string
Field function returns field value.
func (ReplyValidationError) Key ¶
func (e ReplyValidationError) Key() bool
Key function returns key value.
func (ReplyValidationError) Reason ¶
func (e ReplyValidationError) Reason() string
Reason function returns reason value.