Documentation ¶
Index ¶
- Variables
- func AddAccount(handle string, pass string, display string, email string, misc string, ...) error
- func AddDowndoot(postid string, userid string, db *sql.DB)
- func AddPost(postTitle string, creatorId string, contentType string, content string, ...)
- func AddUpdoot(postid string, userid string, db *sql.DB)
- func CatchAndClose(db *sql.DB)
- func ChangePass(handle string, hashPass string, newhashPass string, db *sql.DB) error
- func CheckIfDooted(postid string, userid string, db *sql.DB) (bool, bool)
- func ConfirmCred(handle string, pass string, db *sql.DB) (bool, error)
- func ConfirmPost(postid string, db *sql.DB) bool
- func ConnectToDB() (*sql.DB, error)
- func CreateTableAccounts(db *sql.DB)
- func CreateTablePosts(db *sql.DB)
- func DoesPostExist(postid string, db *sql.DB) bool
- func DropTableAccounts(db *sql.DB)
- func DropTablePosts(db *sql.DB)
- func EditPostContent(postid string, edit string, db *sql.DB) bool
- func GeneratePostID(creatorID string) string
- func GetAccountAvailability(handle string, db *sql.DB) (bool, error)
- func GetDisplayName(handle string, db *sql.DB) (string, error)
- func GetEmail(handle string, db *sql.DB) (string, error)
- func GetPassByHandle(handle string, db *sql.DB) string
- func GetPostDetails(postid string, db *sql.DB) (string, string, string, string, string, int, int, string)
- func GetPostIDByTitle(postTitle string, loc int, db *sql.DB) (string, bool)
- func GetPostIDByUser(creatorId string, loc int, db *sql.DB) (string, bool)
- func HashData(inputPass string) string
- func InitVote(db *sql.DB)
- func PrintPosts(db *sql.DB)
- func PrintSheet(db *sql.DB)
- func RmAccount(handle string, hashPass string, db *sql.DB) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
Functions ¶
func AddAccount ¶
func CatchAndClose ¶
func ChangePass ¶
func CheckIfDooted ¶
CheckIfDooted outputs REMINDER TO REFACTOR THIS: first bool output: if the post exists ??? second bool output: if the user voted
func ConnectToDB ¶
func CreateTableAccounts ¶
func CreateTablePosts ¶
func DropTableAccounts ¶
func DropTablePosts ¶
func GeneratePostID ¶
func GetPostDetails ¶
func PrintPosts ¶
func PrintSheet ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.