endpoints

package
v0.0.0-...-c763bc7 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BodyInternalServerError = schemas.BodyError{
		Message: "An internal error occurred in the server"}
	BodyNotFound = schemas.BodyError{
		Message: "The requested resource could not be found"}
)
View Source
var TOKEN_SECRET = "1d62gCp6XcESjQh0oUwkHmoScQ14i4wmpyLgabxYwXb2EOllX4EJ1Ajs1pF5"

Functions

func CloseGroup

func CloseGroup(c *gin.Context)

CloseGroup allows the user to mark a group as closed.

func CreateGroup

func CreateGroup(c *gin.Context)

CreateGroup creates a new group

func JoinGroup

func JoinGroup(c *gin.Context)

JoinGroup allows a user to join a group

func KickFromGroup

func KickFromGroup(c *gin.Context)

KickFromGroup allows the owner to remove a member.

func LeaveGroup

func LeaveGroup(c *gin.Context)

LeaveGroup allows a user to leave a group the user is a member of.

func ListGroups

func ListGroups(c *gin.Context)

ListGroups returns all the groups

func RetrieveGroup

func RetrieveGroup(c *gin.Context)

RetrieveGroup returns the group details given its ID.

func SignIn

func SignIn(c *gin.Context)

SignIn allows existing users to sign in with their username and password.

func SignUp

func SignUp(c *gin.Context)

SignUp allows users to create an account.

func UpdateGroup

func UpdateGroup(c *gin.Context)

UpdateGroup allows the user to update the group details.

func UpdateGroupPassword

func UpdateGroupPassword(c *gin.Context)

UpdateGroupPassword allows the user to update the group details.

Types

This section is empty.

Jump to

Keyboard shortcuts

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