Documentation ¶
Index ¶
- type AdvancedMigrationState
- type ConversationNotification
- type Processor
- func (p *Processor) Delete(ctx context.Context, requestingAccount *gtsmodel.Account, id string) gtserror.WithCode
- func (p *Processor) GetAll(ctx context.Context, requestingAccount *gtsmodel.Account, page *paging.Page) (*apimodel.PageableResponse, gtserror.WithCode)
- func (p *Processor) MigrateDMsToConversations(ctx context.Context) error
- func (p *Processor) Read(ctx context.Context, requestingAccount *gtsmodel.Account, id string) (*apimodel.Conversation, gtserror.WithCode)
- func (p *Processor) UpdateConversationsForStatus(ctx context.Context, status *gtsmodel.Status) ([]ConversationNotification, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedMigrationState ¶
type ConversationNotification ¶
type ConversationNotification struct { // AccountID of a local account to deliver the notification to. AccountID string // Conversation as the notification payload. Conversation *apimodel.Conversation }
ConversationNotification carries the arguments to processing/stream.Processor.Conversation.
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func (*Processor) GetAll ¶
func (p *Processor) GetAll( ctx context.Context, requestingAccount *gtsmodel.Account, page *paging.Page, ) (*apimodel.PageableResponse, gtserror.WithCode)
GetAll returns conversations owned by the given account. The additional parameters can be used for paging.
func (*Processor) MigrateDMsToConversations ¶
func (*Processor) UpdateConversationsForStatus ¶
func (p *Processor) UpdateConversationsForStatus(ctx context.Context, status *gtsmodel.Status) ([]ConversationNotification, error)
UpdateConversationsForStatus updates all conversations related to a status, and returns a map from local account IDs to conversation notifications that should be sent to them.
Click to show internal directories.
Click to hide internal directories.