handlers

package
v0.0.0-...-d3d689d Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorImage = "must use jpeg, png, or tiff file types"

Variables

This section is empty.

Functions

func DeleteContentHandler

func DeleteContentHandler(w http.ResponseWriter, r *http.Request)

func DeleteUserHandler

func DeleteUserHandler(w http.ResponseWriter, r *http.Request)

func GetAllChatsForUserHandler

func GetAllChatsForUserHandler(w http.ResponseWriter, r *http.Request)

func GetAllContentByQueryHandler

func GetAllContentByQueryHandler(w http.ResponseWriter, r *http.Request)

func GetAllContentHandler

func GetAllContentHandler(w http.ResponseWriter, r *http.Request)

func GetAllUserContentHandler

func GetAllUserContentHandler(w http.ResponseWriter, r *http.Request)

func GetAllUsersByQueryHandler

func GetAllUsersByQueryHandler(w http.ResponseWriter, r *http.Request)

func GetAllUsersHandler

func GetAllUsersHandler(w http.ResponseWriter, r *http.Request)

func GetAllXRefForChatHandler

func GetAllXRefForChatHandler(w http.ResponseWriter, r *http.Request)

func GetContentHandler

func GetContentHandler(w http.ResponseWriter, r *http.Request)

func GetMessagesByChatIDHandler

func GetMessagesByChatIDHandler(w http.ResponseWriter, r *http.Request)

func GetUserHandler

func GetUserHandler(w http.ResponseWriter, r *http.Request)

func Healthcheck

func Healthcheck(w http.ResponseWriter, r *http.Request)

func ImageHandler

func ImageHandler(w http.ResponseWriter, r *http.Request)

func NewChatHandler

func NewChatHandler(w http.ResponseWriter, r *http.Request)

func NewContentHandler

func NewContentHandler(w http.ResponseWriter, r *http.Request)

func NewMessageForUserInChatHandler

func NewMessageForUserInChatHandler(w http.ResponseWriter, r *http.Request)

func NewUserHandler

func NewUserHandler(w http.ResponseWriter, r *http.Request)

func NewXrefForUserInChatHandler

func NewXrefForUserInChatHandler(w http.ResponseWriter, r *http.Request)

func ScrapeHandler

func ScrapeHandler(w http.ResponseWriter, r *http.Request)

func UpdateContentHandler

func UpdateContentHandler(w http.ResponseWriter, r *http.Request)

func UpdateUserHandler

func UpdateUserHandler(w http.ResponseWriter, r *http.Request)

Types

type Author_ID

type Author_ID struct {
	ID string `json:"author_id"`
}

type Chat

type Chat struct {
	ID          string `json:"id"`
	TimeCreated string `json:"time_created"`
	ChatName    string `json:"chat_name"`
}

type ChatXref

type ChatXref struct {
	ChatName string   `json:"chat_name"`
	Members  []string `json:"members"`
}

type Content

type Content struct {
	Author_ID   string `json:"author_id"`
	Content_ID  string `json:"id"`
	Title       string `json:"title"`
	BodyContent string `json:"body_content"`
	TimeCreated string `json:"time_created"`
	Description string `json:"description"`
	Genre       string `json:"genre"`
	LastOpened  string `json:"last_opened"`
}

type ID

type ID struct {
	ID string `json:"id"`
}

type NewChat

type NewChat struct {
	ChatName string   `json:"chat_name"`
	Members  []string `json:"members"`
}

type NewContent

type NewContent struct {
	Author_ID   string `json:"author_id"`
	Title       string `json:"title"`
	BodyContent string `json:"body_content"`
}

type NewUser

type NewUser struct {
	UserName string `json:"username"`
}

type UpdateContent

type UpdateContent struct {
	ID          string `json:"id"`
	Title       string `json:"title"`
	BodyContent string `json:"body_content"`
}

type UpdateUser

type UpdateUser struct {
	ID       string `json:"id"`
	UserName string `json:"username"`
	Profile  string `json:"profile"`
}

type User

type User struct {
	ID             string `json:"id"`
	UserName       string `json:"username"`
	Profile        string `json:"profile"`
	Age            string `json:"age"`
	Location       string `json:"location"`
	NativeLanguage string `json:"native_language"`
	TargetLanguage string `json:"target_language"`
	LastOnline     string `json:"last_online"`
	TimeCreated    string `json:"time_created"`
}

type User_ID

type User_ID struct {
	ID int `json:"id"`
}

Jump to

Keyboard shortcuts

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