conversation_routes

package
v0.0.0-...-bf66d8f Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRoutes

func SetupRoutes(router fiber.Router)

Types

type ActivateConversationRequest

type ActivateConversationRequest struct {
	ID    string `json:"id"`
	Token string `json:"token"`
}

Public so it can be unit tested (in the future ig)

func (*ActivateConversationRequest) Validate

func (r *ActivateConversationRequest) Validate() bool

type OpenConversationRequest

type OpenConversationRequest struct {
	AccountData string   `json:"accountData"` // Account data of the user opening the conversation (encrypted)
	Members     []string `json:"members"`
	Data        string   `json:"data"` // Encrypted data
}

Public so it can be unit tested (in the future ig)

func (*OpenConversationRequest) Validate

func (r *OpenConversationRequest) Validate() bool

type ReadConversationRequest

type ReadConversationRequest struct {
	ID    string `json:"id"`
	Token string `json:"token"`
}

Public so it can be unit tested (in the future ig)

func (*ReadConversationRequest) Validate

func (r *ReadConversationRequest) Validate() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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