Documentation ¶
Index ¶
- type Processor
- func (p *Processor) Accept(ctx context.Context, acct *gtsmodel.Account, reqID string) (*apimodel.InteractionRequest, gtserror.WithCode)
- func (p *Processor) GetOne(ctx context.Context, requester *gtsmodel.Account, id string) (*apimodel.InteractionRequest, gtserror.WithCode)
- func (p *Processor) GetPage(ctx context.Context, requester *gtsmodel.Account, statusID string, likes bool, ...) (*apimodel.PageableResponse, gtserror.WithCode)
- func (p *Processor) Reject(ctx context.Context, acct *gtsmodel.Account, reqID string) (*apimodel.InteractionRequest, gtserror.WithCode)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor wraps functionality for getting, accepting, and rejecting interaction requests.
func (*Processor) Accept ¶
func (p *Processor) Accept( ctx context.Context, acct *gtsmodel.Account, reqID string, ) (*apimodel.InteractionRequest, gtserror.WithCode)
Accept accepts an interaction request with the given ID, on behalf of the given account (whose post it must target).
func (*Processor) GetOne ¶
func (p *Processor) GetOne( ctx context.Context, requester *gtsmodel.Account, id string, ) (*apimodel.InteractionRequest, gtserror.WithCode)
GetOne returns one interaction request with the given ID.
func (*Processor) GetPage ¶
func (p *Processor) GetPage( ctx context.Context, requester *gtsmodel.Account, statusID string, likes bool, replies bool, boosts bool, page *paging.Page, ) (*apimodel.PageableResponse, gtserror.WithCode)
GetPage returns a page of interaction requests targeting the requester and (optionally) the given status ID.
Click to show internal directories.
Click to hide internal directories.