v2

package
v0.0.0-...-6dfde0d Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBinding       = errors.New("Couldn't bind JSON to model")
	ErrCannotUpdate  = errors.New("You do not have the permissions to update this record")
	ErrCannotDelete  = errors.New("You do not have the permissions to delete this record")
	ErrAlreadyExists = errors.New("Cannot create resource as it already exists")

	ErrEnemy = errors.New("Match percentage is too low to friend this person. They do not want enemies.")
)

Functions

func AnswersUpdate

func AnswersUpdate(c *gin.Context)

AnswersUpdate updates the coordinates of user based on question answers

func CommentCreate

func CommentCreate(c *gin.Context)

func CommentIndex

func CommentIndex(c *gin.Context)

func ConfigureEmailer

func ConfigureEmailer(config emailer.Config)

func EventAddHost

func EventAddHost(c *gin.Context)

func EventCreate

func EventCreate(c *gin.Context)

func EventDestroy

func EventDestroy(c *gin.Context)

func EventGoing

func EventGoing(c *gin.Context)

func EventIndex

func EventIndex(c *gin.Context)

func EventMaybe

func EventMaybe(c *gin.Context)

func EventPosts

func EventPosts(c *gin.Context)

func EventRemoveHost

func EventRemoveHost(c *gin.Context)

func EventShow

func EventShow(c *gin.Context)

func EventUnsubscribe

func EventUnsubscribe(c *gin.Context)

func EventUpdate

func EventUpdate(c *gin.Context)

func FlagCreate

func FlagCreate(c *gin.Context)

FlagCreate flags a record

func FriendshipCreate

func FriendshipCreate(c *gin.Context)

func FriendshipDestroy

func FriendshipDestroy(c *gin.Context)

func FriendshipIndex

func FriendshipIndex(c *gin.Context)

func FriendshipShow

func FriendshipShow(c *gin.Context)

func FriendshipUpdate

func FriendshipUpdate(c *gin.Context)

func HashtagShow

func HashtagShow(c *gin.Context)

func LikeCreate

func LikeCreate(c *gin.Context)

func LoginHandler

func LoginHandler(c *gin.Context)

func LogoutHandler

func LogoutHandler(c *gin.Context)

func MatchIndex

func MatchIndex(c *gin.Context)

func MessageCreate

func MessageCreate(c *gin.Context)

func MessageIndex

func MessageIndex(c *gin.Context)

func MessageThreadSubscribe

func MessageThreadSubscribe(c *gin.Context)

MessageThreadSubscribe manages a websocket subscription to check for incoming messages

func MessageUnread

func MessageUnread(c *gin.Context)

func NewMessages

func NewMessages(c *gin.Context)

func NotificationIndex

func NotificationIndex(c *gin.Context)

func NotificationsCount

func NotificationsCount(c *gin.Context)

NotificationsCount returns the number of unread notifications

func PasswordResetCreate

func PasswordResetCreate(c *gin.Context)

func PasswordResetShow

func PasswordResetShow(c *gin.Context)

func PasswordResetUpdate

func PasswordResetUpdate(c *gin.Context)

func PostCreate

func PostCreate(c *gin.Context)

func PostDestroy

func PostDestroy(c *gin.Context)

func PostIndex

func PostIndex(c *gin.Context)

func PostShow

func PostShow(c *gin.Context)

func PostUpdate

func PostUpdate(c *gin.Context)

func QuestionIndex

func QuestionIndex(c *gin.Context)

QuestionIndex finds a random QuestionSet, shuffles, and shows it

func SocketTicketCreate

func SocketTicketCreate(c *gin.Context)

func ThreadCreate

func ThreadCreate(c *gin.Context)

func ThreadIndex

func ThreadIndex(c *gin.Context)

func UserAvatarUpload

func UserAvatarUpload(c *gin.Context)

func UserCreate

func UserCreate(c *gin.Context)

func UserShow

func UserShow(c *gin.Context)

func UserUpdate

func UserUpdate(c *gin.Context)

Types

type MessageThreadSubscription

type MessageThreadSubscription struct {
	// contains filtered or unexported fields
}

MessageThreadSubscription manages a subscription

func (MessageThreadSubscription) MessageReadLoop

func (sub MessageThreadSubscription) MessageReadLoop()

func (MessageThreadSubscription) MessageWriteLoop

func (sub MessageThreadSubscription) MessageWriteLoop(db *gorm.DB)

type PWBinding

type PWBinding struct {
	Email           string `json:"email"`
	Password        string `json:"password"`
	PasswordConfirm string `json:"password_confirm"`
}

type PWInitBinding

type PWInitBinding struct {
	Email string `json:"email"`
}

Jump to

Keyboard shortcuts

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