package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Apr 30, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
CloseTx will close tx with err.
If err is nil, we will try to commit this tx.
If err is not nil, we will rollback.
DeleteDoc will delete doc from database.
DeleteDocID will delete a Doc ID.
FormatDocIDKey will format doc ID's key.
type Doc struct {
ID uint64 `msgpack:"id"`
UpdatedAt int64 `msgpack:"ua"`
URL string `msgpack:"u"`
Title string `msgpack:"t"`
}
Doc is the base model in xuanzang.
CreateDoc will create doc in database.
GetDoc will get a Doc from database.
GetDocByID will get a doc by it's id.
Save will save current url to database.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.