api

package
v0.0.0-...-7bb7a1f Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 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
}

Jump to

Keyboard shortcuts

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