Documentation
¶
Index ¶
Constants ¶
View Source
const ( PendingBucket = "PendingRequests" CompletedBucket = "CompletedRequests" )
Variables ¶
This section is empty.
Functions ¶
func PutRequest ¶
func RemovePendingRequest ¶
func RemovePendingRequest(r *Request)
Types ¶
type AdminRequest ¶
type AdminRequest struct {
ID string `json:"id"`
RequestID int `json:"requestID"`
Title string `json:"title"`
StudentName string `json:"studentName"`
DateRequested time.Time `json:"dateRequested"`
NumPages int `json:"numPages"`
Notes string `json:"notes"`
PDFAvailable bool `json:"pdf"`
Status ArticleStatus `json:"status"`
SrcHTML string `json:"srcHtml"`
}
AdminRequest represents a single request that needs to be approved by an admin
type AdminRequests ¶
type AdminRequests struct {
Requests []*AdminRequest `json:"requests"`
}
AdminRequests represents the list of requests an admin needs to approve
func GetAdminRequests ¶
func GetAdminRequests(pending string) (adminRequests AdminRequests, err error)
type ArticleStatus ¶
type ArticleStatus int32
const ( Print ArticleStatus = iota PDF Pending Denied )
type Request ¶
type RequestedDocument ¶
type RequestedDocument struct {
Id string
Status ArticleStatus
}
Click to show internal directories.
Click to hide internal directories.