Documentation ¶
Index ¶
- func AddPostToFile(md5 []byte, postNo int64)
- func Bucket(client *mongo.Client) *gridfs.Bucket
- func DB(client *mongo.Client) *mongo.Database
- func FileExists(md5 []byte) bool
- func MongoClient() *mongo.Client
- func SaveFile(file []byte, md5 []byte, details FileDetails)
- func SaveFilesFromThread(board string, thread models.Thread, chanapi apiclient.ApiClient, ...)
- func SaveOrUpdateThread(board string, id string, thread models.Thread, ctx context.Context)
- type FileDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPostToFile ¶
func FileExists ¶
func MongoClient ¶
func SaveFile ¶
func SaveFile(file []byte, md5 []byte, details FileDetails)
func SaveFilesFromThread ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.