Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpireDocument ¶
func ExpireDocument() *cron.Cron
ExpireDocument registers a cron job to delete documents after they get too old
func GetDocument ¶
GetDocument retrieves a document record from the database via `id`
func NewDocument ¶
NewDocument creates a new document record in the database
Types ¶
type CreateRequest ¶
CreateRequest represents a valid body object for the create document request
func (CreateRequest) Validate ¶
func (c CreateRequest) Validate() error
Validate performs validation on the body
Click to show internal directories.
Click to hide internal directories.