Documentation
¶
Overview ¶
Package inputrequests owns bounded text staging and Pinax input preview.
Index ¶
- Constants
- type Preview
- type Service
- func (s *Service) AttachmentApply(ctx context.Context, who intake.Identity, ...) (operation.View, error)
- func (s *Service) AttachmentOperation(ctx context.Context, who intake.Identity, id string, reconcile bool) (operation.View, error)
- func (s *Service) AttachmentPreview(ctx context.Context, who intake.Identity, ...) (inputcontract.AttachmentProposal, error)
- func (s *Service) Preview(ctx context.Context, who intake.Identity, id, conflict, note string, ...) (Preview, error)
Constants ¶
View Source
const MaxBytes = 2 << 20
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
func (*Service) AttachmentApply ¶ added in v0.3.1
func (s *Service) AttachmentApply(ctx context.Context, who intake.Identity, request inputcontract.AttachmentApply) (operation.View, error)
func (*Service) AttachmentOperation ¶ added in v0.3.1
func (s *Service) AttachmentOperation(ctx context.Context, who intake.Identity, id string, reconcile bool) (operation.View, error)
AttachmentOperation works after the upload ticket expires. It checks the original actor/project scope and never replays the adoption or upload.
func (*Service) AttachmentPreview ¶ added in v0.3.1
func (s *Service) AttachmentPreview(ctx context.Context, who intake.Identity, request inputcontract.AttachmentRequest) (inputcontract.AttachmentProposal, error)
Click to show internal directories.
Click to hide internal directories.