package
Version:
v0.9.22
Opens a new window with list of versions in this module.
Published: Jul 24, 2017
License: BSD-2-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package preauth implements persistent storage and retrieval of preauth requests
Database collection handle
Initialize is an explicit init. Requires db.Initialize
Indexes are applied to the collection at this time.
type PreAuth struct {
Id string `bson:"id" json:"id"`
Type string `bson:"type" json:"type"`
Nodes []string `bson:"nodes" json:"nodes"`
Options map[string]string `bson:"options" json:"options"`
ValidTill time.Time `bson:"validtill" json:"validtill"`
}
New preauth takes the id, type, node ids, and a map of options
type PreAuthResponse struct {
Url string `json:"url"`
ValidTill string `json:"validtill"`
Format string `json:"format"`
Filename string `json:"filename"`
Files int `json:"files"`
Size int64 `json:"size"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.