Documentation ¶
Index ¶
- Variables
- type TopicBase
- func (*TopicBase) Descriptor() ([]byte, []int)deprecated
- func (x *TopicBase) GetAuthor() *UserBase
- func (x *TopicBase) GetId() string
- func (x *TopicBase) GetLastReplyAt() string
- func (x *TopicBase) GetTitle() string
- func (*TopicBase) ProtoMessage()
- func (x *TopicBase) ProtoReflect() protoreflect.Message
- func (x *TopicBase) Reset()
- func (x *TopicBase) String() string
- func (m *TopicBase) Validate() error
- type TopicBaseValidationError
- type UserBase
- func (*UserBase) Descriptor() ([]byte, []int)deprecated
- func (x *UserBase) GetAvatarUrl() string
- func (x *UserBase) GetLoginname() string
- func (*UserBase) ProtoMessage()
- func (x *UserBase) ProtoReflect() protoreflect.Message
- func (x *UserBase) Reset()
- func (x *UserBase) String() string
- func (m *UserBase) Validate() error
- type UserBaseValidationError
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type TopicBase ¶
type TopicBase struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Author *UserBase `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` LastReplyAt string `protobuf:"bytes,4,opt,name=last_reply_at,json=lastReplyAt,proto3" json:"last_reply_at,omitempty"` // contains filtered or unexported fields }
func (*TopicBase) Descriptor
deprecated
func (*TopicBase) GetLastReplyAt ¶
func (*TopicBase) ProtoMessage ¶
func (*TopicBase) ProtoMessage()
func (*TopicBase) ProtoReflect ¶
func (x *TopicBase) ProtoReflect() protoreflect.Message
type TopicBaseValidationError ¶
type TopicBaseValidationError struct {
// contains filtered or unexported fields
}
TopicBaseValidationError is the validation error returned by TopicBase.Validate if the designated constraints aren't met.
func (TopicBaseValidationError) Cause ¶
func (e TopicBaseValidationError) Cause() error
Cause function returns cause value.
func (TopicBaseValidationError) Error ¶
func (e TopicBaseValidationError) Error() string
Error satisfies the builtin error interface
func (TopicBaseValidationError) ErrorName ¶
func (e TopicBaseValidationError) ErrorName() string
ErrorName returns error name.
func (TopicBaseValidationError) Field ¶
func (e TopicBaseValidationError) Field() string
Field function returns field value.
func (TopicBaseValidationError) Key ¶
func (e TopicBaseValidationError) Key() bool
Key function returns key value.
func (TopicBaseValidationError) Reason ¶
func (e TopicBaseValidationError) Reason() string
Reason function returns reason value.
type UserBase ¶
type UserBase struct { Loginname string `protobuf:"bytes,1,opt,name=loginname,proto3" json:"loginname,omitempty"` AvatarUrl string `protobuf:"bytes,2,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // contains filtered or unexported fields }
func (*UserBase) Descriptor
deprecated
func (*UserBase) GetAvatarUrl ¶
func (*UserBase) GetLoginname ¶
func (*UserBase) ProtoMessage ¶
func (*UserBase) ProtoMessage()
func (*UserBase) ProtoReflect ¶
func (x *UserBase) ProtoReflect() protoreflect.Message
type UserBaseValidationError ¶
type UserBaseValidationError struct {
// contains filtered or unexported fields
}
UserBaseValidationError is the validation error returned by UserBase.Validate if the designated constraints aren't met.
func (UserBaseValidationError) Cause ¶
func (e UserBaseValidationError) Cause() error
Cause function returns cause value.
func (UserBaseValidationError) Error ¶
func (e UserBaseValidationError) Error() string
Error satisfies the builtin error interface
func (UserBaseValidationError) ErrorName ¶
func (e UserBaseValidationError) ErrorName() string
ErrorName returns error name.
func (UserBaseValidationError) Field ¶
func (e UserBaseValidationError) Field() string
Field function returns field value.
func (UserBaseValidationError) Key ¶
func (e UserBaseValidationError) Key() bool
Key function returns key value.
func (UserBaseValidationError) Reason ¶
func (e UserBaseValidationError) Reason() string
Reason function returns reason value.