routes

package
v0.0.0-...-d8d7f37 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClerkRoute

func ClerkRoute(router fiber.Router, g *global.Context)

func ConversationsRoute

func ConversationsRoute(router fiber.Router, g *global.Context)

func CryptRoute

func CryptRoute(api fiber.Router)

func FriendsRoute

func FriendsRoute(router fiber.Router, g *global.Context)

func ProfilesRoute

func ProfilesRoute(router fiber.Router, g *global.Context)

Types

type ConversationExists

type ConversationExists struct {
	Found bool `json:"found"`
}

type DeleteFriendRequest

type DeleteFriendRequest struct {
	ID uint64 `json:"id"`
}

type GetSharedKeyBody

type GetSharedKeyBody struct {
	PrivateKey ecdh.PrivateKey `json:"privateKey"`
	PublicKey  string          `json:"publicKey"`
}

type IDList

type IDList struct {
	ID uint64 `json:"id"`
}

type IsAdded

type IsAdded struct {
	Added bool `json:"added"`
}

type NewConversationBody

type NewConversationBody struct {
	SenderId    string `json:"senderId"`
	RecipientId string `json:"recipientId"`
	Message     string `json:"message"`
}

type ReturnSharedKey

type ReturnSharedKey struct {
	Secret string `json:"secret"`
}

Jump to

Keyboard shortcuts

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