api

package
v0.0.0-...-e37aefb Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SecretKey = "secret"

Variables

This section is empty.

Functions

func AddContact

func AddContact(c *fiber.Ctx) error

func ContactList

func ContactList(c *fiber.Ctx) error

func GetMessages

func GetMessages(c *fiber.Ctx) error

func InsertMessage

func InsertMessage(c *fiber.Ctx) error

func List

func List(c *fiber.Ctx) error

func Login

func Login(c *fiber.Ctx) error

func Logout

func Logout(c *fiber.Ctx) error

func MarkAsRead

func MarkAsRead(c *fiber.Ctx) error

func One

func One(c *fiber.Ctx) error

func Register

func Register(c *fiber.Ctx) error

Types

type ApiResponse

type ApiResponse struct {
	Message string `json:"message"`
}

type ApiResponseList

type ApiResponseList struct {
	List any `json:"list"`
}

type GetMessageRequsetBody

type GetMessageRequsetBody struct {
	ReceiverId string `json:"receiver_id"`
	UserId     string `json:"user_id"` // This could be any type
}

type RequestBody

type RequestBody struct {
	Id      string `json:"id"`
	Contact string `json:"contact"` // This could be any type
}

type UpdateMessageRequestBody

type UpdateMessageRequestBody struct {
	MessageId     string `json:"messageId"`
	ReceiverId    string `json:"receiverId"`
	ReadAllLatest bool   `json:"readAllLatest"`
}

Jump to

Keyboard shortcuts

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