modules

package
v0.0.0-...-7efdb2d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct{}

func (*User) AddFriend

func (u *User) AddFriend(relationship models.Relationship) bool

func (*User) CreateUser

func (u *User) CreateUser(user models.User) (objectId string, err error)

func (*User) CreateUserNode

func (u *User) CreateUserNode(objectId string, name string) (int, error)

func (*User) DeleteUser

func (u *User) DeleteUser(objectId string) error

func (*User) GetAllUsers

func (u *User) GetAllUsers() (users []models.User, err error)

func (*User) GetOneUserByFilter

func (u *User) GetOneUserByFilter(filters map[string]string) (user models.User, err error)

func (*User) GetOneUserById

func (u *User) GetOneUserById(ObjectId string) (user models.User, err error)

func (*User) UpdateUser

func (u *User) UpdateUser(objectId string, user map[string]interface{}) error

type Userinfo

type Userinfo struct{}

func (*Userinfo) CreateRelationship

func (u *Userinfo) CreateRelationship(userid int, friendid int) error

func (*Userinfo) CreateUserinfo

func (u *Userinfo) CreateUserinfo(userinfo models.Userinfo) (objectId string, err error)

func (*Userinfo) DeleteUserinfo

func (u *Userinfo) DeleteUserinfo(objectId string) error

func (*Userinfo) DownloadUserPic

func (u *Userinfo) DownloadUserPic(userpic string) (interface{}, error)

func (*Userinfo) GetOneUserinfoById

func (u *Userinfo) GetOneUserinfoById(ObjectId string) (userinfo models.Userinfo, err error)

func (*Userinfo) UpdateUserinfoById

func (u *Userinfo) UpdateUserinfoById(objectId string, userinfo map[string]interface{}) error

func (*Userinfo) UploadUserPic

func (u *Userinfo) UploadUserPic(filemode models.Filemodel, userid string, userpic string) (string, error)

type VersionRule

type VersionRule struct{}

func (*VersionRule) GetRuleByFilter

func (v *VersionRule) GetRuleByFilter(filters map[string]interface{}) (result bson.M, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL