Documentation ¶
Index ¶
- type Processor
- func (p *Processor) Create(ctx context.Context, account *gtsmodel.Account, ...) (*apimodel.Report, gtserror.WithCode)
- func (p *Processor) Get(ctx context.Context, account *gtsmodel.Account, id string) (*apimodel.Report, gtserror.WithCode)
- func (p *Processor) GetMultiple(ctx context.Context, account *gtsmodel.Account, resolved *bool, ...) (*apimodel.PageableResponse, 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
}
func (*Processor) Create ¶
func (p *Processor) Create(ctx context.Context, account *gtsmodel.Account, form *apimodel.ReportCreateRequest) (*apimodel.Report, gtserror.WithCode)
Create creates one user report / flag, using the provided form parameters.
func (*Processor) Get ¶ added in v0.8.0
func (p *Processor) Get(ctx context.Context, account *gtsmodel.Account, id string) (*apimodel.Report, gtserror.WithCode)
Get returns the user view of a moderation report, with the given id.
func (*Processor) GetMultiple ¶ added in v0.8.0
func (p *Processor) GetMultiple( ctx context.Context, account *gtsmodel.Account, resolved *bool, targetAccountID string, page *paging.Page, ) (*apimodel.PageableResponse, gtserror.WithCode)
GetMultiple returns reports created by the given account, filtered according to the provided parameters.
Click to show internal directories.
Click to hide internal directories.