Documentation
¶
Index ¶
- Variables
- type Post
- func (*Post) Descriptor() ([]byte, []int)deprecated
- func (x *Post) GetId() int64
- func (x *Post) GetOwnerId() int64
- func (x *Post) GetPinnerIds() []int64
- func (x *Post) GetPublished() bool
- func (x *Post) GetTitle() string
- func (*Post) ProtoMessage()
- func (x *Post) ProtoReflect() protoreflect.Message
- func (x *Post) Reset()
- func (x *Post) String() string
- type Tag
- func (*Tag) Descriptor() ([]byte, []int)deprecated
- func (x *Tag) GetId() int64
- func (x *Tag) GetName() string
- func (x *Tag) GetUserIds() []int64
- func (x *Tag) GetUsers() []*User
- func (*Tag) ProtoMessage()
- func (x *Tag) ProtoReflect() protoreflect.Message
- func (x *Tag) Reset()
- func (x *Tag) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetBio() string
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetExpiresAt() *timestamppb.Timestamp
- func (x *User) GetExternalId() string
- func (x *User) GetFullName() string
- func (x *User) GetId() int64
- func (x *User) GetIsPremium() bool
- func (x *User) GetLabels() *structpb.Struct
- func (x *User) GetMetadata() *UserMetadata
- func (x *User) GetName() string
- func (x *User) GetPinnedPost() *Post
- func (x *User) GetPinnedPostId() int64
- func (x *User) GetPostIds() []int64
- func (x *User) GetPosts() []*Post
- func (x *User) GetScore() int64
- func (x *User) GetSettings() *structpb.Struct
- func (x *User) GetStatus() UserStatus
- func (x *User) GetSubscriptionDuration() *durationpb.Duration
- func (x *User) GetTagIds() []int64
- func (x *User) GetTagNames() []string
- func (x *User) GetTags() []*Tag
- func (x *User) GetUpdatedAt() *timestamppb.Timestamp
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserMetadata
- type UserStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UserStatus_name = map[int32]string{ 0: "USER_STATUS_UNSPECIFIED", 1: "USER_STATUS_ACTIVE", 2: "USER_STATUS_INACTIVE", } UserStatus_value = map[string]int32{ "USER_STATUS_UNSPECIFIED": 0, "USER_STATUS_ACTIVE": 1, "USER_STATUS_INACTIVE": 2, } )
Enum value maps for UserStatus.
View Source
var File_entpb_ent_messages_proto protoreflect.FileDescriptor
View Source
var File_entpb_user_metadata_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Post ¶
type Post struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
OwnerId int64 `protobuf:"varint,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
PinnerIds []int64 `protobuf:"varint,3,rep,packed,name=pinner_ids,json=pinnerIds,proto3" json:"pinner_ids,omitempty"`
Published bool `protobuf:"varint,4,opt,name=published,proto3" json:"published,omitempty"`
Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
// contains filtered or unexported fields
}
func (*Post) Descriptor
deprecated
func (*Post) GetOwnerId ¶
func (*Post) GetPinnerIds ¶
func (*Post) GetPublished ¶
func (*Post) ProtoMessage ¶
func (*Post) ProtoMessage()
func (*Post) ProtoReflect ¶
func (x *Post) ProtoReflect() protoreflect.Message
type Tag ¶
type Tag struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
UserIds []int64 `protobuf:"varint,3,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"`
// contains filtered or unexported fields
}
func (*Tag) Descriptor
deprecated
func (*Tag) GetUserIds ¶
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) ProtoReflect ¶
func (x *Tag) ProtoReflect() protoreflect.Message
type User ¶
type User struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Bio *string `protobuf:"bytes,2,opt,name=bio,proto3,oneof" json:"bio,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
FullName string `protobuf:"bytes,5,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
IsPremium bool `protobuf:"varint,6,opt,name=is_premium,json=isPremium,proto3" json:"is_premium,omitempty"`
Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
PostIds []int64 `protobuf:"varint,8,rep,packed,name=post_ids,json=postIds,proto3" json:"post_ids,omitempty"`
Score *int64 `protobuf:"varint,9,opt,name=score,proto3,oneof" json:"score,omitempty"`
Status UserStatus `protobuf:"varint,10,opt,name=status,proto3,enum=entpb.UserStatus" json:"status,omitempty"`
ExternalId string `protobuf:"bytes,11,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
SubscriptionDuration *durationpb.Duration `protobuf:"bytes,12,opt,name=subscription_duration,json=subscriptionDuration,proto3" json:"subscription_duration,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
PinnedPostId int64 `protobuf:"varint,14,opt,name=pinned_post_id,json=pinnedPostId,proto3" json:"pinned_post_id,omitempty"`
TagIds []int64 `protobuf:"varint,15,rep,packed,name=tag_ids,json=tagIds,proto3" json:"tag_ids,omitempty"`
PinnedPost *Post `protobuf:"bytes,16,opt,name=pinned_post,json=pinnedPost,proto3" json:"pinned_post,omitempty"`
Posts []*Post `protobuf:"bytes,17,rep,name=posts,proto3" json:"posts,omitempty"`
Tags []*Tag `protobuf:"bytes,18,rep,name=tags,proto3" json:"tags,omitempty"`
Settings *structpb.Struct `protobuf:"bytes,19,opt,name=settings,proto3" json:"settings,omitempty"`
Labels *structpb.Struct `protobuf:"bytes,20,opt,name=labels,proto3" json:"labels,omitempty"`
TagNames []string `protobuf:"bytes,21,rep,name=tag_names,json=tagNames,proto3" json:"tag_names,omitempty"`
Metadata *UserMetadata `protobuf:"bytes,22,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
func (*User) Descriptor
deprecated
func (*User) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetExpiresAt ¶
func (x *User) GetExpiresAt() *timestamppb.Timestamp
func (*User) GetExternalId ¶
func (*User) GetFullName ¶
func (*User) GetIsPremium ¶
func (*User) GetMetadata ¶
func (x *User) GetMetadata() *UserMetadata
func (*User) GetPinnedPost ¶
func (*User) GetPinnedPostId ¶
func (*User) GetPostIds ¶
func (*User) GetSettings ¶
func (*User) GetStatus ¶
func (x *User) GetStatus() UserStatus
func (*User) GetSubscriptionDuration ¶
func (x *User) GetSubscriptionDuration() *durationpb.Duration
func (*User) GetTagNames ¶
func (*User) GetUpdatedAt ¶
func (x *User) GetUpdatedAt() *timestamppb.Timestamp
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserMetadata ¶
type UserMetadata struct {
Links []string `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"`
// contains filtered or unexported fields
}
func (*UserMetadata) Descriptor
deprecated
func (*UserMetadata) Descriptor() ([]byte, []int)
Deprecated: Use UserMetadata.ProtoReflect.Descriptor instead.
func (*UserMetadata) GetLinks ¶
func (x *UserMetadata) GetLinks() []string
func (*UserMetadata) ProtoMessage ¶
func (*UserMetadata) ProtoMessage()
func (*UserMetadata) ProtoReflect ¶
func (x *UserMetadata) ProtoReflect() protoreflect.Message
func (*UserMetadata) Reset ¶
func (x *UserMetadata) Reset()
func (*UserMetadata) String ¶
func (x *UserMetadata) String() string
type UserStatus ¶
type UserStatus int32
const ( UserStatus_USER_STATUS_UNSPECIFIED UserStatus = 0 UserStatus_USER_STATUS_ACTIVE UserStatus = 1 UserStatus_USER_STATUS_INACTIVE UserStatus = 2 )
func (UserStatus) Descriptor ¶
func (UserStatus) Descriptor() protoreflect.EnumDescriptor
func (UserStatus) Enum ¶
func (x UserStatus) Enum() *UserStatus
func (UserStatus) EnumDescriptor
deprecated
func (UserStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserStatus.Descriptor instead.
func (UserStatus) Number ¶
func (x UserStatus) Number() protoreflect.EnumNumber
func (UserStatus) String ¶
func (x UserStatus) String() string
func (UserStatus) Type ¶
func (UserStatus) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.