Documentation ¶
Index ¶
- func Aggregation(coll string, id string, skip, limit int64) (data interface{}, err error)
- func Count(coll string) (num int64, err error)
- func Delete(coll string, id string) (err error)
- func DeleteFile(id string) (err error)
- func Download(id string, source io.Writer) (size int64, err error)
- func FindAllCopyright(coll string, skip, limit int64) (instances []*model.Copyright, err error)
- func FindAllPrincipal(coll string, skip, limit int64) (instances []*model.Principal, err error)
- func FindAllProduct(coll string, skip, limit int64) (instances []*model.Product, err error)
- func FindAllProject(coll string, skip, limit int64) (instances []*model.Project, err error)
- func FindFile(id string, skip, limit int32) (instances []*model.File, err error)
- func FindOneCopyright(coll string, id string) (instances []*model.Copyright, err error)
- func FindOnePrincipal(coll string, id string) (instances []*model.Principal, err error)
- func FindOneProduct(coll string, id string) (instances []*product, err error)
- func FindOneProject(coll string, id string) (instances []*model.Project, err error)
- func Init(host, port, user, pwd, database string, timeout time.Duration, ...) (err error)
- func InsertCopyright(coll string, body io.Reader) (id string, err error)
- func InsertPrincipal(coll string, body io.ReadCloser) (id string, err error)
- func InsertProduct(coll string, body io.Reader) (id string, err error)
- func InsertProject(coll string, body io.ReadCloser) (id string, err error)
- func Update(coll string, id string, body io.Reader) (err error)
- func UpdateProduct(coll string, id string, body io.Reader) (err error)
- func Upload(name string, source io.Reader) (id string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aggregation ¶
func DeleteFile ¶
func FindAllCopyright ¶
func FindAllPrincipal ¶
func FindAllProduct ¶
func FindAllProject ¶
func FindOneCopyright ¶
func FindOnePrincipal ¶
func FindOneProduct ¶
聚合数据
func FindOneProject ¶
func InsertPrincipal ¶
func InsertPrincipal(coll string, body io.ReadCloser) (id string, err error)
func InsertProject ¶
func InsertProject(coll string, body io.ReadCloser) (id string, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.