Documentation
¶
Index ¶
- func RegisterCrudCheropatillaServer(s *grpc.Server, srv CrudCheropatillaServer)
- func RegisterCrudGeneralServer(s *grpc.Server, srv CrudGeneralServer)
- type ActivityPattern
- func (*ActivityPattern) Descriptor() ([]byte, []int)
- func (m *ActivityPattern) GetDiscardIds() map[string]*dataformat.Activity
- func (m *ActivityPattern) GetPattern() []metadata.ContentStatus
- func (m *ActivityPattern) GetUsers() []string
- func (*ActivityPattern) ProtoMessage()
- func (m *ActivityPattern) Reset()
- func (m *ActivityPattern) String() string
- func (m *ActivityPattern) XXX_DiscardUnknown()
- func (m *ActivityPattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ActivityPattern) XXX_Merge(src proto.Message)
- func (m *ActivityPattern) XXX_Size() int
- func (m *ActivityPattern) XXX_Unmarshal(b []byte) error
- type CommentRequest
- func (*CommentRequest) Descriptor() ([]byte, []int)
- func (m *CommentRequest) GetCommentCtx() *context.Comment
- func (m *CommentRequest) GetContent() string
- func (m *CommentRequest) GetContentContext() isCommentRequest_ContentContext
- func (m *CommentRequest) GetFtFile() string
- func (m *CommentRequest) GetPublishDate() *timestamp.Timestamp
- func (m *CommentRequest) GetThreadCtx() *context.Thread
- func (m *CommentRequest) GetUserId() string
- func (*CommentRequest) ProtoMessage()
- func (m *CommentRequest) Reset()
- func (m *CommentRequest) String() string
- func (m *CommentRequest) XXX_DiscardUnknown()
- func (m *CommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommentRequest) XXX_Merge(src proto.Message)
- func (*CommentRequest) XXX_OneofWrappers() []interface{}
- func (m *CommentRequest) XXX_Size() int
- func (m *CommentRequest) XXX_Unmarshal(b []byte) error
- type CommentRequest_CommentCtx
- type CommentRequest_ThreadCtx
- type Content
- func (*Content) Descriptor() ([]byte, []int)
- func (m *Content) GetContent() string
- func (m *Content) GetFtFile() string
- func (m *Content) GetPublishDate() *timestamp.Timestamp
- func (m *Content) GetTitle() string
- func (*Content) ProtoMessage()
- func (m *Content) Reset()
- func (m *Content) String() string
- func (m *Content) XXX_DiscardUnknown()
- func (m *Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Content) XXX_Merge(src proto.Message)
- func (m *Content) XXX_Size() int
- func (m *Content) XXX_Unmarshal(b []byte) error
- type ContentAuthor
- func (*ContentAuthor) Descriptor() ([]byte, []int)
- func (m *ContentAuthor) GetAlias() string
- func (m *ContentAuthor) GetId() string
- func (m *ContentAuthor) GetUsername() string
- func (*ContentAuthor) ProtoMessage()
- func (m *ContentAuthor) Reset()
- func (m *ContentAuthor) String() string
- func (m *ContentAuthor) XXX_DiscardUnknown()
- func (m *ContentAuthor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContentAuthor) XXX_Merge(src proto.Message)
- func (m *ContentAuthor) XXX_Size() int
- func (m *ContentAuthor) XXX_Unmarshal(b []byte) error
- type ContentContext
- func (*ContentContext) Descriptor() ([]byte, []int)
- func (m *ContentContext) GetKey() *context.Context
- func (m *ContentContext) GetStatus() string
- func (*ContentContext) ProtoMessage()
- func (m *ContentContext) Reset()
- func (m *ContentContext) String() string
- func (m *ContentContext) XXX_DiscardUnknown()
- func (m *ContentContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContentContext) XXX_Merge(src proto.Message)
- func (m *ContentContext) XXX_Size() int
- func (m *ContentContext) XXX_Unmarshal(b []byte) error
- type ContentData
- func (*ContentData) Descriptor() ([]byte, []int)
- func (m *ContentData) GetAuthor() *ContentAuthor
- func (m *ContentData) GetContent() *Content
- func (m *ContentData) GetMetadata() *ContentMetadata
- func (*ContentData) ProtoMessage()
- func (m *ContentData) Reset()
- func (m *ContentData) String() string
- func (m *ContentData) XXX_DiscardUnknown()
- func (m *ContentData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContentData) XXX_Merge(src proto.Message)
- func (m *ContentData) XXX_Size() int
- func (m *ContentData) XXX_Unmarshal(b []byte) error
- type ContentMetadata
- func (*ContentMetadata) Descriptor() ([]byte, []int)
- func (m *ContentMetadata) GetId() string
- func (m *ContentMetadata) GetPermalink() string
- func (m *ContentMetadata) GetReplierIds() []string
- func (m *ContentMetadata) GetReplies() uint32
- func (m *ContentMetadata) GetSection() string
- func (m *ContentMetadata) GetSectionId() string
- func (m *ContentMetadata) GetUpvotes() uint32
- func (m *ContentMetadata) GetUsersWhoSaved() []string
- func (m *ContentMetadata) GetVoterIds() []string
- func (*ContentMetadata) ProtoMessage()
- func (m *ContentMetadata) Reset()
- func (m *ContentMetadata) String() string
- func (m *ContentMetadata) XXX_DiscardUnknown()
- func (m *ContentMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContentMetadata) XXX_Merge(src proto.Message)
- func (m *ContentMetadata) XXX_Size() int
- func (m *ContentMetadata) XXX_Unmarshal(b []byte) error
- type ContentOverview
- func (*ContentOverview) Descriptor() ([]byte, []int)
- func (m *ContentOverview) GetContext() *context.Context
- func (m *ContentOverview) GetMetadata() *metadata.Content
- func (*ContentOverview) ProtoMessage()
- func (m *ContentOverview) Reset()
- func (m *ContentOverview) String() string
- func (m *ContentOverview) XXX_DiscardUnknown()
- func (m *ContentOverview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContentOverview) XXX_Merge(src proto.Message)
- func (m *ContentOverview) XXX_Size() int
- func (m *ContentOverview) XXX_Unmarshal(b []byte) error
- type ContentPattern
- func (*ContentPattern) Descriptor() ([]byte, []int)
- func (m *ContentPattern) GetContentContext() isContentPattern_ContentContext
- func (m *ContentPattern) GetDiscardIds() []string
- func (m *ContentPattern) GetPattern() []metadata.ContentStatus
- func (m *ContentPattern) GetSectionCtx() *context.Section
- func (m *ContentPattern) GetThreadCtx() *context.Thread
- func (*ContentPattern) ProtoMessage()
- func (m *ContentPattern) Reset()
- func (m *ContentPattern) String() string
- func (m *ContentPattern) XXX_DiscardUnknown()
- func (m *ContentPattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContentPattern) XXX_Merge(src proto.Message)
- func (*ContentPattern) XXX_OneofWrappers() []interface{}
- func (m *ContentPattern) XXX_Size() int
- func (m *ContentPattern) XXX_Unmarshal(b []byte) error
- type ContentPattern_SectionCtx
- type ContentPattern_ThreadCtx
- type ContentRule
- func (*ContentRule) Descriptor() ([]byte, []int)
- func (m *ContentRule) GetCommentCtx() *context.Comment
- func (m *ContentRule) GetContentContext() isContentRule_ContentContext
- func (m *ContentRule) GetData() *ContentData
- func (m *ContentRule) GetStatus() string
- func (m *ContentRule) GetSubcommentCtx() *context.Subcomment
- func (m *ContentRule) GetThreadCtx() *context.Thread
- func (*ContentRule) ProtoMessage()
- func (m *ContentRule) Reset()
- func (m *ContentRule) String() string
- func (m *ContentRule) XXX_DiscardUnknown()
- func (m *ContentRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContentRule) XXX_Merge(src proto.Message)
- func (*ContentRule) XXX_OneofWrappers() []interface{}
- func (m *ContentRule) XXX_Size() int
- func (m *ContentRule) XXX_Unmarshal(b []byte) error
- type ContentRule_CommentCtx
- type ContentRule_SubcommentCtx
- type ContentRule_ThreadCtx
- type CreateThreadRequest
- func (*CreateThreadRequest) Descriptor() ([]byte, []int)
- func (m *CreateThreadRequest) GetContent() *Content
- func (m *CreateThreadRequest) GetSectionCtx() *context.Section
- func (m *CreateThreadRequest) GetUserId() string
- func (*CreateThreadRequest) ProtoMessage()
- func (m *CreateThreadRequest) Reset()
- func (m *CreateThreadRequest) String() string
- func (m *CreateThreadRequest) XXX_DiscardUnknown()
- func (m *CreateThreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateThreadRequest) XXX_Merge(src proto.Message)
- func (m *CreateThreadRequest) XXX_Size() int
- func (m *CreateThreadRequest) XXX_Unmarshal(b []byte) error
- type CreateThreadResponse
- func (*CreateThreadResponse) Descriptor() ([]byte, []int)
- func (m *CreateThreadResponse) GetPermalink() string
- func (*CreateThreadResponse) ProtoMessage()
- func (m *CreateThreadResponse) Reset()
- func (m *CreateThreadResponse) String() string
- func (m *CreateThreadResponse) XXX_DiscardUnknown()
- func (m *CreateThreadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateThreadResponse) XXX_Merge(src proto.Message)
- func (m *CreateThreadResponse) XXX_Size() int
- func (m *CreateThreadResponse) XXX_Unmarshal(b []byte) error
- type CrudCheropatillaClient
- type CrudCheropatillaServer
- type CrudCheropatilla_CommentClient
- type CrudCheropatilla_CommentServer
- type CrudCheropatilla_GetActiveThreadsOverviewClient
- type CrudCheropatilla_GetActiveThreadsOverviewServer
- type CrudCheropatilla_GetActivityOverviewClient
- type CrudCheropatilla_GetActivityOverviewServer
- type CrudCheropatilla_GetContentsByContextClient
- type CrudCheropatilla_GetContentsByContextServer
- type CrudCheropatilla_GetSubcommentsClient
- type CrudCheropatilla_GetSubcommentsServer
- type CrudCheropatilla_GetThreadsOverviewClient
- type CrudCheropatilla_GetThreadsOverviewServer
- type CrudCheropatilla_RecycleContentClient
- type CrudCheropatilla_RecycleContentServer
- type CrudCheropatilla_UpvoteClient
- type CrudCheropatilla_UpvoteServer
- type CrudGeneralClient
- type CrudGeneralServer
- type CrudGeneral_RecycleActivityClient
- type CrudGeneral_RecycleActivityServer
- type CrudGeneral_RecycleGeneralClient
- type CrudGeneral_RecycleGeneralServer
- type CrudGeneral_RecycleSavedClient
- type CrudGeneral_RecycleSavedServer
- type DeleteContentRequest
- func (*DeleteContentRequest) Descriptor() ([]byte, []int)
- func (m *DeleteContentRequest) GetCommentCtx() *context.Comment
- func (m *DeleteContentRequest) GetContentContext() isDeleteContentRequest_ContentContext
- func (m *DeleteContentRequest) GetSubcommentCtx() *context.Subcomment
- func (m *DeleteContentRequest) GetThreadCtx() *context.Thread
- func (m *DeleteContentRequest) GetUserId() string
- func (*DeleteContentRequest) ProtoMessage()
- func (m *DeleteContentRequest) Reset()
- func (m *DeleteContentRequest) String() string
- func (m *DeleteContentRequest) XXX_DiscardUnknown()
- func (m *DeleteContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteContentRequest) XXX_Merge(src proto.Message)
- func (*DeleteContentRequest) XXX_OneofWrappers() []interface{}
- func (m *DeleteContentRequest) XXX_Size() int
- func (m *DeleteContentRequest) XXX_Unmarshal(b []byte) error
- type DeleteContentRequest_CommentCtx
- type DeleteContentRequest_SubcommentCtx
- type DeleteContentRequest_ThreadCtx
- type DeleteContentResponse
- func (*DeleteContentResponse) Descriptor() ([]byte, []int)
- func (*DeleteContentResponse) ProtoMessage()
- func (m *DeleteContentResponse) Reset()
- func (m *DeleteContentResponse) String() string
- func (m *DeleteContentResponse) XXX_DiscardUnknown()
- func (m *DeleteContentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteContentResponse) XXX_Merge(src proto.Message)
- func (m *DeleteContentResponse) XXX_Size() int
- func (m *DeleteContentResponse) XXX_Unmarshal(b []byte) error
- type GeneralPattern
- func (*GeneralPattern) Descriptor() ([]byte, []int)
- func (m *GeneralPattern) GetDiscardIds() map[string]*IdList
- func (m *GeneralPattern) GetPattern() []metadata.ContentStatus
- func (*GeneralPattern) ProtoMessage()
- func (m *GeneralPattern) Reset()
- func (m *GeneralPattern) String() string
- func (m *GeneralPattern) XXX_DiscardUnknown()
- func (m *GeneralPattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GeneralPattern) XXX_Merge(src proto.Message)
- func (m *GeneralPattern) XXX_Size() int
- func (m *GeneralPattern) XXX_Unmarshal(b []byte) error
- type GetActiveThreadsOverviewRequest
- func (*GetActiveThreadsOverviewRequest) Descriptor() ([]byte, []int)
- func (*GetActiveThreadsOverviewRequest) ProtoMessage()
- func (m *GetActiveThreadsOverviewRequest) Reset()
- func (m *GetActiveThreadsOverviewRequest) String() string
- func (m *GetActiveThreadsOverviewRequest) XXX_DiscardUnknown()
- func (m *GetActiveThreadsOverviewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetActiveThreadsOverviewRequest) XXX_Merge(src proto.Message)
- func (m *GetActiveThreadsOverviewRequest) XXX_Size() int
- func (m *GetActiveThreadsOverviewRequest) XXX_Unmarshal(b []byte) error
- type GetContentsByContextRequest
- func (*GetContentsByContextRequest) Descriptor() ([]byte, []int)
- func (m *GetContentsByContextRequest) GetContents() []*ContentContext
- func (*GetContentsByContextRequest) ProtoMessage()
- func (m *GetContentsByContextRequest) Reset()
- func (m *GetContentsByContextRequest) String() string
- func (m *GetContentsByContextRequest) XXX_DiscardUnknown()
- func (m *GetContentsByContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetContentsByContextRequest) XXX_Merge(src proto.Message)
- func (m *GetContentsByContextRequest) XXX_Size() int
- func (m *GetContentsByContextRequest) XXX_Unmarshal(b []byte) error
- type GetSubcommentsRequest
- func (*GetSubcommentsRequest) Descriptor() ([]byte, []int)
- func (m *GetSubcommentsRequest) GetCommentCtx() *context.Comment
- func (m *GetSubcommentsRequest) GetOffset() uint32
- func (*GetSubcommentsRequest) ProtoMessage()
- func (m *GetSubcommentsRequest) Reset()
- func (m *GetSubcommentsRequest) String() string
- func (m *GetSubcommentsRequest) XXX_DiscardUnknown()
- func (m *GetSubcommentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSubcommentsRequest) XXX_Merge(src proto.Message)
- func (m *GetSubcommentsRequest) XXX_Size() int
- func (m *GetSubcommentsRequest) XXX_Unmarshal(b []byte) error
- type GetThreadRequest
- func (*GetThreadRequest) Descriptor() ([]byte, []int)
- func (m *GetThreadRequest) GetThread() *context.Thread
- func (*GetThreadRequest) ProtoMessage()
- func (m *GetThreadRequest) Reset()
- func (m *GetThreadRequest) String() string
- func (m *GetThreadRequest) XXX_DiscardUnknown()
- func (m *GetThreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetThreadRequest) XXX_Merge(src proto.Message)
- func (m *GetThreadRequest) XXX_Size() int
- func (m *GetThreadRequest) XXX_Unmarshal(b []byte) error
- type GetThreadsOverviewRequest
- func (*GetThreadsOverviewRequest) Descriptor() ([]byte, []int)
- func (m *GetThreadsOverviewRequest) GetIds() []string
- func (*GetThreadsOverviewRequest) ProtoMessage()
- func (m *GetThreadsOverviewRequest) Reset()
- func (m *GetThreadsOverviewRequest) String() string
- func (m *GetThreadsOverviewRequest) XXX_DiscardUnknown()
- func (m *GetThreadsOverviewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetThreadsOverviewRequest) XXX_Merge(src proto.Message)
- func (m *GetThreadsOverviewRequest) XXX_Size() int
- func (m *GetThreadsOverviewRequest) XXX_Unmarshal(b []byte) error
- type IdList
- func (*IdList) Descriptor() ([]byte, []int)
- func (m *IdList) GetIds() []string
- func (*IdList) ProtoMessage()
- func (m *IdList) Reset()
- func (m *IdList) String() string
- func (m *IdList) XXX_DiscardUnknown()
- func (m *IdList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IdList) XXX_Merge(src proto.Message)
- func (m *IdList) XXX_Size() int
- func (m *IdList) XXX_Unmarshal(b []byte) error
- type NotifyUser
- func (*NotifyUser) Descriptor() ([]byte, []int)
- func (m *NotifyUser) GetNotification() *dataformat.Notif
- func (m *NotifyUser) GetUserId() string
- func (*NotifyUser) ProtoMessage()
- func (m *NotifyUser) Reset()
- func (m *NotifyUser) String() string
- func (m *NotifyUser) XXX_DiscardUnknown()
- func (m *NotifyUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NotifyUser) XXX_Merge(src proto.Message)
- func (m *NotifyUser) XXX_Size() int
- func (m *NotifyUser) XXX_Unmarshal(b []byte) error
- type SaveThreadRequest
- func (*SaveThreadRequest) Descriptor() ([]byte, []int)
- func (m *SaveThreadRequest) GetThread() *context.Thread
- func (m *SaveThreadRequest) GetUserId() string
- func (*SaveThreadRequest) ProtoMessage()
- func (m *SaveThreadRequest) Reset()
- func (m *SaveThreadRequest) String() string
- func (m *SaveThreadRequest) XXX_DiscardUnknown()
- func (m *SaveThreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SaveThreadRequest) XXX_Merge(src proto.Message)
- func (m *SaveThreadRequest) XXX_Size() int
- func (m *SaveThreadRequest) XXX_Unmarshal(b []byte) error
- type SaveThreadResponse
- func (*SaveThreadResponse) Descriptor() ([]byte, []int)
- func (*SaveThreadResponse) ProtoMessage()
- func (m *SaveThreadResponse) Reset()
- func (m *SaveThreadResponse) String() string
- func (m *SaveThreadResponse) XXX_DiscardUnknown()
- func (m *SaveThreadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SaveThreadResponse) XXX_Merge(src proto.Message)
- func (m *SaveThreadResponse) XXX_Size() int
- func (m *SaveThreadResponse) XXX_Unmarshal(b []byte) error
- type SavedPattern
- func (*SavedPattern) Descriptor() ([]byte, []int)
- func (m *SavedPattern) GetDiscardIds() map[string]*IdList
- func (m *SavedPattern) GetPattern() []metadata.ContentStatus
- func (m *SavedPattern) GetUserId() string
- func (*SavedPattern) ProtoMessage()
- func (m *SavedPattern) Reset()
- func (m *SavedPattern) String() string
- func (m *SavedPattern) XXX_DiscardUnknown()
- func (m *SavedPattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SavedPattern) XXX_Merge(src proto.Message)
- func (m *SavedPattern) XXX_Size() int
- func (m *SavedPattern) XXX_Unmarshal(b []byte) error
- type UndoSaveThreadRequest
- func (*UndoSaveThreadRequest) Descriptor() ([]byte, []int)
- func (m *UndoSaveThreadRequest) GetThread() *context.Thread
- func (m *UndoSaveThreadRequest) GetUserId() string
- func (*UndoSaveThreadRequest) ProtoMessage()
- func (m *UndoSaveThreadRequest) Reset()
- func (m *UndoSaveThreadRequest) String() string
- func (m *UndoSaveThreadRequest) XXX_DiscardUnknown()
- func (m *UndoSaveThreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UndoSaveThreadRequest) XXX_Merge(src proto.Message)
- func (m *UndoSaveThreadRequest) XXX_Size() int
- func (m *UndoSaveThreadRequest) XXX_Unmarshal(b []byte) error
- type UndoSaveThreadResponse
- func (*UndoSaveThreadResponse) Descriptor() ([]byte, []int)
- func (*UndoSaveThreadResponse) ProtoMessage()
- func (m *UndoSaveThreadResponse) Reset()
- func (m *UndoSaveThreadResponse) String() string
- func (m *UndoSaveThreadResponse) XXX_DiscardUnknown()
- func (m *UndoSaveThreadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UndoSaveThreadResponse) XXX_Merge(src proto.Message)
- func (m *UndoSaveThreadResponse) XXX_Size() int
- func (m *UndoSaveThreadResponse) XXX_Unmarshal(b []byte) error
- type UndoUpvoteRequest
- func (*UndoUpvoteRequest) Descriptor() ([]byte, []int)
- func (m *UndoUpvoteRequest) GetCommentCtx() *context.Comment
- func (m *UndoUpvoteRequest) GetContentContext() isUndoUpvoteRequest_ContentContext
- func (m *UndoUpvoteRequest) GetSubcommentCtx() *context.Subcomment
- func (m *UndoUpvoteRequest) GetThreadCtx() *context.Thread
- func (m *UndoUpvoteRequest) GetUserId() string
- func (*UndoUpvoteRequest) ProtoMessage()
- func (m *UndoUpvoteRequest) Reset()
- func (m *UndoUpvoteRequest) String() string
- func (m *UndoUpvoteRequest) XXX_DiscardUnknown()
- func (m *UndoUpvoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UndoUpvoteRequest) XXX_Merge(src proto.Message)
- func (*UndoUpvoteRequest) XXX_OneofWrappers() []interface{}
- func (m *UndoUpvoteRequest) XXX_Size() int
- func (m *UndoUpvoteRequest) XXX_Unmarshal(b []byte) error
- type UndoUpvoteRequest_CommentCtx
- type UndoUpvoteRequest_SubcommentCtx
- type UndoUpvoteRequest_ThreadCtx
- type UndoUpvoteResponse
- func (*UndoUpvoteResponse) Descriptor() ([]byte, []int)
- func (*UndoUpvoteResponse) ProtoMessage()
- func (m *UndoUpvoteResponse) Reset()
- func (m *UndoUpvoteResponse) String() string
- func (m *UndoUpvoteResponse) XXX_DiscardUnknown()
- func (m *UndoUpvoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UndoUpvoteResponse) XXX_Merge(src proto.Message)
- func (m *UndoUpvoteResponse) XXX_Size() int
- func (m *UndoUpvoteResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedCrudCheropatillaServer
- func (*UnimplementedCrudCheropatillaServer) Comment(req *CommentRequest, srv CrudCheropatilla_CommentServer) error
- func (*UnimplementedCrudCheropatillaServer) CreateThread(ctx context1.Context, req *CreateThreadRequest) (*CreateThreadResponse, error)
- func (*UnimplementedCrudCheropatillaServer) DeleteContent(ctx context1.Context, req *DeleteContentRequest) (*DeleteContentResponse, error)
- func (*UnimplementedCrudCheropatillaServer) GetActiveThreadsOverview(req *GetActiveThreadsOverviewRequest, ...) error
- func (*UnimplementedCrudCheropatillaServer) GetActivityOverview(req *dataformat.Activity, srv CrudCheropatilla_GetActivityOverviewServer) error
- func (*UnimplementedCrudCheropatillaServer) GetContentsByContext(req *GetContentsByContextRequest, ...) error
- func (*UnimplementedCrudCheropatillaServer) GetSubcomments(req *GetSubcommentsRequest, srv CrudCheropatilla_GetSubcommentsServer) error
- func (*UnimplementedCrudCheropatillaServer) GetThread(ctx context1.Context, req *GetThreadRequest) (*ContentData, error)
- func (*UnimplementedCrudCheropatillaServer) GetThreadsOverview(req *GetThreadsOverviewRequest, srv CrudCheropatilla_GetThreadsOverviewServer) error
- func (*UnimplementedCrudCheropatillaServer) RecycleContent(req *ContentPattern, srv CrudCheropatilla_RecycleContentServer) error
- func (*UnimplementedCrudCheropatillaServer) SaveThread(ctx context1.Context, req *SaveThreadRequest) (*SaveThreadResponse, error)
- func (*UnimplementedCrudCheropatillaServer) UndoSaveThread(ctx context1.Context, req *UndoSaveThreadRequest) (*UndoSaveThreadResponse, error)
- func (*UnimplementedCrudCheropatillaServer) UndoUpvote(ctx context1.Context, req *UndoUpvoteRequest) (*UndoUpvoteResponse, error)
- func (*UnimplementedCrudCheropatillaServer) Upvote(req *UpvoteRequest, srv CrudCheropatilla_UpvoteServer) error
- type UnimplementedCrudGeneralServer
- func (*UnimplementedCrudGeneralServer) RecycleActivity(req *ActivityPattern, srv CrudGeneral_RecycleActivityServer) error
- func (*UnimplementedCrudGeneralServer) RecycleGeneral(req *GeneralPattern, srv CrudGeneral_RecycleGeneralServer) error
- func (*UnimplementedCrudGeneralServer) RecycleSaved(req *SavedPattern, srv CrudGeneral_RecycleSavedServer) error
- type UpvoteRequest
- func (*UpvoteRequest) Descriptor() ([]byte, []int)
- func (m *UpvoteRequest) GetCommentCtx() *context.Comment
- func (m *UpvoteRequest) GetContentContext() isUpvoteRequest_ContentContext
- func (m *UpvoteRequest) GetSubcommentCtx() *context.Subcomment
- func (m *UpvoteRequest) GetThreadCtx() *context.Thread
- func (m *UpvoteRequest) GetUserId() string
- func (*UpvoteRequest) ProtoMessage()
- func (m *UpvoteRequest) Reset()
- func (m *UpvoteRequest) String() string
- func (m *UpvoteRequest) XXX_DiscardUnknown()
- func (m *UpvoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpvoteRequest) XXX_Merge(src proto.Message)
- func (*UpvoteRequest) XXX_OneofWrappers() []interface{}
- func (m *UpvoteRequest) XXX_Size() int
- func (m *UpvoteRequest) XXX_Unmarshal(b []byte) error
- type UpvoteRequest_CommentCtx
- type UpvoteRequest_SubcommentCtx
- type UpvoteRequest_ThreadCtx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCrudCheropatillaServer ¶
func RegisterCrudCheropatillaServer(s *grpc.Server, srv CrudCheropatillaServer)
func RegisterCrudGeneralServer ¶
func RegisterCrudGeneralServer(s *grpc.Server, srv CrudGeneralServer)
Types ¶
type ActivityPattern ¶
type ActivityPattern struct { Pattern []metadata.ContentStatus `protobuf:"varint,1,rep,packed,name=pattern,proto3,enum=metadata.ContentStatus" json:"pattern,omitempty"` // 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,3,rep,name=users,proto3" json:"users,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ActivityPattern holds an array of ContentStatus, composing up a pattern of content that's expected to get back. It is intended for recycling activity from different users.
func (*ActivityPattern) Descriptor ¶
func (*ActivityPattern) Descriptor() ([]byte, []int)
func (*ActivityPattern) GetDiscardIds ¶
func (m *ActivityPattern) GetDiscardIds() map[string]*dataformat.Activity
func (*ActivityPattern) GetPattern ¶
func (m *ActivityPattern) GetPattern() []metadata.ContentStatus
func (*ActivityPattern) GetUsers ¶
func (m *ActivityPattern) GetUsers() []string
func (*ActivityPattern) ProtoMessage ¶
func (*ActivityPattern) ProtoMessage()
func (*ActivityPattern) Reset ¶
func (m *ActivityPattern) Reset()
func (*ActivityPattern) String ¶
func (m *ActivityPattern) String() string
func (*ActivityPattern) XXX_DiscardUnknown ¶
func (m *ActivityPattern) XXX_DiscardUnknown()
func (*ActivityPattern) XXX_Marshal ¶
func (m *ActivityPattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ActivityPattern) XXX_Merge ¶
func (m *ActivityPattern) XXX_Merge(src proto.Message)
func (*ActivityPattern) XXX_Size ¶
func (m *ActivityPattern) XXX_Size() int
func (*ActivityPattern) XXX_Unmarshal ¶
func (m *ActivityPattern) XXX_Unmarshal(b []byte) error
type CommentRequest ¶
type CommentRequest struct { // A comment has the same basic structure as regular content but doesn't have a title. Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` FtFile string `protobuf:"bytes,2,opt,name=ft_file,json=ftFile,proto3" json:"ft_file,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` PublishDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=publish_date,json=publishDate,proto3" json:"publish_date,omitempty"` // The comment event occurs either in a thread or in a comment. // // Types that are valid to be assigned to ContentContext: // *CommentRequest_ThreadCtx // *CommentRequest_CommentCtx ContentContext isCommentRequest_ContentContext `protobuf_oneof:"content_context"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CommentRequest holds information about the comment event.
func (*CommentRequest) Descriptor ¶
func (*CommentRequest) Descriptor() ([]byte, []int)
func (*CommentRequest) GetCommentCtx ¶
func (m *CommentRequest) GetCommentCtx() *context.Comment
func (*CommentRequest) GetContent ¶
func (m *CommentRequest) GetContent() string
func (*CommentRequest) GetContentContext ¶
func (m *CommentRequest) GetContentContext() isCommentRequest_ContentContext
func (*CommentRequest) GetFtFile ¶
func (m *CommentRequest) GetFtFile() string
func (*CommentRequest) GetPublishDate ¶
func (m *CommentRequest) GetPublishDate() *timestamp.Timestamp
func (*CommentRequest) GetThreadCtx ¶
func (m *CommentRequest) GetThreadCtx() *context.Thread
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_OneofWrappers ¶
func (*CommentRequest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*CommentRequest) XXX_Size ¶
func (m *CommentRequest) XXX_Size() int
func (*CommentRequest) XXX_Unmarshal ¶
func (m *CommentRequest) XXX_Unmarshal(b []byte) error
type Content ¶
type Content struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` FtFile string `protobuf:"bytes,3,opt,name=ft_file,json=ftFile,proto3" json:"ft_file,omitempty"` PublishDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=publish_date,json=publishDate,proto3" json:"publish_date,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Content) Descriptor ¶
func (*Content) GetContent ¶
func (*Content) GetPublishDate ¶
func (*Content) ProtoMessage ¶
func (*Content) ProtoMessage()
func (*Content) XXX_DiscardUnknown ¶
func (m *Content) XXX_DiscardUnknown()
func (*Content) XXX_Marshal ¶
func (*Content) XXX_Unmarshal ¶
type ContentAuthor ¶
type ContentAuthor struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ContentAuthor) Descriptor ¶
func (*ContentAuthor) Descriptor() ([]byte, []int)
func (*ContentAuthor) GetAlias ¶
func (m *ContentAuthor) GetAlias() string
func (*ContentAuthor) GetId ¶
func (m *ContentAuthor) GetId() string
func (*ContentAuthor) GetUsername ¶
func (m *ContentAuthor) GetUsername() string
func (*ContentAuthor) ProtoMessage ¶
func (*ContentAuthor) ProtoMessage()
func (*ContentAuthor) Reset ¶
func (m *ContentAuthor) Reset()
func (*ContentAuthor) String ¶
func (m *ContentAuthor) String() string
func (*ContentAuthor) XXX_DiscardUnknown ¶
func (m *ContentAuthor) XXX_DiscardUnknown()
func (*ContentAuthor) XXX_Marshal ¶
func (m *ContentAuthor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContentAuthor) XXX_Merge ¶
func (m *ContentAuthor) XXX_Merge(src proto.Message)
func (*ContentAuthor) XXX_Size ¶
func (m *ContentAuthor) XXX_Size() int
func (*ContentAuthor) XXX_Unmarshal ¶
func (m *ContentAuthor) XXX_Unmarshal(b []byte) error
type ContentContext ¶
type ContentContext struct { Key *context.Context `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ContentContext) Descriptor ¶
func (*ContentContext) Descriptor() ([]byte, []int)
func (*ContentContext) GetKey ¶
func (m *ContentContext) GetKey() *context.Context
func (*ContentContext) GetStatus ¶
func (m *ContentContext) GetStatus() string
func (*ContentContext) ProtoMessage ¶
func (*ContentContext) ProtoMessage()
func (*ContentContext) Reset ¶
func (m *ContentContext) Reset()
func (*ContentContext) String ¶
func (m *ContentContext) String() string
func (*ContentContext) XXX_DiscardUnknown ¶
func (m *ContentContext) XXX_DiscardUnknown()
func (*ContentContext) XXX_Marshal ¶
func (m *ContentContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContentContext) XXX_Merge ¶
func (m *ContentContext) XXX_Merge(src proto.Message)
func (*ContentContext) XXX_Size ¶
func (m *ContentContext) XXX_Size() int
func (*ContentContext) XXX_Unmarshal ¶
func (m *ContentContext) XXX_Unmarshal(b []byte) error
type ContentData ¶
type ContentData struct { Author *ContentAuthor `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"` Content *Content `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Metadata *ContentMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ContentData) Descriptor ¶
func (*ContentData) Descriptor() ([]byte, []int)
func (*ContentData) GetAuthor ¶
func (m *ContentData) GetAuthor() *ContentAuthor
func (*ContentData) GetContent ¶
func (m *ContentData) GetContent() *Content
func (*ContentData) GetMetadata ¶
func (m *ContentData) GetMetadata() *ContentMetadata
func (*ContentData) ProtoMessage ¶
func (*ContentData) ProtoMessage()
func (*ContentData) Reset ¶
func (m *ContentData) Reset()
func (*ContentData) String ¶
func (m *ContentData) String() string
func (*ContentData) XXX_DiscardUnknown ¶
func (m *ContentData) XXX_DiscardUnknown()
func (*ContentData) XXX_Marshal ¶
func (m *ContentData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContentData) XXX_Merge ¶
func (m *ContentData) XXX_Merge(src proto.Message)
func (*ContentData) XXX_Size ¶
func (m *ContentData) XXX_Size() int
func (*ContentData) XXX_Unmarshal ¶
func (m *ContentData) XXX_Unmarshal(b []byte) error
type ContentMetadata ¶
type ContentMetadata struct { // id contains the THREAD ID Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // section is the name of the section Section string `protobuf:"bytes,2,opt,name=section,proto3" json:"section,omitempty"` // permalink is the full url to the content, including any fragment Permalink string `protobuf:"bytes,3,opt,name=permalink,proto3" json:"permalink,omitempty"` Upvotes uint32 `protobuf:"varint,4,opt,name=upvotes,proto3" json:"upvotes,omitempty"` Replies uint32 `protobuf:"varint,5,opt,name=replies,proto3" json:"replies,omitempty"` VoterIds []string `protobuf:"bytes,6,rep,name=voter_ids,json=voterIds,proto3" json:"voter_ids,omitempty"` ReplierIds []string `protobuf:"bytes,7,rep,name=replier_ids,json=replierIds,proto3" json:"replier_ids,omitempty"` // list of users who saved this content UsersWhoSaved []string `protobuf:"bytes,8,rep,name=users_who_saved,json=usersWhoSaved,proto3" json:"users_who_saved,omitempty"` // section_id is the id of the section SectionId string `protobuf:"bytes,9,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ContentMetadata) Descriptor ¶
func (*ContentMetadata) Descriptor() ([]byte, []int)
func (*ContentMetadata) GetId ¶
func (m *ContentMetadata) GetId() string
func (*ContentMetadata) GetPermalink ¶
func (m *ContentMetadata) GetPermalink() string
func (*ContentMetadata) GetReplierIds ¶
func (m *ContentMetadata) GetReplierIds() []string
func (*ContentMetadata) GetReplies ¶
func (m *ContentMetadata) GetReplies() uint32
func (*ContentMetadata) GetSection ¶
func (m *ContentMetadata) GetSection() string
func (*ContentMetadata) GetSectionId ¶
func (m *ContentMetadata) GetSectionId() string
func (*ContentMetadata) GetUpvotes ¶
func (m *ContentMetadata) GetUpvotes() uint32
func (*ContentMetadata) GetUsersWhoSaved ¶
func (m *ContentMetadata) GetUsersWhoSaved() []string
func (*ContentMetadata) GetVoterIds ¶
func (m *ContentMetadata) GetVoterIds() []string
func (*ContentMetadata) ProtoMessage ¶
func (*ContentMetadata) ProtoMessage()
func (*ContentMetadata) Reset ¶
func (m *ContentMetadata) Reset()
func (*ContentMetadata) String ¶
func (m *ContentMetadata) String() string
func (*ContentMetadata) XXX_DiscardUnknown ¶
func (m *ContentMetadata) XXX_DiscardUnknown()
func (*ContentMetadata) XXX_Marshal ¶
func (m *ContentMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContentMetadata) XXX_Merge ¶
func (m *ContentMetadata) XXX_Merge(src proto.Message)
func (*ContentMetadata) XXX_Size ¶
func (m *ContentMetadata) XXX_Size() int
func (*ContentMetadata) XXX_Unmarshal ¶
func (m *ContentMetadata) XXX_Unmarshal(b []byte) error
type ContentOverview ¶
type ContentOverview struct { Metadata *metadata.Content `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` Context *context.Context `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ContentOverview) Descriptor ¶
func (*ContentOverview) Descriptor() ([]byte, []int)
func (*ContentOverview) GetContext ¶
func (m *ContentOverview) GetContext() *context.Context
func (*ContentOverview) GetMetadata ¶
func (m *ContentOverview) GetMetadata() *metadata.Content
func (*ContentOverview) ProtoMessage ¶
func (*ContentOverview) ProtoMessage()
func (*ContentOverview) Reset ¶
func (m *ContentOverview) Reset()
func (*ContentOverview) String ¶
func (m *ContentOverview) String() string
func (*ContentOverview) XXX_DiscardUnknown ¶
func (m *ContentOverview) XXX_DiscardUnknown()
func (*ContentOverview) XXX_Marshal ¶
func (m *ContentOverview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContentOverview) XXX_Merge ¶
func (m *ContentOverview) XXX_Merge(src proto.Message)
func (*ContentOverview) XXX_Size ¶
func (m *ContentOverview) XXX_Size() int
func (*ContentOverview) XXX_Unmarshal ¶
func (m *ContentOverview) XXX_Unmarshal(b []byte) error
type ContentPattern ¶
type ContentPattern struct { Pattern []metadata.ContentStatus `protobuf:"varint,1,rep,packed,name=pattern,proto3,enum=metadata.ContentStatus" json:"pattern,omitempty"` // discard_ids is an array of content ids that must not be returned back, since it's // content the user has already seen. DiscardIds []string `protobuf:"bytes,2,rep,name=discard_ids,json=discardIds,proto3" json:"discard_ids,omitempty"` // content_context represents the place in which the content must be retrieved from. // // Types that are valid to be assigned to ContentContext: // *ContentPattern_SectionCtx // *ContentPattern_ThreadCtx ContentContext isContentPattern_ContentContext `protobuf_oneof:"content_context"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ContentPattern holds an array of ContentStatus, composing up a pattern of content that's expected to get back. It is intended for recycling content of a specific type: either threads in a section, or comments in a thread.
func (*ContentPattern) Descriptor ¶
func (*ContentPattern) Descriptor() ([]byte, []int)
func (*ContentPattern) GetContentContext ¶
func (m *ContentPattern) GetContentContext() isContentPattern_ContentContext
func (*ContentPattern) GetDiscardIds ¶
func (m *ContentPattern) GetDiscardIds() []string
func (*ContentPattern) GetPattern ¶
func (m *ContentPattern) GetPattern() []metadata.ContentStatus
func (*ContentPattern) GetSectionCtx ¶
func (m *ContentPattern) GetSectionCtx() *context.Section
func (*ContentPattern) GetThreadCtx ¶
func (m *ContentPattern) GetThreadCtx() *context.Thread
func (*ContentPattern) ProtoMessage ¶
func (*ContentPattern) ProtoMessage()
func (*ContentPattern) Reset ¶
func (m *ContentPattern) Reset()
func (*ContentPattern) String ¶
func (m *ContentPattern) String() string
func (*ContentPattern) XXX_DiscardUnknown ¶
func (m *ContentPattern) XXX_DiscardUnknown()
func (*ContentPattern) XXX_Marshal ¶
func (m *ContentPattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContentPattern) XXX_Merge ¶
func (m *ContentPattern) XXX_Merge(src proto.Message)
func (*ContentPattern) XXX_OneofWrappers ¶
func (*ContentPattern) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ContentPattern) XXX_Size ¶
func (m *ContentPattern) XXX_Size() int
func (*ContentPattern) XXX_Unmarshal ¶
func (m *ContentPattern) XXX_Unmarshal(b []byte) error
type ContentRule ¶
type ContentRule struct { Data *ContentData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // Types that are valid to be assigned to ContentContext: // *ContentRule_ThreadCtx // *ContentRule_CommentCtx // *ContentRule_SubcommentCtx ContentContext isContentRule_ContentContext `protobuf_oneof:"content_context"` // Status holds either NEW, REL or TOP Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ContentRule holds a piece of content, its current status and its type.
func (*ContentRule) Descriptor ¶
func (*ContentRule) Descriptor() ([]byte, []int)
func (*ContentRule) GetCommentCtx ¶
func (m *ContentRule) GetCommentCtx() *context.Comment
func (*ContentRule) GetContentContext ¶
func (m *ContentRule) GetContentContext() isContentRule_ContentContext
func (*ContentRule) GetData ¶
func (m *ContentRule) GetData() *ContentData
func (*ContentRule) GetStatus ¶
func (m *ContentRule) GetStatus() string
func (*ContentRule) GetSubcommentCtx ¶
func (m *ContentRule) GetSubcommentCtx() *context.Subcomment
func (*ContentRule) GetThreadCtx ¶
func (m *ContentRule) GetThreadCtx() *context.Thread
func (*ContentRule) ProtoMessage ¶
func (*ContentRule) ProtoMessage()
func (*ContentRule) Reset ¶
func (m *ContentRule) Reset()
func (*ContentRule) String ¶
func (m *ContentRule) String() string
func (*ContentRule) XXX_DiscardUnknown ¶
func (m *ContentRule) XXX_DiscardUnknown()
func (*ContentRule) XXX_Marshal ¶
func (m *ContentRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContentRule) XXX_Merge ¶
func (m *ContentRule) XXX_Merge(src proto.Message)
func (*ContentRule) XXX_OneofWrappers ¶
func (*ContentRule) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ContentRule) XXX_Size ¶
func (m *ContentRule) XXX_Size() int
func (*ContentRule) XXX_Unmarshal ¶
func (m *ContentRule) XXX_Unmarshal(b []byte) error
type ContentRule_CommentCtx ¶
type ContentRule_SubcommentCtx ¶
type ContentRule_SubcommentCtx struct {
SubcommentCtx *context.Subcomment `protobuf:"bytes,4,opt,name=subcomment_ctx,json=subcommentCtx,proto3,oneof"`
}
type ContentRule_ThreadCtx ¶
type CreateThreadRequest ¶
type CreateThreadRequest struct { Content *Content `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` SectionCtx *context.Section `protobuf:"bytes,2,opt,name=section_ctx,json=sectionCtx,proto3" json:"section_ctx,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CreateThreadRequest holds the content of the thread, the section at which the content is being created and the id of the author.
func (*CreateThreadRequest) Descriptor ¶
func (*CreateThreadRequest) Descriptor() ([]byte, []int)
func (*CreateThreadRequest) GetContent ¶
func (m *CreateThreadRequest) GetContent() *Content
func (*CreateThreadRequest) GetSectionCtx ¶
func (m *CreateThreadRequest) GetSectionCtx() *context.Section
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 { Permalink string `protobuf:"bytes,1,opt,name=permalink,proto3" json:"permalink,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CreateThreadResponse holds the relative URL of the thread just created
func (*CreateThreadResponse) Descriptor ¶
func (*CreateThreadResponse) Descriptor() ([]byte, []int)
func (*CreateThreadResponse) GetPermalink ¶
func (m *CreateThreadResponse) GetPermalink() string
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 CrudCheropatillaClient ¶
type CrudCheropatillaClient interface { // Get new feed of either threads in a section or comments in a thread. // // In case of being called in the context of a section, it returns only // threads that are currently active, as opposed to comments in a thread, // in which case the type of content is considered always active, despite // the current status of the thread they belong to. // // It may return a codes.InvalidArgument error in case of being passed a // request with a nil ContentContext or a codes.Internal error in case of // a database querying or network issue. RecycleContent(ctx context1.Context, in *ContentPattern, opts ...grpc.CallOption) (CrudCheropatilla_RecycleContentClient, error) // Get metadata of active threads. GetActiveThreadsOverview(ctx context1.Context, in *GetActiveThreadsOverviewRequest, opts ...grpc.CallOption) (CrudCheropatilla_GetActiveThreadsOverviewClient, error) // Get metadata of threads along with the section information. GetThreadsOverview(ctx context1.Context, in *GetThreadsOverviewRequest, opts ...grpc.CallOption) (CrudCheropatilla_GetThreadsOverviewClient, error) // Get metadata of contents along with their context. GetActivityOverview(ctx context1.Context, in *dataformat.Activity, opts ...grpc.CallOption) (CrudCheropatilla_GetActivityOverviewClient, error) // Get data of contents by their context; either thread, comment or subcomment. GetContentsByContext(ctx context1.Context, in *GetContentsByContextRequest, opts ...grpc.CallOption) (CrudCheropatilla_GetContentsByContextClient, error) // Post upvote on thread, comment or subcomment Upvote(ctx context1.Context, in *UpvoteRequest, opts ...grpc.CallOption) (CrudCheropatilla_UpvoteClient, error) // Undo upvote on a thread, comment or subcomment UndoUpvote(ctx context1.Context, in *UndoUpvoteRequest, opts ...grpc.CallOption) (*UndoUpvoteResponse, error) // Post comment on a thread or in a comment Comment(ctx context1.Context, in *CommentRequest, opts ...grpc.CallOption) (CrudCheropatilla_CommentClient, error) // Update a thread, comment or subcomment // rpc UpdateContent(UpdateContentRequest) returns (stream NotifyUser) {} // Delete a thread, comment or subcomment DeleteContent(ctx context1.Context, in *DeleteContentRequest, opts ...grpc.CallOption) (*DeleteContentResponse, error) // Post a thread to create CreateThread(ctx context1.Context, in *CreateThreadRequest, opts ...grpc.CallOption) (*CreateThreadResponse, error) // Get a single thread GetThread(ctx context1.Context, in *GetThreadRequest, opts ...grpc.CallOption) (*ContentData, error) // Get a comment's comments GetSubcomments(ctx context1.Context, in *GetSubcommentsRequest, opts ...grpc.CallOption) (CrudCheropatilla_GetSubcommentsClient, error) // Request to save thread SaveThread(ctx context1.Context, in *SaveThreadRequest, opts ...grpc.CallOption) (*SaveThreadResponse, error) // Request to remove thread from user's list of saved threads UndoSaveThread(ctx context1.Context, in *UndoSaveThreadRequest, opts ...grpc.CallOption) (*UndoSaveThreadResponse, error) }
CrudCheropatillaClient is the client API for CrudCheropatilla service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCrudCheropatillaClient ¶
func NewCrudCheropatillaClient(cc grpc.ClientConnInterface) CrudCheropatillaClient
type CrudCheropatillaServer ¶
type CrudCheropatillaServer interface { // Get new feed of either threads in a section or comments in a thread. // // In case of being called in the context of a section, it returns only // threads that are currently active, as opposed to comments in a thread, // in which case the type of content is considered always active, despite // the current status of the thread they belong to. // // It may return a codes.InvalidArgument error in case of being passed a // request with a nil ContentContext or a codes.Internal error in case of // a database querying or network issue. RecycleContent(*ContentPattern, CrudCheropatilla_RecycleContentServer) error // Get metadata of active threads. GetActiveThreadsOverview(*GetActiveThreadsOverviewRequest, CrudCheropatilla_GetActiveThreadsOverviewServer) error // Get metadata of threads along with the section information. GetThreadsOverview(*GetThreadsOverviewRequest, CrudCheropatilla_GetThreadsOverviewServer) error // Get metadata of contents along with their context. GetActivityOverview(*dataformat.Activity, CrudCheropatilla_GetActivityOverviewServer) error // Get data of contents by their context; either thread, comment or subcomment. GetContentsByContext(*GetContentsByContextRequest, CrudCheropatilla_GetContentsByContextServer) error // Post upvote on thread, comment or subcomment Upvote(*UpvoteRequest, CrudCheropatilla_UpvoteServer) error // Undo upvote on a thread, comment or subcomment UndoUpvote(context1.Context, *UndoUpvoteRequest) (*UndoUpvoteResponse, error) // Post comment on a thread or in a comment Comment(*CommentRequest, CrudCheropatilla_CommentServer) error // Update a thread, comment or subcomment // rpc UpdateContent(UpdateContentRequest) returns (stream NotifyUser) {} // Delete a thread, comment or subcomment DeleteContent(context1.Context, *DeleteContentRequest) (*DeleteContentResponse, error) // Post a thread to create CreateThread(context1.Context, *CreateThreadRequest) (*CreateThreadResponse, error) // Get a single thread GetThread(context1.Context, *GetThreadRequest) (*ContentData, error) // Get a comment's comments GetSubcomments(*GetSubcommentsRequest, CrudCheropatilla_GetSubcommentsServer) error // Request to save thread SaveThread(context1.Context, *SaveThreadRequest) (*SaveThreadResponse, error) // Request to remove thread from user's list of saved threads UndoSaveThread(context1.Context, *UndoSaveThreadRequest) (*UndoSaveThreadResponse, error) }
CrudCheropatillaServer is the server API for CrudCheropatilla service.
type CrudCheropatilla_CommentClient ¶
type CrudCheropatilla_CommentClient interface { Recv() (*NotifyUser, error) grpc.ClientStream }
type CrudCheropatilla_CommentServer ¶
type CrudCheropatilla_CommentServer interface { Send(*NotifyUser) error grpc.ServerStream }
type CrudCheropatilla_GetActiveThreadsOverviewClient ¶
type CrudCheropatilla_GetActiveThreadsOverviewClient interface { Recv() (*metadata.GeneralContent, error) grpc.ClientStream }
type CrudCheropatilla_GetActiveThreadsOverviewServer ¶
type CrudCheropatilla_GetActiveThreadsOverviewServer interface { Send(*metadata.GeneralContent) error grpc.ServerStream }
type CrudCheropatilla_GetActivityOverviewClient ¶
type CrudCheropatilla_GetActivityOverviewClient interface { Recv() (*ContentOverview, error) grpc.ClientStream }
type CrudCheropatilla_GetActivityOverviewServer ¶
type CrudCheropatilla_GetActivityOverviewServer interface { Send(*ContentOverview) error grpc.ServerStream }
type CrudCheropatilla_GetContentsByContextClient ¶
type CrudCheropatilla_GetContentsByContextClient interface { Recv() (*ContentRule, error) grpc.ClientStream }
type CrudCheropatilla_GetContentsByContextServer ¶
type CrudCheropatilla_GetContentsByContextServer interface { Send(*ContentRule) error grpc.ServerStream }
type CrudCheropatilla_GetSubcommentsClient ¶
type CrudCheropatilla_GetSubcommentsClient interface { Recv() (*ContentRule, error) grpc.ClientStream }
type CrudCheropatilla_GetSubcommentsServer ¶
type CrudCheropatilla_GetSubcommentsServer interface { Send(*ContentRule) error grpc.ServerStream }
type CrudCheropatilla_GetThreadsOverviewClient ¶
type CrudCheropatilla_GetThreadsOverviewClient interface { Recv() (*metadata.GeneralContent, error) grpc.ClientStream }
type CrudCheropatilla_GetThreadsOverviewServer ¶
type CrudCheropatilla_GetThreadsOverviewServer interface { Send(*metadata.GeneralContent) error grpc.ServerStream }
type CrudCheropatilla_RecycleContentClient ¶
type CrudCheropatilla_RecycleContentClient interface { Recv() (*ContentRule, error) grpc.ClientStream }
type CrudCheropatilla_RecycleContentServer ¶
type CrudCheropatilla_RecycleContentServer interface { Send(*ContentRule) error grpc.ServerStream }
type CrudCheropatilla_UpvoteClient ¶
type CrudCheropatilla_UpvoteClient interface { Recv() (*NotifyUser, error) grpc.ClientStream }
type CrudCheropatilla_UpvoteServer ¶
type CrudCheropatilla_UpvoteServer interface { Send(*NotifyUser) error grpc.ServerStream }
type CrudGeneralClient ¶
type CrudGeneralClient interface { // Get new feed of threads in general (from multiple sections) RecycleGeneral(ctx context1.Context, in *GeneralPattern, opts ...grpc.CallOption) (CrudGeneral_RecycleGeneralClient, error) // Get new activity from either multiple users or a single user. RecycleActivity(ctx context1.Context, in *ActivityPattern, opts ...grpc.CallOption) (CrudGeneral_RecycleActivityClient, error) // Get new feed of saved threads of a user RecycleSaved(ctx context1.Context, in *SavedPattern, opts ...grpc.CallOption) (CrudGeneral_RecycleSavedClient, error) }
CrudGeneralClient is the client API for CrudGeneral service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCrudGeneralClient ¶
func NewCrudGeneralClient(cc grpc.ClientConnInterface) CrudGeneralClient
type CrudGeneralServer ¶
type CrudGeneralServer interface { // Get new feed of threads in general (from multiple sections) RecycleGeneral(*GeneralPattern, CrudGeneral_RecycleGeneralServer) error // Get new activity from either multiple users or a single user. RecycleActivity(*ActivityPattern, CrudGeneral_RecycleActivityServer) error // Get new feed of saved threads of a user RecycleSaved(*SavedPattern, CrudGeneral_RecycleSavedServer) error }
CrudGeneralServer is the server API for CrudGeneral service.
type CrudGeneral_RecycleActivityClient ¶
type CrudGeneral_RecycleActivityClient interface { Recv() (*ContentRule, error) grpc.ClientStream }
type CrudGeneral_RecycleActivityServer ¶
type CrudGeneral_RecycleActivityServer interface { Send(*ContentRule) error grpc.ServerStream }
type CrudGeneral_RecycleGeneralClient ¶
type CrudGeneral_RecycleGeneralClient interface { Recv() (*ContentRule, error) grpc.ClientStream }
type CrudGeneral_RecycleGeneralServer ¶
type CrudGeneral_RecycleGeneralServer interface { Send(*ContentRule) error grpc.ServerStream }
type CrudGeneral_RecycleSavedClient ¶
type CrudGeneral_RecycleSavedClient interface { Recv() (*ContentRule, error) grpc.ClientStream }
type CrudGeneral_RecycleSavedServer ¶
type CrudGeneral_RecycleSavedServer interface { Send(*ContentRule) error grpc.ServerStream }
type DeleteContentRequest ¶
type DeleteContentRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The delete content event occurs either in a thread, in a comment or in a subcomment. // // Types that are valid to be assigned to ContentContext: // *DeleteContentRequest_ThreadCtx // *DeleteContentRequest_CommentCtx // *DeleteContentRequest_SubcommentCtx ContentContext isDeleteContentRequest_ContentContext `protobuf_oneof:"content_context"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DeleteContentRequest holds information about the delete content event.
func (*DeleteContentRequest) Descriptor ¶
func (*DeleteContentRequest) Descriptor() ([]byte, []int)
func (*DeleteContentRequest) GetCommentCtx ¶
func (m *DeleteContentRequest) GetCommentCtx() *context.Comment
func (*DeleteContentRequest) GetContentContext ¶
func (m *DeleteContentRequest) GetContentContext() isDeleteContentRequest_ContentContext
func (*DeleteContentRequest) GetSubcommentCtx ¶
func (m *DeleteContentRequest) GetSubcommentCtx() *context.Subcomment
func (*DeleteContentRequest) GetThreadCtx ¶
func (m *DeleteContentRequest) GetThreadCtx() *context.Thread
func (*DeleteContentRequest) GetUserId ¶
func (m *DeleteContentRequest) GetUserId() string
func (*DeleteContentRequest) ProtoMessage ¶
func (*DeleteContentRequest) ProtoMessage()
func (*DeleteContentRequest) Reset ¶
func (m *DeleteContentRequest) Reset()
func (*DeleteContentRequest) String ¶
func (m *DeleteContentRequest) String() string
func (*DeleteContentRequest) XXX_DiscardUnknown ¶
func (m *DeleteContentRequest) XXX_DiscardUnknown()
func (*DeleteContentRequest) XXX_Marshal ¶
func (m *DeleteContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteContentRequest) XXX_Merge ¶
func (m *DeleteContentRequest) XXX_Merge(src proto.Message)
func (*DeleteContentRequest) XXX_OneofWrappers ¶
func (*DeleteContentRequest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*DeleteContentRequest) XXX_Size ¶
func (m *DeleteContentRequest) XXX_Size() int
func (*DeleteContentRequest) XXX_Unmarshal ¶
func (m *DeleteContentRequest) XXX_Unmarshal(b []byte) error
type DeleteContentRequest_SubcommentCtx ¶
type DeleteContentRequest_SubcommentCtx struct {
SubcommentCtx *context.Subcomment `protobuf:"bytes,4,opt,name=subcomment_ctx,json=subcommentCtx,proto3,oneof"`
}
type DeleteContentResponse ¶
type DeleteContentResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteContentResponse) Descriptor ¶
func (*DeleteContentResponse) Descriptor() ([]byte, []int)
func (*DeleteContentResponse) ProtoMessage ¶
func (*DeleteContentResponse) ProtoMessage()
func (*DeleteContentResponse) Reset ¶
func (m *DeleteContentResponse) Reset()
func (*DeleteContentResponse) String ¶
func (m *DeleteContentResponse) String() string
func (*DeleteContentResponse) XXX_DiscardUnknown ¶
func (m *DeleteContentResponse) XXX_DiscardUnknown()
func (*DeleteContentResponse) XXX_Marshal ¶
func (m *DeleteContentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteContentResponse) XXX_Merge ¶
func (m *DeleteContentResponse) XXX_Merge(src proto.Message)
func (*DeleteContentResponse) XXX_Size ¶
func (m *DeleteContentResponse) XXX_Size() int
func (*DeleteContentResponse) XXX_Unmarshal ¶
func (m *DeleteContentResponse) XXX_Unmarshal(b []byte) error
type GeneralPattern ¶
type GeneralPattern struct { Pattern []metadata.ContentStatus `protobuf:"varint,1,rep,packed,name=pattern,proto3,enum=metadata.ContentStatus" json:"pattern,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]*IdList `` /* 179-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GeneralPattern holds an array of ContentStatus, composing up a pattern of content that's expected to get back. It is intended for recycling content from every section.
func (*GeneralPattern) Descriptor ¶
func (*GeneralPattern) Descriptor() ([]byte, []int)
func (*GeneralPattern) GetDiscardIds ¶
func (m *GeneralPattern) GetDiscardIds() map[string]*IdList
func (*GeneralPattern) GetPattern ¶
func (m *GeneralPattern) GetPattern() []metadata.ContentStatus
func (*GeneralPattern) ProtoMessage ¶
func (*GeneralPattern) ProtoMessage()
func (*GeneralPattern) Reset ¶
func (m *GeneralPattern) Reset()
func (*GeneralPattern) String ¶
func (m *GeneralPattern) String() string
func (*GeneralPattern) XXX_DiscardUnknown ¶
func (m *GeneralPattern) XXX_DiscardUnknown()
func (*GeneralPattern) XXX_Marshal ¶
func (m *GeneralPattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GeneralPattern) XXX_Merge ¶
func (m *GeneralPattern) XXX_Merge(src proto.Message)
func (*GeneralPattern) XXX_Size ¶
func (m *GeneralPattern) XXX_Size() int
func (*GeneralPattern) XXX_Unmarshal ¶
func (m *GeneralPattern) XXX_Unmarshal(b []byte) error
type GetActiveThreadsOverviewRequest ¶
type GetActiveThreadsOverviewRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetActiveThreadsOverviewRequest) Descriptor ¶
func (*GetActiveThreadsOverviewRequest) Descriptor() ([]byte, []int)
func (*GetActiveThreadsOverviewRequest) ProtoMessage ¶
func (*GetActiveThreadsOverviewRequest) ProtoMessage()
func (*GetActiveThreadsOverviewRequest) Reset ¶
func (m *GetActiveThreadsOverviewRequest) Reset()
func (*GetActiveThreadsOverviewRequest) String ¶
func (m *GetActiveThreadsOverviewRequest) String() string
func (*GetActiveThreadsOverviewRequest) XXX_DiscardUnknown ¶
func (m *GetActiveThreadsOverviewRequest) XXX_DiscardUnknown()
func (*GetActiveThreadsOverviewRequest) XXX_Marshal ¶
func (m *GetActiveThreadsOverviewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetActiveThreadsOverviewRequest) XXX_Merge ¶
func (m *GetActiveThreadsOverviewRequest) XXX_Merge(src proto.Message)
func (*GetActiveThreadsOverviewRequest) XXX_Size ¶
func (m *GetActiveThreadsOverviewRequest) XXX_Size() int
func (*GetActiveThreadsOverviewRequest) XXX_Unmarshal ¶
func (m *GetActiveThreadsOverviewRequest) XXX_Unmarshal(b []byte) error
type GetContentsByContextRequest ¶
type GetContentsByContextRequest struct { Contents []*ContentContext `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetContentsByContextRequest) Descriptor ¶
func (*GetContentsByContextRequest) Descriptor() ([]byte, []int)
func (*GetContentsByContextRequest) GetContents ¶
func (m *GetContentsByContextRequest) GetContents() []*ContentContext
func (*GetContentsByContextRequest) ProtoMessage ¶
func (*GetContentsByContextRequest) ProtoMessage()
func (*GetContentsByContextRequest) Reset ¶
func (m *GetContentsByContextRequest) Reset()
func (*GetContentsByContextRequest) String ¶
func (m *GetContentsByContextRequest) String() string
func (*GetContentsByContextRequest) XXX_DiscardUnknown ¶
func (m *GetContentsByContextRequest) XXX_DiscardUnknown()
func (*GetContentsByContextRequest) XXX_Marshal ¶
func (m *GetContentsByContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetContentsByContextRequest) XXX_Merge ¶
func (m *GetContentsByContextRequest) XXX_Merge(src proto.Message)
func (*GetContentsByContextRequest) XXX_Size ¶
func (m *GetContentsByContextRequest) XXX_Size() int
func (*GetContentsByContextRequest) XXX_Unmarshal ¶
func (m *GetContentsByContextRequest) XXX_Unmarshal(b []byte) error
type GetSubcommentsRequest ¶
type GetSubcommentsRequest struct { // comment_ctx indicates what comment is being requested CommentCtx *context.Comment `protobuf:"bytes,1,opt,name=comment_ctx,json=commentCtx,proto3" json:"comment_ctx,omitempty"` // offset indicates the number of comments to be ignored, since subcomments // are stored and returned sequentially in cronological order Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetSubcommentsRequest is the message for requesting a comment's subcomments.
func (*GetSubcommentsRequest) Descriptor ¶
func (*GetSubcommentsRequest) Descriptor() ([]byte, []int)
func (*GetSubcommentsRequest) GetCommentCtx ¶
func (m *GetSubcommentsRequest) GetCommentCtx() *context.Comment
func (*GetSubcommentsRequest) GetOffset ¶
func (m *GetSubcommentsRequest) GetOffset() uint32
func (*GetSubcommentsRequest) ProtoMessage ¶
func (*GetSubcommentsRequest) ProtoMessage()
func (*GetSubcommentsRequest) Reset ¶
func (m *GetSubcommentsRequest) Reset()
func (*GetSubcommentsRequest) String ¶
func (m *GetSubcommentsRequest) String() string
func (*GetSubcommentsRequest) XXX_DiscardUnknown ¶
func (m *GetSubcommentsRequest) XXX_DiscardUnknown()
func (*GetSubcommentsRequest) XXX_Marshal ¶
func (m *GetSubcommentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSubcommentsRequest) XXX_Merge ¶
func (m *GetSubcommentsRequest) XXX_Merge(src proto.Message)
func (*GetSubcommentsRequest) XXX_Size ¶
func (m *GetSubcommentsRequest) XXX_Size() int
func (*GetSubcommentsRequest) XXX_Unmarshal ¶
func (m *GetSubcommentsRequest) XXX_Unmarshal(b []byte) error
type GetThreadRequest ¶
type GetThreadRequest struct { Thread *context.Thread `protobuf:"bytes,1,opt,name=thread,proto3" json:"thread,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetThreadRequest holds a single thread id and the section name it belongs to
func (*GetThreadRequest) Descriptor ¶
func (*GetThreadRequest) Descriptor() ([]byte, []int)
func (*GetThreadRequest) GetThread ¶
func (m *GetThreadRequest) GetThread() *context.Thread
func (*GetThreadRequest) ProtoMessage ¶
func (*GetThreadRequest) ProtoMessage()
func (*GetThreadRequest) Reset ¶
func (m *GetThreadRequest) Reset()
func (*GetThreadRequest) String ¶
func (m *GetThreadRequest) String() string
func (*GetThreadRequest) XXX_DiscardUnknown ¶
func (m *GetThreadRequest) XXX_DiscardUnknown()
func (*GetThreadRequest) XXX_Marshal ¶
func (m *GetThreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetThreadRequest) XXX_Merge ¶
func (m *GetThreadRequest) XXX_Merge(src proto.Message)
func (*GetThreadRequest) XXX_Size ¶
func (m *GetThreadRequest) XXX_Size() int
func (*GetThreadRequest) XXX_Unmarshal ¶
func (m *GetThreadRequest) XXX_Unmarshal(b []byte) error
type GetThreadsOverviewRequest ¶
type GetThreadsOverviewRequest 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:"-"` }
func (*GetThreadsOverviewRequest) Descriptor ¶
func (*GetThreadsOverviewRequest) Descriptor() ([]byte, []int)
func (*GetThreadsOverviewRequest) GetIds ¶
func (m *GetThreadsOverviewRequest) GetIds() []string
func (*GetThreadsOverviewRequest) ProtoMessage ¶
func (*GetThreadsOverviewRequest) ProtoMessage()
func (*GetThreadsOverviewRequest) Reset ¶
func (m *GetThreadsOverviewRequest) Reset()
func (*GetThreadsOverviewRequest) String ¶
func (m *GetThreadsOverviewRequest) String() string
func (*GetThreadsOverviewRequest) XXX_DiscardUnknown ¶
func (m *GetThreadsOverviewRequest) XXX_DiscardUnknown()
func (*GetThreadsOverviewRequest) XXX_Marshal ¶
func (m *GetThreadsOverviewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetThreadsOverviewRequest) XXX_Merge ¶
func (m *GetThreadsOverviewRequest) XXX_Merge(src proto.Message)
func (*GetThreadsOverviewRequest) XXX_Size ¶
func (m *GetThreadsOverviewRequest) XXX_Size() int
func (*GetThreadsOverviewRequest) XXX_Unmarshal ¶
func (m *GetThreadsOverviewRequest) XXX_Unmarshal(b []byte) error
type IdList ¶
type IdList 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:"-"` }
IdList holds a list of ids of content
func (*IdList) Descriptor ¶
func (*IdList) ProtoMessage ¶
func (*IdList) ProtoMessage()
func (*IdList) XXX_DiscardUnknown ¶
func (m *IdList) XXX_DiscardUnknown()
func (*IdList) XXX_Marshal ¶
func (*IdList) XXX_Unmarshal ¶
type NotifyUser ¶
type NotifyUser struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Notification *dataformat.Notif `protobuf:"bytes,2,opt,name=notification,proto3" json:"notification,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
NotifyUser maps notifications to users.
func (*NotifyUser) Descriptor ¶
func (*NotifyUser) Descriptor() ([]byte, []int)
func (*NotifyUser) GetNotification ¶
func (m *NotifyUser) GetNotification() *dataformat.Notif
func (*NotifyUser) GetUserId ¶
func (m *NotifyUser) GetUserId() string
func (*NotifyUser) ProtoMessage ¶
func (*NotifyUser) ProtoMessage()
func (*NotifyUser) Reset ¶
func (m *NotifyUser) Reset()
func (*NotifyUser) String ¶
func (m *NotifyUser) String() string
func (*NotifyUser) XXX_DiscardUnknown ¶
func (m *NotifyUser) XXX_DiscardUnknown()
func (*NotifyUser) XXX_Marshal ¶
func (m *NotifyUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NotifyUser) XXX_Merge ¶
func (m *NotifyUser) XXX_Merge(src proto.Message)
func (*NotifyUser) XXX_Size ¶
func (m *NotifyUser) XXX_Size() int
func (*NotifyUser) XXX_Unmarshal ¶
func (m *NotifyUser) 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 SavedPattern ¶
type SavedPattern struct { Pattern []metadata.ContentStatus `protobuf:"varint,1,rep,packed,name=pattern,proto3,enum=metadata.ContentStatus" json:"pattern,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]*IdList `` /* 179-byte string literal not displayed */ // the user UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SavedPattern holds an array of ContentStatus, composing up a pattern of content that's expected to get back. It is intended for recycling content in the context of a user viewing his saved threads.
func (*SavedPattern) Descriptor ¶
func (*SavedPattern) Descriptor() ([]byte, []int)
func (*SavedPattern) GetDiscardIds ¶
func (m *SavedPattern) GetDiscardIds() map[string]*IdList
func (*SavedPattern) GetPattern ¶
func (m *SavedPattern) GetPattern() []metadata.ContentStatus
func (*SavedPattern) GetUserId ¶
func (m *SavedPattern) GetUserId() string
func (*SavedPattern) ProtoMessage ¶
func (*SavedPattern) ProtoMessage()
func (*SavedPattern) Reset ¶
func (m *SavedPattern) Reset()
func (*SavedPattern) String ¶
func (m *SavedPattern) String() string
func (*SavedPattern) XXX_DiscardUnknown ¶
func (m *SavedPattern) XXX_DiscardUnknown()
func (*SavedPattern) XXX_Marshal ¶
func (m *SavedPattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SavedPattern) XXX_Merge ¶
func (m *SavedPattern) XXX_Merge(src proto.Message)
func (*SavedPattern) XXX_Size ¶
func (m *SavedPattern) XXX_Size() int
func (*SavedPattern) XXX_Unmarshal ¶
func (m *SavedPattern) XXX_Unmarshal(b []byte) error
type UndoSaveThreadRequest ¶
type UndoSaveThreadRequest 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:"-"` }
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 (*UndoSaveThreadRequest) Descriptor ¶
func (*UndoSaveThreadRequest) Descriptor() ([]byte, []int)
func (*UndoSaveThreadRequest) GetThread ¶
func (m *UndoSaveThreadRequest) GetThread() *context.Thread
func (*UndoSaveThreadRequest) GetUserId ¶
func (m *UndoSaveThreadRequest) GetUserId() string
func (*UndoSaveThreadRequest) ProtoMessage ¶
func (*UndoSaveThreadRequest) ProtoMessage()
func (*UndoSaveThreadRequest) Reset ¶
func (m *UndoSaveThreadRequest) Reset()
func (*UndoSaveThreadRequest) String ¶
func (m *UndoSaveThreadRequest) String() string
func (*UndoSaveThreadRequest) XXX_DiscardUnknown ¶
func (m *UndoSaveThreadRequest) XXX_DiscardUnknown()
func (*UndoSaveThreadRequest) XXX_Marshal ¶
func (m *UndoSaveThreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UndoSaveThreadRequest) XXX_Merge ¶
func (m *UndoSaveThreadRequest) XXX_Merge(src proto.Message)
func (*UndoSaveThreadRequest) XXX_Size ¶
func (m *UndoSaveThreadRequest) XXX_Size() int
func (*UndoSaveThreadRequest) XXX_Unmarshal ¶
func (m *UndoSaveThreadRequest) XXX_Unmarshal(b []byte) error
type UndoSaveThreadResponse ¶
type UndoSaveThreadResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UndoSaveThreadResponse) Descriptor ¶
func (*UndoSaveThreadResponse) Descriptor() ([]byte, []int)
func (*UndoSaveThreadResponse) ProtoMessage ¶
func (*UndoSaveThreadResponse) ProtoMessage()
func (*UndoSaveThreadResponse) Reset ¶
func (m *UndoSaveThreadResponse) Reset()
func (*UndoSaveThreadResponse) String ¶
func (m *UndoSaveThreadResponse) String() string
func (*UndoSaveThreadResponse) XXX_DiscardUnknown ¶
func (m *UndoSaveThreadResponse) XXX_DiscardUnknown()
func (*UndoSaveThreadResponse) XXX_Marshal ¶
func (m *UndoSaveThreadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UndoSaveThreadResponse) XXX_Merge ¶
func (m *UndoSaveThreadResponse) XXX_Merge(src proto.Message)
func (*UndoSaveThreadResponse) XXX_Size ¶
func (m *UndoSaveThreadResponse) XXX_Size() int
func (*UndoSaveThreadResponse) XXX_Unmarshal ¶
func (m *UndoSaveThreadResponse) XXX_Unmarshal(b []byte) error
type UndoUpvoteRequest ¶
type UndoUpvoteRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The upvote event occurs either in a thread, in a comment or in a subcomment. // // Types that are valid to be assigned to ContentContext: // *UndoUpvoteRequest_ThreadCtx // *UndoUpvoteRequest_CommentCtx // *UndoUpvoteRequest_SubcommentCtx ContentContext isUndoUpvoteRequest_ContentContext `protobuf_oneof:"content_context"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
UndoUpvoteRequest holds information about the upvote undoing event.
func (*UndoUpvoteRequest) Descriptor ¶
func (*UndoUpvoteRequest) Descriptor() ([]byte, []int)
func (*UndoUpvoteRequest) GetCommentCtx ¶
func (m *UndoUpvoteRequest) GetCommentCtx() *context.Comment
func (*UndoUpvoteRequest) GetContentContext ¶
func (m *UndoUpvoteRequest) GetContentContext() isUndoUpvoteRequest_ContentContext
func (*UndoUpvoteRequest) GetSubcommentCtx ¶
func (m *UndoUpvoteRequest) GetSubcommentCtx() *context.Subcomment
func (*UndoUpvoteRequest) GetThreadCtx ¶
func (m *UndoUpvoteRequest) GetThreadCtx() *context.Thread
func (*UndoUpvoteRequest) GetUserId ¶
func (m *UndoUpvoteRequest) GetUserId() string
func (*UndoUpvoteRequest) ProtoMessage ¶
func (*UndoUpvoteRequest) ProtoMessage()
func (*UndoUpvoteRequest) Reset ¶
func (m *UndoUpvoteRequest) Reset()
func (*UndoUpvoteRequest) String ¶
func (m *UndoUpvoteRequest) String() string
func (*UndoUpvoteRequest) XXX_DiscardUnknown ¶
func (m *UndoUpvoteRequest) XXX_DiscardUnknown()
func (*UndoUpvoteRequest) XXX_Marshal ¶
func (m *UndoUpvoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UndoUpvoteRequest) XXX_Merge ¶
func (m *UndoUpvoteRequest) XXX_Merge(src proto.Message)
func (*UndoUpvoteRequest) XXX_OneofWrappers ¶
func (*UndoUpvoteRequest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*UndoUpvoteRequest) XXX_Size ¶
func (m *UndoUpvoteRequest) XXX_Size() int
func (*UndoUpvoteRequest) XXX_Unmarshal ¶
func (m *UndoUpvoteRequest) XXX_Unmarshal(b []byte) error
type UndoUpvoteRequest_SubcommentCtx ¶
type UndoUpvoteRequest_SubcommentCtx struct {
SubcommentCtx *context.Subcomment `protobuf:"bytes,4,opt,name=subcomment_ctx,json=subcommentCtx,proto3,oneof"`
}
type UndoUpvoteResponse ¶
type UndoUpvoteResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UndoUpvoteResponse) Descriptor ¶
func (*UndoUpvoteResponse) Descriptor() ([]byte, []int)
func (*UndoUpvoteResponse) ProtoMessage ¶
func (*UndoUpvoteResponse) ProtoMessage()
func (*UndoUpvoteResponse) Reset ¶
func (m *UndoUpvoteResponse) Reset()
func (*UndoUpvoteResponse) String ¶
func (m *UndoUpvoteResponse) String() string
func (*UndoUpvoteResponse) XXX_DiscardUnknown ¶
func (m *UndoUpvoteResponse) XXX_DiscardUnknown()
func (*UndoUpvoteResponse) XXX_Marshal ¶
func (m *UndoUpvoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UndoUpvoteResponse) XXX_Merge ¶
func (m *UndoUpvoteResponse) XXX_Merge(src proto.Message)
func (*UndoUpvoteResponse) XXX_Size ¶
func (m *UndoUpvoteResponse) XXX_Size() int
func (*UndoUpvoteResponse) XXX_Unmarshal ¶
func (m *UndoUpvoteResponse) XXX_Unmarshal(b []byte) error
type UnimplementedCrudCheropatillaServer ¶
type UnimplementedCrudCheropatillaServer struct { }
UnimplementedCrudCheropatillaServer can be embedded to have forward compatible implementations.
func (*UnimplementedCrudCheropatillaServer) Comment ¶
func (*UnimplementedCrudCheropatillaServer) Comment(req *CommentRequest, srv CrudCheropatilla_CommentServer) error
func (*UnimplementedCrudCheropatillaServer) CreateThread ¶
func (*UnimplementedCrudCheropatillaServer) CreateThread(ctx context1.Context, req *CreateThreadRequest) (*CreateThreadResponse, error)
func (*UnimplementedCrudCheropatillaServer) DeleteContent ¶
func (*UnimplementedCrudCheropatillaServer) DeleteContent(ctx context1.Context, req *DeleteContentRequest) (*DeleteContentResponse, error)
func (*UnimplementedCrudCheropatillaServer) GetActiveThreadsOverview ¶
func (*UnimplementedCrudCheropatillaServer) GetActiveThreadsOverview(req *GetActiveThreadsOverviewRequest, srv CrudCheropatilla_GetActiveThreadsOverviewServer) error
func (*UnimplementedCrudCheropatillaServer) GetActivityOverview ¶
func (*UnimplementedCrudCheropatillaServer) GetActivityOverview(req *dataformat.Activity, srv CrudCheropatilla_GetActivityOverviewServer) error
func (*UnimplementedCrudCheropatillaServer) GetContentsByContext ¶
func (*UnimplementedCrudCheropatillaServer) GetContentsByContext(req *GetContentsByContextRequest, srv CrudCheropatilla_GetContentsByContextServer) error
func (*UnimplementedCrudCheropatillaServer) GetSubcomments ¶
func (*UnimplementedCrudCheropatillaServer) GetSubcomments(req *GetSubcommentsRequest, srv CrudCheropatilla_GetSubcommentsServer) error
func (*UnimplementedCrudCheropatillaServer) GetThread ¶
func (*UnimplementedCrudCheropatillaServer) GetThread(ctx context1.Context, req *GetThreadRequest) (*ContentData, error)
func (*UnimplementedCrudCheropatillaServer) GetThreadsOverview ¶
func (*UnimplementedCrudCheropatillaServer) GetThreadsOverview(req *GetThreadsOverviewRequest, srv CrudCheropatilla_GetThreadsOverviewServer) error
func (*UnimplementedCrudCheropatillaServer) RecycleContent ¶
func (*UnimplementedCrudCheropatillaServer) RecycleContent(req *ContentPattern, srv CrudCheropatilla_RecycleContentServer) error
func (*UnimplementedCrudCheropatillaServer) SaveThread ¶
func (*UnimplementedCrudCheropatillaServer) SaveThread(ctx context1.Context, req *SaveThreadRequest) (*SaveThreadResponse, error)
func (*UnimplementedCrudCheropatillaServer) UndoSaveThread ¶
func (*UnimplementedCrudCheropatillaServer) UndoSaveThread(ctx context1.Context, req *UndoSaveThreadRequest) (*UndoSaveThreadResponse, error)
func (*UnimplementedCrudCheropatillaServer) UndoUpvote ¶
func (*UnimplementedCrudCheropatillaServer) UndoUpvote(ctx context1.Context, req *UndoUpvoteRequest) (*UndoUpvoteResponse, error)
func (*UnimplementedCrudCheropatillaServer) Upvote ¶
func (*UnimplementedCrudCheropatillaServer) Upvote(req *UpvoteRequest, srv CrudCheropatilla_UpvoteServer) error
type UnimplementedCrudGeneralServer ¶
type UnimplementedCrudGeneralServer struct { }
UnimplementedCrudGeneralServer can be embedded to have forward compatible implementations.
func (*UnimplementedCrudGeneralServer) RecycleActivity ¶
func (*UnimplementedCrudGeneralServer) RecycleActivity(req *ActivityPattern, srv CrudGeneral_RecycleActivityServer) error
func (*UnimplementedCrudGeneralServer) RecycleGeneral ¶
func (*UnimplementedCrudGeneralServer) RecycleGeneral(req *GeneralPattern, srv CrudGeneral_RecycleGeneralServer) error
func (*UnimplementedCrudGeneralServer) RecycleSaved ¶
func (*UnimplementedCrudGeneralServer) RecycleSaved(req *SavedPattern, srv CrudGeneral_RecycleSavedServer) error
type UpvoteRequest ¶
type UpvoteRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The upvote event occurs either in a thread, in a comment or in a subcomment. // // Types that are valid to be assigned to ContentContext: // *UpvoteRequest_ThreadCtx // *UpvoteRequest_CommentCtx // *UpvoteRequest_SubcommentCtx ContentContext isUpvoteRequest_ContentContext `protobuf_oneof:"content_context"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
UpvoteRequest holds information about the upvote event.
func (*UpvoteRequest) Descriptor ¶
func (*UpvoteRequest) Descriptor() ([]byte, []int)
func (*UpvoteRequest) GetCommentCtx ¶
func (m *UpvoteRequest) GetCommentCtx() *context.Comment
func (*UpvoteRequest) GetContentContext ¶
func (m *UpvoteRequest) GetContentContext() isUpvoteRequest_ContentContext
func (*UpvoteRequest) GetSubcommentCtx ¶
func (m *UpvoteRequest) GetSubcommentCtx() *context.Subcomment
func (*UpvoteRequest) GetThreadCtx ¶
func (m *UpvoteRequest) GetThreadCtx() *context.Thread
func (*UpvoteRequest) GetUserId ¶
func (m *UpvoteRequest) GetUserId() string
func (*UpvoteRequest) ProtoMessage ¶
func (*UpvoteRequest) ProtoMessage()
func (*UpvoteRequest) Reset ¶
func (m *UpvoteRequest) Reset()
func (*UpvoteRequest) String ¶
func (m *UpvoteRequest) String() string
func (*UpvoteRequest) XXX_DiscardUnknown ¶
func (m *UpvoteRequest) XXX_DiscardUnknown()
func (*UpvoteRequest) XXX_Marshal ¶
func (m *UpvoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpvoteRequest) XXX_Merge ¶
func (m *UpvoteRequest) XXX_Merge(src proto.Message)
func (*UpvoteRequest) XXX_OneofWrappers ¶
func (*UpvoteRequest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*UpvoteRequest) XXX_Size ¶
func (m *UpvoteRequest) XXX_Size() int
func (*UpvoteRequest) XXX_Unmarshal ¶
func (m *UpvoteRequest) XXX_Unmarshal(b []byte) error
type UpvoteRequest_SubcommentCtx ¶
type UpvoteRequest_SubcommentCtx struct {
SubcommentCtx *context.Subcomment `protobuf:"bytes,4,opt,name=subcomment_ctx,json=subcommentCtx,proto3,oneof"`
}