userapi

package
v0.0.0-...-75ca6bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2020 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCrudUsersServer

func RegisterCrudUsersServer(s *grpc.Server, srv CrudUsersServer)

Types

type ClearNotifsRequest

type ClearNotifsRequest struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ClearNotifsRequest holds the id of the user whose both unread and read notifications will be deleted

func (*ClearNotifsRequest) Descriptor

func (*ClearNotifsRequest) Descriptor() ([]byte, []int)

func (*ClearNotifsRequest) GetUserId

func (m *ClearNotifsRequest) GetUserId() string

func (*ClearNotifsRequest) ProtoMessage

func (*ClearNotifsRequest) ProtoMessage()

func (*ClearNotifsRequest) Reset

func (m *ClearNotifsRequest) Reset()

func (*ClearNotifsRequest) String

func (m *ClearNotifsRequest) String() string

func (*ClearNotifsRequest) XXX_DiscardUnknown

func (m *ClearNotifsRequest) XXX_DiscardUnknown()

func (*ClearNotifsRequest) XXX_Marshal

func (m *ClearNotifsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClearNotifsRequest) XXX_Merge

func (m *ClearNotifsRequest) XXX_Merge(src proto.Message)

func (*ClearNotifsRequest) XXX_Size

func (m *ClearNotifsRequest) XXX_Size() int

func (*ClearNotifsRequest) XXX_Unmarshal

func (m *ClearNotifsRequest) XXX_Unmarshal(b []byte) error

type ClearNotifsResponse

type ClearNotifsResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClearNotifsResponse) Descriptor

func (*ClearNotifsResponse) Descriptor() ([]byte, []int)

func (*ClearNotifsResponse) ProtoMessage

func (*ClearNotifsResponse) ProtoMessage()

func (*ClearNotifsResponse) Reset

func (m *ClearNotifsResponse) Reset()

func (*ClearNotifsResponse) String

func (m *ClearNotifsResponse) String() string

func (*ClearNotifsResponse) XXX_DiscardUnknown

func (m *ClearNotifsResponse) XXX_DiscardUnknown()

func (*ClearNotifsResponse) XXX_Marshal

func (m *ClearNotifsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClearNotifsResponse) XXX_Merge

func (m *ClearNotifsResponse) XXX_Merge(src proto.Message)

func (*ClearNotifsResponse) XXX_Size

func (m *ClearNotifsResponse) XXX_Size() int

func (*ClearNotifsResponse) XXX_Unmarshal

func (m *ClearNotifsResponse) XXX_Unmarshal(b []byte) error

type CommentRequest

type CommentRequest struct {
	UserId               string           `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Ctx                  *context.Comment `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*CommentRequest) Descriptor

func (*CommentRequest) Descriptor() ([]byte, []int)

func (*CommentRequest) GetCtx

func (m *CommentRequest) GetCtx() *context.Comment

func (*CommentRequest) GetUserId

func (m *CommentRequest) GetUserId() string

func (*CommentRequest) ProtoMessage

func (*CommentRequest) ProtoMessage()

func (*CommentRequest) Reset

func (m *CommentRequest) Reset()

func (*CommentRequest) String

func (m *CommentRequest) String() string

func (*CommentRequest) XXX_DiscardUnknown

func (m *CommentRequest) XXX_DiscardUnknown()

func (*CommentRequest) XXX_Marshal

func (m *CommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommentRequest) XXX_Merge

func (m *CommentRequest) XXX_Merge(src proto.Message)

func (*CommentRequest) XXX_Size

func (m *CommentRequest) XXX_Size() int

func (*CommentRequest) XXX_Unmarshal

func (m *CommentRequest) XXX_Unmarshal(b []byte) error

type CommentResponse

type CommentResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CommentResponse) Descriptor

func (*CommentResponse) Descriptor() ([]byte, []int)

func (*CommentResponse) ProtoMessage

func (*CommentResponse) ProtoMessage()

func (*CommentResponse) Reset

func (m *CommentResponse) Reset()

func (*CommentResponse) String

func (m *CommentResponse) String() string

func (*CommentResponse) XXX_DiscardUnknown

func (m *CommentResponse) XXX_DiscardUnknown()

func (*CommentResponse) XXX_Marshal

func (m *CommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommentResponse) XXX_Merge

func (m *CommentResponse) XXX_Merge(src proto.Message)

func (*CommentResponse) XXX_Size

func (m *CommentResponse) XXX_Size() int

func (*CommentResponse) XXX_Unmarshal

func (m *CommentResponse) XXX_Unmarshal(b []byte) error

type CreateThreadRequest

type CreateThreadRequest struct {
	UserId               string               `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Ctx                  *context.Thread      `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"`
	PublishDate          *timestamp.Timestamp `protobuf:"bytes,3,opt,name=publish_date,json=publishDate,proto3" json:"publish_date,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*CreateThreadRequest) Descriptor

func (*CreateThreadRequest) Descriptor() ([]byte, []int)

func (*CreateThreadRequest) GetCtx

func (m *CreateThreadRequest) GetCtx() *context.Thread

func (*CreateThreadRequest) GetPublishDate

func (m *CreateThreadRequest) GetPublishDate() *timestamp.Timestamp

func (*CreateThreadRequest) GetUserId

func (m *CreateThreadRequest) GetUserId() string

func (*CreateThreadRequest) ProtoMessage

func (*CreateThreadRequest) ProtoMessage()

func (*CreateThreadRequest) Reset

func (m *CreateThreadRequest) Reset()

func (*CreateThreadRequest) String

func (m *CreateThreadRequest) String() string

func (*CreateThreadRequest) XXX_DiscardUnknown

func (m *CreateThreadRequest) XXX_DiscardUnknown()

func (*CreateThreadRequest) XXX_Marshal

func (m *CreateThreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateThreadRequest) XXX_Merge

func (m *CreateThreadRequest) XXX_Merge(src proto.Message)

func (*CreateThreadRequest) XXX_Size

func (m *CreateThreadRequest) XXX_Size() int

func (*CreateThreadRequest) XXX_Unmarshal

func (m *CreateThreadRequest) XXX_Unmarshal(b []byte) error

type CreateThreadResponse

type CreateThreadResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateThreadResponse) Descriptor

func (*CreateThreadResponse) Descriptor() ([]byte, []int)

func (*CreateThreadResponse) ProtoMessage

func (*CreateThreadResponse) ProtoMessage()

func (*CreateThreadResponse) Reset

func (m *CreateThreadResponse) Reset()

func (*CreateThreadResponse) String

func (m *CreateThreadResponse) String() string

func (*CreateThreadResponse) XXX_DiscardUnknown

func (m *CreateThreadResponse) XXX_DiscardUnknown()

func (*CreateThreadResponse) XXX_Marshal

func (m *CreateThreadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateThreadResponse) XXX_Merge

func (m *CreateThreadResponse) XXX_Merge(src proto.Message)

func (*CreateThreadResponse) XXX_Size

func (m *CreateThreadResponse) XXX_Size() int

func (*CreateThreadResponse) XXX_Unmarshal

func (m *CreateThreadResponse) XXX_Unmarshal(b []byte) error

type CrudUsersClient

type CrudUsersClient interface {
	// Get a user's basic data to be displayed in the header navigation section.
	GetUserHeaderData(ctx context1.Context, in *GetBasicUserDataRequest, opts ...grpc.CallOption) (*UserHeaderData, error)
	// Update a user's basic data.
	UpdateBasicUserData(ctx context1.Context, in *UpdateBasicUserDataRequest, opts ...grpc.CallOption) (*UpdateBasicUserDataResponse, error)
	// Get a user's basic data to be dislayed in page.
	GetBasicUserData(ctx context1.Context, in *GetBasicUserDataRequest, opts ...grpc.CallOption) (*dataformat.BasicUserData, error)
	// Get the list of users followed by a given user.
	GetUserFollowingIds(ctx context1.Context, in *GetBasicUserDataRequest, opts ...grpc.CallOption) (*UserList, error)
	// Mark unread notifications as read.
	MarkAllAsRead(ctx context1.Context, in *ReadNotifsRequest, opts ...grpc.CallOption) (*ReadNotifsResponse, error)
	// Clear all the notifications.
	ClearNotifs(ctx context1.Context, in *ClearNotifsRequest, opts ...grpc.CallOption) (*ClearNotifsResponse, error)
	// Follow a user.
	FollowUser(ctx context1.Context, in *FollowUserRequest, opts ...grpc.CallOption) (*FollowUserResponse, error)
	// Unfollow a user.
	UnfollowUser(ctx context1.Context, in *UnfollowUserRequest, opts ...grpc.CallOption) (*UnfollowUserResponse, error)
	// Request to save thread.
	SaveThread(ctx context1.Context, in *SaveThreadRequest, opts ...grpc.CallOption) (*SaveThreadResponse, error)
	// Remove reference to thread from list of saved threads of user.
	RemoveSaved(ctx context1.Context, in *RemoveSavedRequest, opts ...grpc.CallOption) (*RemoveSavedResponse, error)
	// Get either following or followers users' basic data.
	ViewUsers(ctx context1.Context, in *ViewUsersRequest, opts ...grpc.CallOption) (*ViewUsersResponse, error)
	// Get username basic data, following, followers and threads created.
	ViewUserByUsername(ctx context1.Context, in *ViewUserByUsernameRequest, opts ...grpc.CallOption) (*ViewUserResponse, error)
	// Get dashboard data for a given user.
	GetDashboardData(ctx context1.Context, in *GetDashboardDataRequest, opts ...grpc.CallOption) (*DashboardData, error)
	// Validate user credentials to login.
	Login(ctx context1.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	// Register new user.
	RegisterUser(ctx context1.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*RegisterUserResponse, error)
	// SaveNotif updates the given notification if it was already there, or appends
	// it to the list of unread notifications of the given user.
	// If the notification was in the list of read notifications, it removes it from
	// there.
	SaveNotif(ctx context1.Context, in *cheroapi.NotifyUser, opts ...grpc.CallOption) (*SaveNotifResponse, error)
	// Append thread to list of recent activity of user.
	CreateThread(ctx context1.Context, in *CreateThreadRequest, opts ...grpc.CallOption) (*CreateThreadResponse, error)
	// Append comment to list of recent activity of user.
	Comment(ctx context1.Context, in *CommentRequest, opts ...grpc.CallOption) (*CommentResponse, error)
	// Append subcomment to list of recent activity of user.
	Subcomment(ctx context1.Context, in *SubcommentRequest, opts ...grpc.CallOption) (*SubcommentResponse, error)
	// Move thread from recent activity of user to list of old activity.
	OldThread(ctx context1.Context, in *OldThreadRequest, opts ...grpc.CallOption) (*OldThreadResponse, error)
	// Move comment from recent activity of user to list of old activity.
	OldComment(ctx context1.Context, in *OldCommentRequest, opts ...grpc.CallOption) (*OldCommentResponse, error)
	// Move subcomment from recent activity of user to list of old activity.
	OldSubcomment(ctx context1.Context, in *OldSubcommentRequest, opts ...grpc.CallOption) (*OldSubcommentResponse, error)
	// Remove reference to thread from list of activity of user.
	DeleteThread(ctx context1.Context, in *DeleteThreadRequest, opts ...grpc.CallOption) (*DeleteThreadResponse, error)
	// Remove reference to comment from list of activity of user.
	DeleteComment(ctx context1.Context, in *DeleteCommentRequest, opts ...grpc.CallOption) (*DeleteCommentResponse, error)
	// Remove reference to subcomment from list of activity of user.
	DeleteSubcomment(ctx context1.Context, in *DeleteSubcommentRequest, opts ...grpc.CallOption) (*DeleteSubcommentResponse, error)
	// Get the recent activity of a user.
	RecentActivity(ctx context1.Context, in *RecentActivityRequest, opts ...grpc.CallOption) (*RecentActivityResponse, error)
	// Get saved threads of a user.
	SavedThreads(ctx context1.Context, in *SavedThreadsRequest, opts ...grpc.CallOption) (*SavedThreadsResponse, error)
}

CrudUsersClient is the client API for CrudUsers service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCrudUsersClient

func NewCrudUsersClient(cc grpc.ClientConnInterface) CrudUsersClient

type CrudUsersServer

type CrudUsersServer interface {
	// Get a user's basic data to be displayed in the header navigation section.
	GetUserHeaderData(context1.Context, *GetBasicUserDataRequest) (*UserHeaderData, error)
	// Update a user's basic data.
	UpdateBasicUserData(context1.Context, *UpdateBasicUserDataRequest) (*UpdateBasicUserDataResponse, error)
	// Get a user's basic data to be dislayed in page.
	GetBasicUserData(context1.Context, *GetBasicUserDataRequest) (*dataformat.BasicUserData, error)
	// Get the list of users followed by a given user.
	GetUserFollowingIds(context1.Context, *GetBasicUserDataRequest) (*UserList, error)
	// Mark unread notifications as read.
	MarkAllAsRead(context1.Context, *ReadNotifsRequest) (*ReadNotifsResponse, error)
	// Clear all the notifications.
	ClearNotifs(context1.Context, *ClearNotifsRequest) (*ClearNotifsResponse, error)
	// Follow a user.
	FollowUser(context1.Context, *FollowUserRequest) (*FollowUserResponse, error)
	// Unfollow a user.
	UnfollowUser(context1.Context, *UnfollowUserRequest) (*UnfollowUserResponse, error)
	// Request to save thread.
	SaveThread(context1.Context, *SaveThreadRequest) (*SaveThreadResponse, error)
	// Remove reference to thread from list of saved threads of user.
	RemoveSaved(context1.Context, *RemoveSavedRequest) (*RemoveSavedResponse, error)
	// Get either following or followers users' basic data.
	ViewUsers(context1.Context, *ViewUsersRequest) (*ViewUsersResponse, error)
	// Get username basic data, following, followers and threads created.
	ViewUserByUsername(context1.Context, *ViewUserByUsernameRequest) (*ViewUserResponse, error)
	// Get dashboard data for a given user.
	GetDashboardData(context1.Context, *GetDashboardDataRequest) (*DashboardData, error)
	// Validate user credentials to login.
	Login(context1.Context, *LoginRequest) (*LoginResponse, error)
	// Register new user.
	RegisterUser(context1.Context, *RegisterUserRequest) (*RegisterUserResponse, error)
	// SaveNotif updates the given notification if it was already there, or appends
	// it to the list of unread notifications of the given user.
	// If the notification was in the list of read notifications, it removes it from
	// there.
	SaveNotif(context1.Context, *cheroapi.NotifyUser) (*SaveNotifResponse, error)
	// Append thread to list of recent activity of user.
	CreateThread(context1.Context, *CreateThreadRequest) (*CreateThreadResponse, error)
	// Append comment to list of recent activity of user.
	Comment(context1.Context, *CommentRequest) (*CommentResponse, error)
	// Append subcomment to list of recent activity of user.
	Subcomment(context1.Context, *SubcommentRequest) (*SubcommentResponse, error)
	// Move thread from recent activity of user to list of old activity.
	OldThread(context1.Context, *OldThreadRequest) (*OldThreadResponse, error)
	// Move comment from recent activity of user to list of old activity.
	OldComment(context1.Context, *OldCommentRequest) (*OldCommentResponse, error)
	// Move subcomment from recent activity of user to list of old activity.
	OldSubcomment(context1.Context, *OldSubcommentRequest) (*OldSubcommentResponse, error)
	// Remove reference to thread from list of activity of user.
	DeleteThread(context1.Context, *DeleteThreadRequest) (*DeleteThreadResponse, error)
	// Remove reference to comment from list of activity of user.
	DeleteComment(context1.Context, *DeleteCommentRequest) (*DeleteCommentResponse, error)
	// Remove reference to subcomment from list of activity of user.
	DeleteSubcomment(context1.Context, *DeleteSubcommentRequest) (*DeleteSubcommentResponse, error)
	// Get the recent activity of a user.
	RecentActivity(context1.Context, *RecentActivityRequest) (*RecentActivityResponse, error)
	// Get saved threads of a user.
	SavedThreads(context1.Context, *SavedThreadsRequest) (*SavedThreadsResponse, error)
}

CrudUsersServer is the server API for CrudUsers service.

type DashboardData

type DashboardData struct {
	UserHeaderData *UserHeaderData `protobuf:"bytes,1,opt,name=user_header_data,json=userHeaderData,proto3" json:"user_header_data,omitempty"`
	// ids of users that are following this user.
	FollowersIds []string `protobuf:"bytes,2,rep,name=followers_ids,json=followersIds,proto3" json:"followers_ids,omitempty"`
	// ids of users that this user is following.
	FollowingIds         []string `protobuf:"bytes,3,rep,name=following_ids,json=followingIds,proto3" json:"following_ids,omitempty"`
	SavedThreads         uint32   `protobuf:"varint,4,opt,name=saved_threads,json=savedThreads,proto3" json:"saved_threads,omitempty"`
	UserId               string   `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DashboardData holds the header data, the list of users this user is following, the list of users that are following this user. the num of threads saved by the user and the user id.

func (*DashboardData) Descriptor

func (*DashboardData) Descriptor() ([]byte, []int)

func (*DashboardData) GetFollowersIds

func (m *DashboardData) GetFollowersIds() []string

func (*DashboardData) GetFollowingIds

func (m *DashboardData) GetFollowingIds() []string

func (*DashboardData) GetSavedThreads

func (m *DashboardData) GetSavedThreads() uint32

func (*DashboardData) GetUserHeaderData

func (m *DashboardData) GetUserHeaderData() *UserHeaderData

func (*DashboardData) GetUserId

func (m *DashboardData) GetUserId() string

func (*DashboardData) ProtoMessage

func (*DashboardData) ProtoMessage()

func (*DashboardData) Reset

func (m *DashboardData) Reset()

func (*DashboardData) String

func (m *DashboardData) String() string

func (*DashboardData) XXX_DiscardUnknown

func (m *DashboardData) XXX_DiscardUnknown()

func (*DashboardData) XXX_Marshal

func (m *DashboardData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DashboardData) XXX_Merge

func (m *DashboardData) XXX_Merge(src proto.Message)

func (*DashboardData) XXX_Size

func (m *DashboardData) XXX_Size() int

func (*DashboardData) XXX_Unmarshal

func (m *DashboardData) XXX_Unmarshal(b []byte) error

type DeleteCommentRequest

type DeleteCommentRequest struct {
	UserId               string           `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Ctx                  *context.Comment `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*DeleteCommentRequest) Descriptor

func (*DeleteCommentRequest) Descriptor() ([]byte, []int)

func (*DeleteCommentRequest) GetCtx

func (m *DeleteCommentRequest) GetCtx() *context.Comment

func (*DeleteCommentRequest) GetUserId

func (m *DeleteCommentRequest) GetUserId() string

func (*DeleteCommentRequest) ProtoMessage

func (*DeleteCommentRequest) ProtoMessage()

func (*DeleteCommentRequest) Reset

func (m *DeleteCommentRequest) Reset()

func (*DeleteCommentRequest) String

func (m *DeleteCommentRequest) String() string

func (*DeleteCommentRequest) XXX_DiscardUnknown

func (m *DeleteCommentRequest) XXX_DiscardUnknown()

func (*DeleteCommentRequest) XXX_Marshal

func (m *DeleteCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteCommentRequest) XXX_Merge

func (m *DeleteCommentRequest) XXX_Merge(src proto.Message)

func (*DeleteCommentRequest) XXX_Size

func (m *DeleteCommentRequest) XXX_Size() int

func (*DeleteCommentRequest) XXX_Unmarshal

func (m *DeleteCommentRequest) XXX_Unmarshal(b []byte) error

type DeleteCommentResponse

type DeleteCommentResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteCommentResponse) Descriptor

func (*DeleteCommentResponse) Descriptor() ([]byte, []int)

func (*DeleteCommentResponse) ProtoMessage

func (*DeleteCommentResponse) ProtoMessage()

func (*DeleteCommentResponse) Reset

func (m *DeleteCommentResponse) Reset()

func (*DeleteCommentResponse) String

func (m *DeleteCommentResponse) String() string

func (*DeleteCommentResponse) XXX_DiscardUnknown

func (m *DeleteCommentResponse) XXX_DiscardUnknown()

func (*DeleteCommentResponse) XXX_Marshal

func (m *DeleteCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteCommentResponse) XXX_Merge

func (m *DeleteCommentResponse) XXX_Merge(src proto.Message)

func (*DeleteCommentResponse) XXX_Size

func (m *DeleteCommentResponse) XXX_Size() int

func (*DeleteCommentResponse) XXX_Unmarshal

func (m *DeleteCommentResponse) XXX_Unmarshal(b []byte) error

type DeleteSubcommentRequest

type DeleteSubcommentRequest struct {
	UserId               string              `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Ctx                  *context.Subcomment `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*DeleteSubcommentRequest) Descriptor

func (*DeleteSubcommentRequest) Descriptor() ([]byte, []int)

func (*DeleteSubcommentRequest) GetCtx

func (*DeleteSubcommentRequest) GetUserId

func (m *DeleteSubcommentRequest) GetUserId() string

func (*DeleteSubcommentRequest) ProtoMessage

func (*DeleteSubcommentRequest) ProtoMessage()

func (*DeleteSubcommentRequest) Reset

func (m *DeleteSubcommentRequest) Reset()

func (*DeleteSubcommentRequest) String

func (m *DeleteSubcommentRequest) String() string

func (*DeleteSubcommentRequest) XXX_DiscardUnknown

func (m *DeleteSubcommentRequest) XXX_DiscardUnknown()

func (*DeleteSubcommentRequest) XXX_Marshal

func (m *DeleteSubcommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteSubcommentRequest) XXX_Merge

func (m *DeleteSubcommentRequest) XXX_Merge(src proto.Message)

func (*DeleteSubcommentRequest) XXX_Size

func (m *DeleteSubcommentRequest) XXX_Size() int

func (*DeleteSubcommentRequest) XXX_Unmarshal

func (m *DeleteSubcommentRequest) XXX_Unmarshal(b []byte) error

type DeleteSubcommentResponse

type DeleteSubcommentResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteSubcommentResponse) Descriptor

func (*DeleteSubcommentResponse) Descriptor() ([]byte, []int)

func (*DeleteSubcommentResponse) ProtoMessage

func (*DeleteSubcommentResponse) ProtoMessage()

func (*DeleteSubcommentResponse) Reset

func (m *DeleteSubcommentResponse) Reset()

func (*DeleteSubcommentResponse) String

func (m *DeleteSubcommentResponse) String() string

func (*DeleteSubcommentResponse) XXX_DiscardUnknown

func (m *DeleteSubcommentResponse) XXX_DiscardUnknown()

func (*DeleteSubcommentResponse) XXX_Marshal

func (m *DeleteSubcommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteSubcommentResponse) XXX_Merge

func (m *DeleteSubcommentResponse) XXX_Merge(src proto.Message)

func (*DeleteSubcommentResponse) XXX_Size

func (m *DeleteSubcommentResponse) XXX_Size() int

func (*DeleteSubcommentResponse) XXX_Unmarshal

func (m *DeleteSubcommentResponse) XXX_Unmarshal(b []byte) error

type DeleteThreadRequest

type DeleteThreadRequest struct {
	UserId               string          `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Ctx                  *context.Thread `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*DeleteThreadRequest) Descriptor

func (*DeleteThreadRequest) Descriptor() ([]byte, []int)

func (*DeleteThreadRequest) GetCtx

func (m *DeleteThreadRequest) GetCtx() *context.Thread

func (*DeleteThreadRequest) GetUserId

func (m *DeleteThreadRequest) GetUserId() string

func (*DeleteThreadRequest) ProtoMessage

func (*DeleteThreadRequest) ProtoMessage()

func (*DeleteThreadRequest) Reset

func (m *DeleteThreadRequest) Reset()

func (*DeleteThreadRequest) String

func (m *DeleteThreadRequest) String() string

func (*DeleteThreadRequest) XXX_DiscardUnknown

func (m *DeleteThreadRequest) XXX_DiscardUnknown()

func (*DeleteThreadRequest) XXX_Marshal

func (m *DeleteThreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteThreadRequest) XXX_Merge

func (m *DeleteThreadRequest) XXX_Merge(src proto.Message)

func (*DeleteThreadRequest) XXX_Size

func (m *DeleteThreadRequest) XXX_Size() int

func (*DeleteThreadRequest) XXX_Unmarshal

func (m *DeleteThreadRequest) XXX_Unmarshal(b []byte) error

type DeleteThreadResponse

type DeleteThreadResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteThreadResponse) Descriptor

func (*DeleteThreadResponse) Descriptor() ([]byte, []int)

func (*DeleteThreadResponse) ProtoMessage

func (*DeleteThreadResponse) ProtoMessage()

func (*DeleteThreadResponse) Reset

func (m *DeleteThreadResponse) Reset()

func (*DeleteThreadResponse) String

func (m *DeleteThreadResponse) String() string

func (*DeleteThreadResponse) XXX_DiscardUnknown

func (m *DeleteThreadResponse) XXX_DiscardUnknown()

func (*DeleteThreadResponse) XXX_Marshal

func (m *DeleteThreadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteThreadResponse) XXX_Merge

func (m *DeleteThreadResponse) XXX_Merge(src proto.Message)

func (*DeleteThreadResponse) XXX_Size

func (m *DeleteThreadResponse) XXX_Size() int

func (*DeleteThreadResponse) XXX_Unmarshal

func (m *DeleteThreadResponse) XXX_Unmarshal(b []byte) error

type FollowUserRequest

type FollowUserRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// user_to_follow indicates the username
	UserToFollow         string   `protobuf:"bytes,2,opt,name=user_to_follow,json=userToFollow,proto3" json:"user_to_follow,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

FollowUserRequest holds the id of the user which is following and the username of the user being followed

func (*FollowUserRequest) Descriptor

func (*FollowUserRequest) Descriptor() ([]byte, []int)

func (*FollowUserRequest) GetUserId

func (m *FollowUserRequest) GetUserId() string

func (*FollowUserRequest) GetUserToFollow

func (m *FollowUserRequest) GetUserToFollow() string

func (*FollowUserRequest) ProtoMessage

func (*FollowUserRequest) ProtoMessage()

func (*FollowUserRequest) Reset

func (m *FollowUserRequest) Reset()

func (*FollowUserRequest) String

func (m *FollowUserRequest) String() string

func (*FollowUserRequest) XXX_DiscardUnknown

func (m *FollowUserRequest) XXX_DiscardUnknown()

func (*FollowUserRequest) XXX_Marshal

func (m *FollowUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FollowUserRequest) XXX_Merge

func (m *FollowUserRequest) XXX_Merge(src proto.Message)

func (*FollowUserRequest) XXX_Size

func (m *FollowUserRequest) XXX_Size() int

func (*FollowUserRequest) XXX_Unmarshal

func (m *FollowUserRequest) XXX_Unmarshal(b []byte) error

type FollowUserResponse

type FollowUserResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FollowUserResponse) Descriptor

func (*FollowUserResponse) Descriptor() ([]byte, []int)

func (*FollowUserResponse) ProtoMessage

func (*FollowUserResponse) ProtoMessage()

func (*FollowUserResponse) Reset

func (m *FollowUserResponse) Reset()

func (*FollowUserResponse) String

func (m *FollowUserResponse) String() string

func (*FollowUserResponse) XXX_DiscardUnknown

func (m *FollowUserResponse) XXX_DiscardUnknown()

func (*FollowUserResponse) XXX_Marshal

func (m *FollowUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FollowUserResponse) XXX_Merge

func (m *FollowUserResponse) XXX_Merge(src proto.Message)

func (*FollowUserResponse) XXX_Size

func (m *FollowUserResponse) XXX_Size() int

func (*FollowUserResponse) XXX_Unmarshal

func (m *FollowUserResponse) XXX_Unmarshal(b []byte) error

type GetBasicUserDataRequest

type GetBasicUserDataRequest struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetBasicUserDataRequest holds the id of the user to get its basic data

func (*GetBasicUserDataRequest) Descriptor

func (*GetBasicUserDataRequest) Descriptor() ([]byte, []int)

func (*GetBasicUserDataRequest) GetUserId

func (m *GetBasicUserDataRequest) GetUserId() string

func (*GetBasicUserDataRequest) ProtoMessage

func (*GetBasicUserDataRequest) ProtoMessage()

func (*GetBasicUserDataRequest) Reset

func (m *GetBasicUserDataRequest) Reset()

func (*GetBasicUserDataRequest) String

func (m *GetBasicUserDataRequest) String() string

func (*GetBasicUserDataRequest) XXX_DiscardUnknown

func (m *GetBasicUserDataRequest) XXX_DiscardUnknown()

func (*GetBasicUserDataRequest) XXX_Marshal

func (m *GetBasicUserDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBasicUserDataRequest) XXX_Merge

func (m *GetBasicUserDataRequest) XXX_Merge(src proto.Message)

func (*GetBasicUserDataRequest) XXX_Size

func (m *GetBasicUserDataRequest) XXX_Size() int

func (*GetBasicUserDataRequest) XXX_Unmarshal

func (m *GetBasicUserDataRequest) XXX_Unmarshal(b []byte) error

type GetDashboardDataRequest

type GetDashboardDataRequest struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetDashboardDataRequest holds the user id of the user to request the data for its dashboard.

func (*GetDashboardDataRequest) Descriptor

func (*GetDashboardDataRequest) Descriptor() ([]byte, []int)

func (*GetDashboardDataRequest) GetUserId

func (m *GetDashboardDataRequest) GetUserId() string

func (*GetDashboardDataRequest) ProtoMessage

func (*GetDashboardDataRequest) ProtoMessage()

func (*GetDashboardDataRequest) Reset

func (m *GetDashboardDataRequest) Reset()

func (*GetDashboardDataRequest) String

func (m *GetDashboardDataRequest) String() string

func (*GetDashboardDataRequest) XXX_DiscardUnknown

func (m *GetDashboardDataRequest) XXX_DiscardUnknown()

func (*GetDashboardDataRequest) XXX_Marshal

func (m *GetDashboardDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetDashboardDataRequest) XXX_Merge

func (m *GetDashboardDataRequest) XXX_Merge(src proto.Message)

func (*GetDashboardDataRequest) XXX_Size

func (m *GetDashboardDataRequest) XXX_Size() int

func (*GetDashboardDataRequest) XXX_Unmarshal

func (m *GetDashboardDataRequest) XXX_Unmarshal(b []byte) error

type LoginRequest

type LoginRequest struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password             string   `protobuf:"bytes,150,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

LoginRequest is a message for requesting the validation of a user's credentials

func (*LoginRequest) Descriptor

func (*LoginRequest) Descriptor() ([]byte, []int)

func (*LoginRequest) GetPassword

func (m *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (m *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) Reset

func (m *LoginRequest) Reset()

func (*LoginRequest) String

func (m *LoginRequest) String() string

func (*LoginRequest) XXX_DiscardUnknown

func (m *LoginRequest) XXX_DiscardUnknown()

func (*LoginRequest) XXX_Marshal

func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoginRequest) XXX_Merge

func (m *LoginRequest) XXX_Merge(src proto.Message)

func (*LoginRequest) XXX_Size

func (m *LoginRequest) XXX_Size() int

func (*LoginRequest) XXX_Unmarshal

func (m *LoginRequest) XXX_Unmarshal(b []byte) error

type LoginResponse

type LoginResponse struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

LoginResponse holds the id of the user that just logged in

func (*LoginResponse) Descriptor

func (*LoginResponse) Descriptor() ([]byte, []int)

func (*LoginResponse) GetUserId

func (m *LoginResponse) GetUserId() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) Reset

func (m *LoginResponse) Reset()

func (*LoginResponse) String

func (m *LoginResponse) String() string

func (*LoginResponse) XXX_DiscardUnknown

func (m *LoginResponse) XXX_DiscardUnknown()

func (*LoginResponse) XXX_Marshal

func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoginResponse) XXX_Merge

func (m *LoginResponse) XXX_Merge(src proto.Message)

func (*LoginResponse) XXX_Size

func (m *LoginResponse) XXX_Size() int

func (*LoginResponse) XXX_Unmarshal

func (m *LoginResponse) XXX_Unmarshal(b []byte) error

type OldCommentRequest

type OldCommentRequest struct {
	UserId               string           `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Ctx                  *context.Comment `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*OldCommentRequest) Descriptor

func (*OldCommentRequest) Descriptor() ([]byte, []int)

func (*OldCommentRequest) GetCtx

func (m *OldCommentRequest) GetCtx() *context.Comment

func (*OldCommentRequest) GetUserId

func (m *OldCommentRequest) GetUserId() string

func (*OldCommentRequest) ProtoMessage

func (*OldCommentRequest) ProtoMessage()

func (*OldCommentRequest) Reset

func (m *OldCommentRequest) Reset()

func (*OldCommentRequest) String

func (m *OldCommentRequest) String() string

func (*OldCommentRequest) XXX_DiscardUnknown

func (m *OldCommentRequest) XXX_DiscardUnknown()

func (*OldCommentRequest) XXX_Marshal

func (m *OldCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OldCommentRequest) XXX_Merge

func (m *OldCommentRequest) XXX_Merge(src proto.Message)

func (*OldCommentRequest) XXX_Size

func (m *OldCommentRequest) XXX_Size() int

func (*OldCommentRequest) XXX_Unmarshal

func (m *OldCommentRequest) XXX_Unmarshal(b []byte) error

type OldCommentResponse

type OldCommentResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OldCommentResponse) Descriptor

func (*OldCommentResponse) Descriptor() ([]byte, []int)

func (*OldCommentResponse) ProtoMessage

func (*OldCommentResponse) ProtoMessage()

func (*OldCommentResponse) Reset

func (m *OldCommentResponse) Reset()

func (*OldCommentResponse) String

func (m *OldCommentResponse) String() string

func (*OldCommentResponse) XXX_DiscardUnknown

func (m *OldCommentResponse) XXX_DiscardUnknown()

func (*OldCommentResponse) XXX_Marshal

func (m *OldCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OldCommentResponse) XXX_Merge

func (m *OldCommentResponse) XXX_Merge(src proto.Message)

func (*OldCommentResponse) XXX_Size

func (m *OldCommentResponse) XXX_Size() int

func (*OldCommentResponse) XXX_Unmarshal

func (m *OldCommentResponse) XXX_Unmarshal(b []byte) error

type OldSubcommentRequest

type OldSubcommentRequest struct {
	UserId               string              `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Ctx                  *context.Subcomment `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*OldSubcommentRequest) Descriptor

func (*OldSubcommentRequest) Descriptor() ([]byte, []int)

func (*OldSubcommentRequest) GetCtx

func (*OldSubcommentRequest) GetUserId

func (m *OldSubcommentRequest) GetUserId() string

func (*OldSubcommentRequest) ProtoMessage

func (*OldSubcommentRequest) ProtoMessage()

func (*OldSubcommentRequest) Reset

func (m *OldSubcommentRequest) Reset()

func (*OldSubcommentRequest) String

func (m *OldSubcommentRequest) String() string

func (*OldSubcommentRequest) XXX_DiscardUnknown

func (m *OldSubcommentRequest) XXX_DiscardUnknown()

func (*OldSubcommentRequest) XXX_Marshal

func (m *OldSubcommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OldSubcommentRequest) XXX_Merge

func (m *OldSubcommentRequest) XXX_Merge(src proto.Message)

func (*OldSubcommentRequest) XXX_Size

func (m *OldSubcommentRequest) XXX_Size() int

func (*OldSubcommentRequest) XXX_Unmarshal

func (m *OldSubcommentRequest) XXX_Unmarshal(b []byte) error

type OldSubcommentResponse

type OldSubcommentResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OldSubcommentResponse) Descriptor

func (*OldSubcommentResponse) Descriptor() ([]byte, []int)

func (*OldSubcommentResponse) ProtoMessage

func (*OldSubcommentResponse) ProtoMessage()

func (*OldSubcommentResponse) Reset

func (m *OldSubcommentResponse) Reset()

func (*OldSubcommentResponse) String

func (m *OldSubcommentResponse) String() string

func (*OldSubcommentResponse) XXX_DiscardUnknown

func (m *OldSubcommentResponse) XXX_DiscardUnknown()

func (*OldSubcommentResponse) XXX_Marshal

func (m *OldSubcommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OldSubcommentResponse) XXX_Merge

func (m *OldSubcommentResponse) XXX_Merge(src proto.Message)

func (*OldSubcommentResponse) XXX_Size

func (m *OldSubcommentResponse) XXX_Size() int

func (*OldSubcommentResponse) XXX_Unmarshal

func (m *OldSubcommentResponse) XXX_Unmarshal(b []byte) error

type OldThreadRequest

type OldThreadRequest struct {
	UserId               string          `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Ctx                  *context.Thread `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*OldThreadRequest) Descriptor

func (*OldThreadRequest) Descriptor() ([]byte, []int)

func (*OldThreadRequest) GetCtx

func (m *OldThreadRequest) GetCtx() *context.Thread

func (*OldThreadRequest) GetUserId

func (m *OldThreadRequest) GetUserId() string

func (*OldThreadRequest) ProtoMessage

func (*OldThreadRequest) ProtoMessage()

func (*OldThreadRequest) Reset

func (m *OldThreadRequest) Reset()

func (*OldThreadRequest) String

func (m *OldThreadRequest) String() string

func (*OldThreadRequest) XXX_DiscardUnknown

func (m *OldThreadRequest) XXX_DiscardUnknown()

func (*OldThreadRequest) XXX_Marshal

func (m *OldThreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OldThreadRequest) XXX_Merge

func (m *OldThreadRequest) XXX_Merge(src proto.Message)

func (*OldThreadRequest) XXX_Size

func (m *OldThreadRequest) XXX_Size() int

func (*OldThreadRequest) XXX_Unmarshal

func (m *OldThreadRequest) XXX_Unmarshal(b []byte) error

type OldThreadResponse

type OldThreadResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OldThreadResponse) Descriptor

func (*OldThreadResponse) Descriptor() ([]byte, []int)

func (*OldThreadResponse) ProtoMessage

func (*OldThreadResponse) ProtoMessage()

func (*OldThreadResponse) Reset

func (m *OldThreadResponse) Reset()

func (*OldThreadResponse) String

func (m *OldThreadResponse) String() string

func (*OldThreadResponse) XXX_DiscardUnknown

func (m *OldThreadResponse) XXX_DiscardUnknown()

func (*OldThreadResponse) XXX_Marshal

func (m *OldThreadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OldThreadResponse) XXX_Merge

func (m *OldThreadResponse) XXX_Merge(src proto.Message)

func (*OldThreadResponse) XXX_Size

func (m *OldThreadResponse) XXX_Size() int

func (*OldThreadResponse) XXX_Unmarshal

func (m *OldThreadResponse) XXX_Unmarshal(b []byte) error

type ReadNotifsRequest

type ReadNotifsRequest struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ReadNotifsRequest holds the id of the user whose unread notifications will be marked as read

func (*ReadNotifsRequest) Descriptor

func (*ReadNotifsRequest) Descriptor() ([]byte, []int)

func (*ReadNotifsRequest) GetUserId

func (m *ReadNotifsRequest) GetUserId() string

func (*ReadNotifsRequest) ProtoMessage

func (*ReadNotifsRequest) ProtoMessage()

func (*ReadNotifsRequest) Reset

func (m *ReadNotifsRequest) Reset()

func (*ReadNotifsRequest) String

func (m *ReadNotifsRequest) String() string

func (*ReadNotifsRequest) XXX_DiscardUnknown

func (m *ReadNotifsRequest) XXX_DiscardUnknown()

func (*ReadNotifsRequest) XXX_Marshal

func (m *ReadNotifsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReadNotifsRequest) XXX_Merge

func (m *ReadNotifsRequest) XXX_Merge(src proto.Message)

func (*ReadNotifsRequest) XXX_Size

func (m *ReadNotifsRequest) XXX_Size() int

func (*ReadNotifsRequest) XXX_Unmarshal

func (m *ReadNotifsRequest) XXX_Unmarshal(b []byte) error

type ReadNotifsResponse

type ReadNotifsResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReadNotifsResponse) Descriptor

func (*ReadNotifsResponse) Descriptor() ([]byte, []int)

func (*ReadNotifsResponse) ProtoMessage

func (*ReadNotifsResponse) ProtoMessage()

func (*ReadNotifsResponse) Reset

func (m *ReadNotifsResponse) Reset()

func (*ReadNotifsResponse) String

func (m *ReadNotifsResponse) String() string

func (*ReadNotifsResponse) XXX_DiscardUnknown

func (m *ReadNotifsResponse) XXX_DiscardUnknown()

func (*ReadNotifsResponse) XXX_Marshal

func (m *ReadNotifsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReadNotifsResponse) XXX_Merge

func (m *ReadNotifsResponse) XXX_Merge(src proto.Message)

func (*ReadNotifsResponse) XXX_Size

func (m *ReadNotifsResponse) XXX_Size() int

func (*ReadNotifsResponse) XXX_Unmarshal

func (m *ReadNotifsResponse) XXX_Unmarshal(b []byte) error

type RecentActivityRequest

type RecentActivityRequest struct {
	// discard_ids is a map of user_ids to activity from the user referred to by
	// the key that must not be returned back, since it's content the user has
	// already seen.
	DiscardIds map[string]*dataformat.Activity `` /* 179-byte string literal not displayed */
	// users holds the list of users to get their activity.
	Users                []string `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RecentActivityRequest) Descriptor

func (*RecentActivityRequest) Descriptor() ([]byte, []int)

func (*RecentActivityRequest) GetDiscardIds

func (m *RecentActivityRequest) GetDiscardIds() map[string]*dataformat.Activity

func (*RecentActivityRequest) GetUsers

func (m *RecentActivityRequest) GetUsers() []string

func (*RecentActivityRequest) ProtoMessage

func (*RecentActivityRequest) ProtoMessage()

func (*RecentActivityRequest) Reset

func (m *RecentActivityRequest) Reset()

func (*RecentActivityRequest) String

func (m *RecentActivityRequest) String() string

func (*RecentActivityRequest) XXX_DiscardUnknown

func (m *RecentActivityRequest) XXX_DiscardUnknown()

func (*RecentActivityRequest) XXX_Marshal

func (m *RecentActivityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecentActivityRequest) XXX_Merge

func (m *RecentActivityRequest) XXX_Merge(src proto.Message)

func (*RecentActivityRequest) XXX_Size

func (m *RecentActivityRequest) XXX_Size() int

func (*RecentActivityRequest) XXX_Unmarshal

func (m *RecentActivityRequest) XXX_Unmarshal(b []byte) error

type RecentActivityResponse

type RecentActivityResponse struct {
	// references is a map of section ids to activity.
	References           map[string]*dataformat.Activity `` /* 161-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
	XXX_unrecognized     []byte                          `json:"-"`
	XXX_sizecache        int32                           `json:"-"`
}

func (*RecentActivityResponse) Descriptor

func (*RecentActivityResponse) Descriptor() ([]byte, []int)

func (*RecentActivityResponse) GetReferences

func (m *RecentActivityResponse) GetReferences() map[string]*dataformat.Activity

func (*RecentActivityResponse) ProtoMessage

func (*RecentActivityResponse) ProtoMessage()

func (*RecentActivityResponse) Reset

func (m *RecentActivityResponse) Reset()

func (*RecentActivityResponse) String

func (m *RecentActivityResponse) String() string

func (*RecentActivityResponse) XXX_DiscardUnknown

func (m *RecentActivityResponse) XXX_DiscardUnknown()

func (*RecentActivityResponse) XXX_Marshal

func (m *RecentActivityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecentActivityResponse) XXX_Merge

func (m *RecentActivityResponse) XXX_Merge(src proto.Message)

func (*RecentActivityResponse) XXX_Size

func (m *RecentActivityResponse) XXX_Size() int

func (*RecentActivityResponse) XXX_Unmarshal

func (m *RecentActivityResponse) XXX_Unmarshal(b []byte) error

type RegisterUserRequest

type RegisterUserRequest struct {
	Email                string   `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	PicUrl               string   `protobuf:"bytes,3,opt,name=pic_url,json=picUrl,proto3" json:"pic_url,omitempty"`
	Username             string   `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	Alias                string   `protobuf:"bytes,5,opt,name=alias,proto3" json:"alias,omitempty"`
	About                string   `protobuf:"bytes,6,opt,name=about,proto3" json:"about,omitempty"`
	Password             string   `protobuf:"bytes,150,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RegisterUserRequest) Descriptor

func (*RegisterUserRequest) Descriptor() ([]byte, []int)

func (*RegisterUserRequest) GetAbout

func (m *RegisterUserRequest) GetAbout() string

func (*RegisterUserRequest) GetAlias

func (m *RegisterUserRequest) GetAlias() string

func (*RegisterUserRequest) GetEmail

func (m *RegisterUserRequest) GetEmail() string

func (*RegisterUserRequest) GetName

func (m *RegisterUserRequest) GetName() string

func (*RegisterUserRequest) GetPassword

func (m *RegisterUserRequest) GetPassword() string

func (*RegisterUserRequest) GetPicUrl

func (m *RegisterUserRequest) GetPicUrl() string

func (*RegisterUserRequest) GetUsername

func (m *RegisterUserRequest) GetUsername() string

func (*RegisterUserRequest) ProtoMessage

func (*RegisterUserRequest) ProtoMessage()

func (*RegisterUserRequest) Reset

func (m *RegisterUserRequest) Reset()

func (*RegisterUserRequest) String

func (m *RegisterUserRequest) String() string

func (*RegisterUserRequest) XXX_DiscardUnknown

func (m *RegisterUserRequest) XXX_DiscardUnknown()

func (*RegisterUserRequest) XXX_Marshal

func (m *RegisterUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterUserRequest) XXX_Merge

func (m *RegisterUserRequest) XXX_Merge(src proto.Message)

func (*RegisterUserRequest) XXX_Size

func (m *RegisterUserRequest) XXX_Size() int

func (*RegisterUserRequest) XXX_Unmarshal

func (m *RegisterUserRequest) XXX_Unmarshal(b []byte) error

type RegisterUserResponse

type RegisterUserResponse struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RegisterUserResponse holds the id of the user that just signed in

func (*RegisterUserResponse) Descriptor

func (*RegisterUserResponse) Descriptor() ([]byte, []int)

func (*RegisterUserResponse) GetUserId

func (m *RegisterUserResponse) GetUserId() string

func (*RegisterUserResponse) ProtoMessage

func (*RegisterUserResponse) ProtoMessage()

func (*RegisterUserResponse) Reset

func (m *RegisterUserResponse) Reset()

func (*RegisterUserResponse) String

func (m *RegisterUserResponse) String() string

func (*RegisterUserResponse) XXX_DiscardUnknown

func (m *RegisterUserResponse) XXX_DiscardUnknown()

func (*RegisterUserResponse) XXX_Marshal

func (m *RegisterUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterUserResponse) XXX_Merge

func (m *RegisterUserResponse) XXX_Merge(src proto.Message)

func (*RegisterUserResponse) XXX_Size

func (m *RegisterUserResponse) XXX_Size() int

func (*RegisterUserResponse) XXX_Unmarshal

func (m *RegisterUserResponse) XXX_Unmarshal(b []byte) error

type RemoveSavedRequest

type RemoveSavedRequest struct {
	UserId               string          `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Ctx                  *context.Thread `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

UndoSaveThreadRequest holds the id of the user which is unsaving the thread and the information about the thread to be removed from the user's saved thread list.

func (*RemoveSavedRequest) Descriptor

func (*RemoveSavedRequest) Descriptor() ([]byte, []int)

func (*RemoveSavedRequest) GetCtx

func (m *RemoveSavedRequest) GetCtx() *context.Thread

func (*RemoveSavedRequest) GetUserId

func (m *RemoveSavedRequest) GetUserId() string

func (*RemoveSavedRequest) ProtoMessage

func (*RemoveSavedRequest) ProtoMessage()

func (*RemoveSavedRequest) Reset

func (m *RemoveSavedRequest) Reset()

func (*RemoveSavedRequest) String

func (m *RemoveSavedRequest) String() string

func (*RemoveSavedRequest) XXX_DiscardUnknown

func (m *RemoveSavedRequest) XXX_DiscardUnknown()

func (*RemoveSavedRequest) XXX_Marshal

func (m *RemoveSavedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RemoveSavedRequest) XXX_Merge

func (m *RemoveSavedRequest) XXX_Merge(src proto.Message)

func (*RemoveSavedRequest) XXX_Size

func (m *RemoveSavedRequest) XXX_Size() int

func (*RemoveSavedRequest) XXX_Unmarshal

func (m *RemoveSavedRequest) XXX_Unmarshal(b []byte) error

type RemoveSavedResponse

type RemoveSavedResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RemoveSavedResponse) Descriptor

func (*RemoveSavedResponse) Descriptor() ([]byte, []int)

func (*RemoveSavedResponse) ProtoMessage

func (*RemoveSavedResponse) ProtoMessage()

func (*RemoveSavedResponse) Reset

func (m *RemoveSavedResponse) Reset()

func (*RemoveSavedResponse) String

func (m *RemoveSavedResponse) String() string

func (*RemoveSavedResponse) XXX_DiscardUnknown

func (m *RemoveSavedResponse) XXX_DiscardUnknown()

func (*RemoveSavedResponse) XXX_Marshal

func (m *RemoveSavedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RemoveSavedResponse) XXX_Merge

func (m *RemoveSavedResponse) XXX_Merge(src proto.Message)

func (*RemoveSavedResponse) XXX_Size

func (m *RemoveSavedResponse) XXX_Size() int

func (*RemoveSavedResponse) XXX_Unmarshal

func (m *RemoveSavedResponse) XXX_Unmarshal(b []byte) error

type SaveNotifResponse

type SaveNotifResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SaveNotifResponse) Descriptor

func (*SaveNotifResponse) Descriptor() ([]byte, []int)

func (*SaveNotifResponse) ProtoMessage

func (*SaveNotifResponse) ProtoMessage()

func (*SaveNotifResponse) Reset

func (m *SaveNotifResponse) Reset()

func (*SaveNotifResponse) String

func (m *SaveNotifResponse) String() string

func (*SaveNotifResponse) XXX_DiscardUnknown

func (m *SaveNotifResponse) XXX_DiscardUnknown()

func (*SaveNotifResponse) XXX_Marshal

func (m *SaveNotifResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SaveNotifResponse) XXX_Merge

func (m *SaveNotifResponse) XXX_Merge(src proto.Message)

func (*SaveNotifResponse) XXX_Size

func (m *SaveNotifResponse) XXX_Size() int

func (*SaveNotifResponse) XXX_Unmarshal

func (m *SaveNotifResponse) XXX_Unmarshal(b []byte) error

type SaveThreadRequest

type SaveThreadRequest struct {
	UserId               string          `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Thread               *context.Thread `protobuf:"bytes,2,opt,name=thread,proto3" json:"thread,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

SaveThreadRequest holds the id of the user which is saving the thread and the information about the thread to be saved.

func (*SaveThreadRequest) Descriptor

func (*SaveThreadRequest) Descriptor() ([]byte, []int)

func (*SaveThreadRequest) GetThread

func (m *SaveThreadRequest) GetThread() *context.Thread

func (*SaveThreadRequest) GetUserId

func (m *SaveThreadRequest) GetUserId() string

func (*SaveThreadRequest) ProtoMessage

func (*SaveThreadRequest) ProtoMessage()

func (*SaveThreadRequest) Reset

func (m *SaveThreadRequest) Reset()

func (*SaveThreadRequest) String

func (m *SaveThreadRequest) String() string

func (*SaveThreadRequest) XXX_DiscardUnknown

func (m *SaveThreadRequest) XXX_DiscardUnknown()

func (*SaveThreadRequest) XXX_Marshal

func (m *SaveThreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SaveThreadRequest) XXX_Merge

func (m *SaveThreadRequest) XXX_Merge(src proto.Message)

func (*SaveThreadRequest) XXX_Size

func (m *SaveThreadRequest) XXX_Size() int

func (*SaveThreadRequest) XXX_Unmarshal

func (m *SaveThreadRequest) XXX_Unmarshal(b []byte) error

type SaveThreadResponse

type SaveThreadResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SaveThreadResponse) Descriptor

func (*SaveThreadResponse) Descriptor() ([]byte, []int)

func (*SaveThreadResponse) ProtoMessage

func (*SaveThreadResponse) ProtoMessage()

func (*SaveThreadResponse) Reset

func (m *SaveThreadResponse) Reset()

func (*SaveThreadResponse) String

func (m *SaveThreadResponse) String() string

func (*SaveThreadResponse) XXX_DiscardUnknown

func (m *SaveThreadResponse) XXX_DiscardUnknown()

func (*SaveThreadResponse) XXX_Marshal

func (m *SaveThreadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SaveThreadResponse) XXX_Merge

func (m *SaveThreadResponse) XXX_Merge(src proto.Message)

func (*SaveThreadResponse) XXX_Size

func (m *SaveThreadResponse) XXX_Size() int

func (*SaveThreadResponse) XXX_Unmarshal

func (m *SaveThreadResponse) XXX_Unmarshal(b []byte) error

type SavedThreadsRequest

type SavedThreadsRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// discard_ids is a map of section names mapped to content ids that must not be
	// returned back, since it's content the user has already seen.
	DiscardIds           map[string]*cheroapi.IdList `` /* 179-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*SavedThreadsRequest) Descriptor

func (*SavedThreadsRequest) Descriptor() ([]byte, []int)

func (*SavedThreadsRequest) GetDiscardIds

func (m *SavedThreadsRequest) GetDiscardIds() map[string]*cheroapi.IdList

func (*SavedThreadsRequest) GetUserId

func (m *SavedThreadsRequest) GetUserId() string

func (*SavedThreadsRequest) ProtoMessage

func (*SavedThreadsRequest) ProtoMessage()

func (*SavedThreadsRequest) Reset

func (m *SavedThreadsRequest) Reset()

func (*SavedThreadsRequest) String

func (m *SavedThreadsRequest) String() string

func (*SavedThreadsRequest) XXX_DiscardUnknown

func (m *SavedThreadsRequest) XXX_DiscardUnknown()

func (*SavedThreadsRequest) XXX_Marshal

func (m *SavedThreadsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SavedThreadsRequest) XXX_Merge

func (m *SavedThreadsRequest) XXX_Merge(src proto.Message)

func (*SavedThreadsRequest) XXX_Size

func (m *SavedThreadsRequest) XXX_Size() int

func (*SavedThreadsRequest) XXX_Unmarshal

func (m *SavedThreadsRequest) XXX_Unmarshal(b []byte) error

type SavedThreadsResponse

type SavedThreadsResponse struct {
	// references holds a list of thread ids for each section.
	References           map[string]*cheroapi.IdList `` /* 161-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*SavedThreadsResponse) Descriptor

func (*SavedThreadsResponse) Descriptor() ([]byte, []int)

func (*SavedThreadsResponse) GetReferences

func (m *SavedThreadsResponse) GetReferences() map[string]*cheroapi.IdList

func (*SavedThreadsResponse) ProtoMessage

func (*SavedThreadsResponse) ProtoMessage()

func (*SavedThreadsResponse) Reset

func (m *SavedThreadsResponse) Reset()

func (*SavedThreadsResponse) String

func (m *SavedThreadsResponse) String() string

func (*SavedThreadsResponse) XXX_DiscardUnknown

func (m *SavedThreadsResponse) XXX_DiscardUnknown()

func (*SavedThreadsResponse) XXX_Marshal

func (m *SavedThreadsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SavedThreadsResponse) XXX_Merge

func (m *SavedThreadsResponse) XXX_Merge(src proto.Message)

func (*SavedThreadsResponse) XXX_Size

func (m *SavedThreadsResponse) XXX_Size() int

func (*SavedThreadsResponse) XXX_Unmarshal

func (m *SavedThreadsResponse) XXX_Unmarshal(b []byte) error

type SubcommentRequest

type SubcommentRequest struct {
	UserId               string              `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Ctx                  *context.Subcomment `protobuf:"bytes,2,opt,name=ctx,proto3" json:"ctx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*SubcommentRequest) Descriptor

func (*SubcommentRequest) Descriptor() ([]byte, []int)

func (*SubcommentRequest) GetCtx

func (m *SubcommentRequest) GetCtx() *context.Subcomment

func (*SubcommentRequest) GetUserId

func (m *SubcommentRequest) GetUserId() string

func (*SubcommentRequest) ProtoMessage

func (*SubcommentRequest) ProtoMessage()

func (*SubcommentRequest) Reset

func (m *SubcommentRequest) Reset()

func (*SubcommentRequest) String

func (m *SubcommentRequest) String() string

func (*SubcommentRequest) XXX_DiscardUnknown

func (m *SubcommentRequest) XXX_DiscardUnknown()

func (*SubcommentRequest) XXX_Marshal

func (m *SubcommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubcommentRequest) XXX_Merge

func (m *SubcommentRequest) XXX_Merge(src proto.Message)

func (*SubcommentRequest) XXX_Size

func (m *SubcommentRequest) XXX_Size() int

func (*SubcommentRequest) XXX_Unmarshal

func (m *SubcommentRequest) XXX_Unmarshal(b []byte) error

type SubcommentResponse

type SubcommentResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SubcommentResponse) Descriptor

func (*SubcommentResponse) Descriptor() ([]byte, []int)

func (*SubcommentResponse) ProtoMessage

func (*SubcommentResponse) ProtoMessage()

func (*SubcommentResponse) Reset

func (m *SubcommentResponse) Reset()

func (*SubcommentResponse) String

func (m *SubcommentResponse) String() string

func (*SubcommentResponse) XXX_DiscardUnknown

func (m *SubcommentResponse) XXX_DiscardUnknown()

func (*SubcommentResponse) XXX_Marshal

func (m *SubcommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubcommentResponse) XXX_Merge

func (m *SubcommentResponse) XXX_Merge(src proto.Message)

func (*SubcommentResponse) XXX_Size

func (m *SubcommentResponse) XXX_Size() int

func (*SubcommentResponse) XXX_Unmarshal

func (m *SubcommentResponse) XXX_Unmarshal(b []byte) error

type UnfollowUserRequest

type UnfollowUserRequest struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserToUnfollow       string   `protobuf:"bytes,2,opt,name=user_to_unfollow,json=userToUnfollow,proto3" json:"user_to_unfollow,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

UnfollowUserRequest holds the id of the user which is unfollowing and the username of the user losing a follower

func (*UnfollowUserRequest) Descriptor

func (*UnfollowUserRequest) Descriptor() ([]byte, []int)

func (*UnfollowUserRequest) GetUserId

func (m *UnfollowUserRequest) GetUserId() string

func (*UnfollowUserRequest) GetUserToUnfollow

func (m *UnfollowUserRequest) GetUserToUnfollow() string

func (*UnfollowUserRequest) ProtoMessage

func (*UnfollowUserRequest) ProtoMessage()

func (*UnfollowUserRequest) Reset

func (m *UnfollowUserRequest) Reset()

func (*UnfollowUserRequest) String

func (m *UnfollowUserRequest) String() string

func (*UnfollowUserRequest) XXX_DiscardUnknown

func (m *UnfollowUserRequest) XXX_DiscardUnknown()

func (*UnfollowUserRequest) XXX_Marshal

func (m *UnfollowUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnfollowUserRequest) XXX_Merge

func (m *UnfollowUserRequest) XXX_Merge(src proto.Message)

func (*UnfollowUserRequest) XXX_Size

func (m *UnfollowUserRequest) XXX_Size() int

func (*UnfollowUserRequest) XXX_Unmarshal

func (m *UnfollowUserRequest) XXX_Unmarshal(b []byte) error

type UnfollowUserResponse

type UnfollowUserResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UnfollowUserResponse) Descriptor

func (*UnfollowUserResponse) Descriptor() ([]byte, []int)

func (*UnfollowUserResponse) ProtoMessage

func (*UnfollowUserResponse) ProtoMessage()

func (*UnfollowUserResponse) Reset

func (m *UnfollowUserResponse) Reset()

func (*UnfollowUserResponse) String

func (m *UnfollowUserResponse) String() string

func (*UnfollowUserResponse) XXX_DiscardUnknown

func (m *UnfollowUserResponse) XXX_DiscardUnknown()

func (*UnfollowUserResponse) XXX_Marshal

func (m *UnfollowUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnfollowUserResponse) XXX_Merge

func (m *UnfollowUserResponse) XXX_Merge(src proto.Message)

func (*UnfollowUserResponse) XXX_Size

func (m *UnfollowUserResponse) XXX_Size() int

func (*UnfollowUserResponse) XXX_Unmarshal

func (m *UnfollowUserResponse) XXX_Unmarshal(b []byte) error

type UnimplementedCrudUsersServer

type UnimplementedCrudUsersServer struct {
}

UnimplementedCrudUsersServer can be embedded to have forward compatible implementations.

func (*UnimplementedCrudUsersServer) ClearNotifs

func (*UnimplementedCrudUsersServer) Comment

func (*UnimplementedCrudUsersServer) CreateThread

func (*UnimplementedCrudUsersServer) DeleteComment

func (*UnimplementedCrudUsersServer) DeleteSubcomment

func (*UnimplementedCrudUsersServer) DeleteThread

func (*UnimplementedCrudUsersServer) FollowUser

func (*UnimplementedCrudUsersServer) GetBasicUserData

func (*UnimplementedCrudUsersServer) GetDashboardData

func (*UnimplementedCrudUsersServer) GetUserFollowingIds

func (*UnimplementedCrudUsersServer) GetUserHeaderData

func (*UnimplementedCrudUsersServer) Login

func (*UnimplementedCrudUsersServer) MarkAllAsRead

func (*UnimplementedCrudUsersServer) OldComment

func (*UnimplementedCrudUsersServer) OldSubcomment

func (*UnimplementedCrudUsersServer) OldThread

func (*UnimplementedCrudUsersServer) RecentActivity

func (*UnimplementedCrudUsersServer) RegisterUser

func (*UnimplementedCrudUsersServer) RemoveSaved

func (*UnimplementedCrudUsersServer) SaveNotif

func (*UnimplementedCrudUsersServer) SaveThread

func (*UnimplementedCrudUsersServer) SavedThreads

func (*UnimplementedCrudUsersServer) Subcomment

func (*UnimplementedCrudUsersServer) UnfollowUser

func (*UnimplementedCrudUsersServer) UpdateBasicUserData

func (*UnimplementedCrudUsersServer) ViewUserByUsername

func (*UnimplementedCrudUsersServer) ViewUsers

type UpdateBasicUserDataRequest

type UpdateBasicUserDataRequest struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Username             string   `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Description          string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	PicUrl               string   `protobuf:"bytes,4,opt,name=pic_url,json=picUrl,proto3" json:"pic_url,omitempty"`
	Alias                string   `protobuf:"bytes,5,opt,name=alias,proto3" json:"alias,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

UpdateBasicUserDataRequest holds public data of a user that could be updated.

func (*UpdateBasicUserDataRequest) Descriptor

func (*UpdateBasicUserDataRequest) Descriptor() ([]byte, []int)

func (*UpdateBasicUserDataRequest) GetAlias

func (m *UpdateBasicUserDataRequest) GetAlias() string

func (*UpdateBasicUserDataRequest) GetDescription

func (m *UpdateBasicUserDataRequest) GetDescription() string

func (*UpdateBasicUserDataRequest) GetPicUrl

func (m *UpdateBasicUserDataRequest) GetPicUrl() string

func (*UpdateBasicUserDataRequest) GetUserId

func (m *UpdateBasicUserDataRequest) GetUserId() string

func (*UpdateBasicUserDataRequest) GetUsername

func (m *UpdateBasicUserDataRequest) GetUsername() string

func (*UpdateBasicUserDataRequest) ProtoMessage

func (*UpdateBasicUserDataRequest) ProtoMessage()

func (*UpdateBasicUserDataRequest) Reset

func (m *UpdateBasicUserDataRequest) Reset()

func (*UpdateBasicUserDataRequest) String

func (m *UpdateBasicUserDataRequest) String() string

func (*UpdateBasicUserDataRequest) XXX_DiscardUnknown

func (m *UpdateBasicUserDataRequest) XXX_DiscardUnknown()

func (*UpdateBasicUserDataRequest) XXX_Marshal

func (m *UpdateBasicUserDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateBasicUserDataRequest) XXX_Merge

func (m *UpdateBasicUserDataRequest) XXX_Merge(src proto.Message)

func (*UpdateBasicUserDataRequest) XXX_Size

func (m *UpdateBasicUserDataRequest) XXX_Size() int

func (*UpdateBasicUserDataRequest) XXX_Unmarshal

func (m *UpdateBasicUserDataRequest) XXX_Unmarshal(b []byte) error

type UpdateBasicUserDataResponse

type UpdateBasicUserDataResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateBasicUserDataResponse) Descriptor

func (*UpdateBasicUserDataResponse) Descriptor() ([]byte, []int)

func (*UpdateBasicUserDataResponse) ProtoMessage

func (*UpdateBasicUserDataResponse) ProtoMessage()

func (*UpdateBasicUserDataResponse) Reset

func (m *UpdateBasicUserDataResponse) Reset()

func (*UpdateBasicUserDataResponse) String

func (m *UpdateBasicUserDataResponse) String() string

func (*UpdateBasicUserDataResponse) XXX_DiscardUnknown

func (m *UpdateBasicUserDataResponse) XXX_DiscardUnknown()

func (*UpdateBasicUserDataResponse) XXX_Marshal

func (m *UpdateBasicUserDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateBasicUserDataResponse) XXX_Merge

func (m *UpdateBasicUserDataResponse) XXX_Merge(src proto.Message)

func (*UpdateBasicUserDataResponse) XXX_Size

func (m *UpdateBasicUserDataResponse) XXX_Size() int

func (*UpdateBasicUserDataResponse) XXX_Unmarshal

func (m *UpdateBasicUserDataResponse) XXX_Unmarshal(b []byte) error

type UserHeaderData

type UserHeaderData struct {
	Alias    string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// unread notifications of this user.
	UnreadNotifs []*dataformat.Notif `protobuf:"bytes,3,rep,name=unread_notifs,json=unreadNotifs,proto3" json:"unread_notifs,omitempty"`
	// read notifications of this user.
	ReadNotifs []*dataformat.Notif `protobuf:"bytes,4,rep,name=read_notifs,json=readNotifs,proto3" json:"read_notifs,omitempty"`
	// last time this user created a thread
	LastTimeCreated      *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_time_created,json=lastTimeCreated,proto3" json:"last_time_created,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

UserHeaderData holds information to be displayed in the header navigation section of every page.

func (*UserHeaderData) Descriptor

func (*UserHeaderData) Descriptor() ([]byte, []int)

func (*UserHeaderData) GetAlias

func (m *UserHeaderData) GetAlias() string

func (*UserHeaderData) GetLastTimeCreated

func (m *UserHeaderData) GetLastTimeCreated() *timestamp.Timestamp

func (*UserHeaderData) GetReadNotifs

func (m *UserHeaderData) GetReadNotifs() []*dataformat.Notif

func (*UserHeaderData) GetUnreadNotifs

func (m *UserHeaderData) GetUnreadNotifs() []*dataformat.Notif

func (*UserHeaderData) GetUsername

func (m *UserHeaderData) GetUsername() string

func (*UserHeaderData) ProtoMessage

func (*UserHeaderData) ProtoMessage()

func (*UserHeaderData) Reset

func (m *UserHeaderData) Reset()

func (*UserHeaderData) String

func (m *UserHeaderData) String() string

func (*UserHeaderData) XXX_DiscardUnknown

func (m *UserHeaderData) XXX_DiscardUnknown()

func (*UserHeaderData) XXX_Marshal

func (m *UserHeaderData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserHeaderData) XXX_Merge

func (m *UserHeaderData) XXX_Merge(src proto.Message)

func (*UserHeaderData) XXX_Size

func (m *UserHeaderData) XXX_Size() int

func (*UserHeaderData) XXX_Unmarshal

func (m *UserHeaderData) XXX_Unmarshal(b []byte) error

type UserList

type UserList struct {
	Ids                  []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

UserList holds a list of user ids

func (*UserList) Descriptor

func (*UserList) Descriptor() ([]byte, []int)

func (*UserList) GetIds

func (m *UserList) GetIds() []string

func (*UserList) ProtoMessage

func (*UserList) ProtoMessage()

func (*UserList) Reset

func (m *UserList) Reset()

func (*UserList) String

func (m *UserList) String() string

func (*UserList) XXX_DiscardUnknown

func (m *UserList) XXX_DiscardUnknown()

func (*UserList) XXX_Marshal

func (m *UserList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserList) XXX_Merge

func (m *UserList) XXX_Merge(src proto.Message)

func (*UserList) XXX_Size

func (m *UserList) XXX_Size() int

func (*UserList) XXX_Unmarshal

func (m *UserList) XXX_Unmarshal(b []byte) error

type ViewUserByUsernameRequest

type ViewUserByUsernameRequest struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ViewUserByUsernameRequest is a message for requesting public data of a user

func (*ViewUserByUsernameRequest) Descriptor

func (*ViewUserByUsernameRequest) Descriptor() ([]byte, []int)

func (*ViewUserByUsernameRequest) GetUsername

func (m *ViewUserByUsernameRequest) GetUsername() string

func (*ViewUserByUsernameRequest) ProtoMessage

func (*ViewUserByUsernameRequest) ProtoMessage()

func (*ViewUserByUsernameRequest) Reset

func (m *ViewUserByUsernameRequest) Reset()

func (*ViewUserByUsernameRequest) String

func (m *ViewUserByUsernameRequest) String() string

func (*ViewUserByUsernameRequest) XXX_DiscardUnknown

func (m *ViewUserByUsernameRequest) XXX_DiscardUnknown()

func (*ViewUserByUsernameRequest) XXX_Marshal

func (m *ViewUserByUsernameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ViewUserByUsernameRequest) XXX_Merge

func (m *ViewUserByUsernameRequest) XXX_Merge(src proto.Message)

func (*ViewUserByUsernameRequest) XXX_Size

func (m *ViewUserByUsernameRequest) XXX_Size() int

func (*ViewUserByUsernameRequest) XXX_Unmarshal

func (m *ViewUserByUsernameRequest) XXX_Unmarshal(b []byte) error

type ViewUserResponse

type ViewUserResponse struct {
	Alias                string               `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"`
	Username             string               `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	PicUrl               string               `protobuf:"bytes,3,opt,name=pic_url,json=picUrl,proto3" json:"pic_url,omitempty"`
	About                string               `protobuf:"bytes,4,opt,name=about,proto3" json:"about,omitempty"`
	UserId               string               `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	LastTimeCreated      *timestamp.Timestamp `protobuf:"bytes,6,opt,name=last_time_created,json=lastTimeCreated,proto3" json:"last_time_created,omitempty"`
	FollowersIds         []string             `protobuf:"bytes,7,rep,name=followers_ids,json=followersIds,proto3" json:"followers_ids,omitempty"`
	FollowingIds         []string             `protobuf:"bytes,8,rep,name=following_ids,json=followingIds,proto3" json:"following_ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

ViewUserResponse holds some basic data of a requested user

func (*ViewUserResponse) Descriptor

func (*ViewUserResponse) Descriptor() ([]byte, []int)

func (*ViewUserResponse) GetAbout

func (m *ViewUserResponse) GetAbout() string

func (*ViewUserResponse) GetAlias

func (m *ViewUserResponse) GetAlias() string

func (*ViewUserResponse) GetFollowersIds

func (m *ViewUserResponse) GetFollowersIds() []string

func (*ViewUserResponse) GetFollowingIds

func (m *ViewUserResponse) GetFollowingIds() []string

func (*ViewUserResponse) GetLastTimeCreated

func (m *ViewUserResponse) GetLastTimeCreated() *timestamp.Timestamp

func (*ViewUserResponse) GetPicUrl

func (m *ViewUserResponse) GetPicUrl() string

func (*ViewUserResponse) GetUserId

func (m *ViewUserResponse) GetUserId() string

func (*ViewUserResponse) GetUsername

func (m *ViewUserResponse) GetUsername() string

func (*ViewUserResponse) ProtoMessage

func (*ViewUserResponse) ProtoMessage()

func (*ViewUserResponse) Reset

func (m *ViewUserResponse) Reset()

func (*ViewUserResponse) String

func (m *ViewUserResponse) String() string

func (*ViewUserResponse) XXX_DiscardUnknown

func (m *ViewUserResponse) XXX_DiscardUnknown()

func (*ViewUserResponse) XXX_Marshal

func (m *ViewUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ViewUserResponse) XXX_Merge

func (m *ViewUserResponse) XXX_Merge(src proto.Message)

func (*ViewUserResponse) XXX_Size

func (m *ViewUserResponse) XXX_Size() int

func (*ViewUserResponse) XXX_Unmarshal

func (m *ViewUserResponse) XXX_Unmarshal(b []byte) error

type ViewUsersRequest

type ViewUsersRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// context is either following or followers
	Context string `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
	// offset indicates how many users to ignore for pagination
	Offset               uint32   `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ViewUsersRequest is a message for requesting either following or followers users data of a given user

func (*ViewUsersRequest) Descriptor

func (*ViewUsersRequest) Descriptor() ([]byte, []int)

func (*ViewUsersRequest) GetContext

func (m *ViewUsersRequest) GetContext() string

func (*ViewUsersRequest) GetOffset

func (m *ViewUsersRequest) GetOffset() uint32

func (*ViewUsersRequest) GetUserId

func (m *ViewUsersRequest) GetUserId() string

func (*ViewUsersRequest) ProtoMessage

func (*ViewUsersRequest) ProtoMessage()

func (*ViewUsersRequest) Reset

func (m *ViewUsersRequest) Reset()

func (*ViewUsersRequest) String

func (m *ViewUsersRequest) String() string

func (*ViewUsersRequest) XXX_DiscardUnknown

func (m *ViewUsersRequest) XXX_DiscardUnknown()

func (*ViewUsersRequest) XXX_Marshal

func (m *ViewUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ViewUsersRequest) XXX_Merge

func (m *ViewUsersRequest) XXX_Merge(src proto.Message)

func (*ViewUsersRequest) XXX_Size

func (m *ViewUsersRequest) XXX_Size() int

func (*ViewUsersRequest) XXX_Unmarshal

func (m *ViewUsersRequest) XXX_Unmarshal(b []byte) error

type ViewUsersResponse

type ViewUsersResponse struct {
	BasicUserData        []*dataformat.BasicUserData `protobuf:"bytes,1,rep,name=basic_user_data,json=basicUserData,proto3" json:"basic_user_data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

ViewUsersResponse holds a list of basic user data of requested users following or followers of a user

func (*ViewUsersResponse) Descriptor

func (*ViewUsersResponse) Descriptor() ([]byte, []int)

func (*ViewUsersResponse) GetBasicUserData

func (m *ViewUsersResponse) GetBasicUserData() []*dataformat.BasicUserData

func (*ViewUsersResponse) ProtoMessage

func (*ViewUsersResponse) ProtoMessage()

func (*ViewUsersResponse) Reset

func (m *ViewUsersResponse) Reset()

func (*ViewUsersResponse) String

func (m *ViewUsersResponse) String() string

func (*ViewUsersResponse) XXX_DiscardUnknown

func (m *ViewUsersResponse) XXX_DiscardUnknown()

func (*ViewUsersResponse) XXX_Marshal

func (m *ViewUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ViewUsersResponse) XXX_Merge

func (m *ViewUsersResponse) XXX_Merge(src proto.Message)

func (*ViewUsersResponse) XXX_Size

func (m *ViewUsersResponse) XXX_Size() int

func (*ViewUsersResponse) XXX_Unmarshal

func (m *ViewUsersResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL