Documentation ¶
Index ¶
- Variables
- func Escape(q string) string
- func EscapeBuffer(b *bytes.Buffer, q string)
- func GetUserFriends(userId uint64) (userIds []uint64, err error)
- func GetUserFriendsCount(userId uint64) (cnt uint64, err error)
- func GetUserFriendsRequests(userId uint64) (userIds []uint64, err error)
- func GetUserNames(userIds []string) (map[string]string, error)
- func INstr(values []string) string
- func INuint(values []uint64) string
- func InitStmts()
- func IsUserFriend(userId, friendId uint64) (isFriend, requestAccepted bool, err error)
- type City
- type Querier
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Db *sql.DB // Test statement to check if cockroach db is alive TestStmt *sql.Stmt // Authorization LoginStmt *sql.Stmt // Registration RegisterStmt *sql.Stmt // Messages GetMessagesStmt *sql.Stmt SendMessageStmt *sql.Stmt GetMessagesUsersStmt *sql.Stmt // Timeline GetFromTimelineStmt *sql.Stmt // Users GetUsersListStmt *sql.Stmt GetUsersListWithSearchStmt *sql.Stmt GetFriendsList *sql.Stmt GetFriendsCount *sql.Stmt GetFriendsRequestList *sql.Stmt GetRequestedAcceptedForFriend *sql.Stmt // Friends AddFriendsRequestStmt *sql.Stmt ConfirmFriendshipStmt *sql.Stmt // Profile GetProfileStmt *sql.Stmt AddProfileStmt *sql.Stmt UpdateProfileStmt *sql.Stmt // City GetCityInfoStmt *sql.Stmt GetCityInfoByNameStmt *sql.Stmt AddCityStmt *sql.Stmt )
Functions ¶
func EscapeBuffer ¶
func GetUserFriends ¶
func GetUserFriendsCount ¶
func GetUserFriendsRequests ¶
func GetUserNames ¶
user id is string for simplicity
func IsUserFriend ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.